tac0S
Template Affectional Command Operating System
Classes | Macros | Enumerations
filehdr.h File Reference

Data structures for managing a disk file header. More...

#include "copyright.h"
#include "disk.h"
#include "bitmap.h"

Go to the source code of this file.

Classes

class  FileHeader
 The following class defines the Nachos "file header" (in UNIX terms, the "i-node"), describing where on disk to find all of the data in the file. The file header is organized as a simple table of pointers to data blocks. More...
 

Macros

#define NumDirect   ((SectorSize - 2 * sizeof(int)) / sizeof(int))
 
#define MaxFileSize   (NumDirect * SectorSize)
 

Enumerations

enum  File_type { f, d }
 enum that define if the FileHeader define a file or a directory
 

Detailed Description

Data structures for managing a disk file header.

Author
Olivier Hureau, Hugo Feydel , Julien ALaimo

A file header describes where on disk to find the data in a file, along with other information about the file (for instance, its length, owner, etc.)

Copyright (c) 1992-1993 The Regents of the University of California. All rights reserved. See copyright.h for copyright notice and limitation of liability and disclaimer of warranty provisions.