xv6/fsvar.h
rtm 11a9947f1a bread
iget
mkfs makes a file system image
put this in your .bochsrc:
ata0-slave: type=disk, mode=flat, path="fs.img", cylinders=1024, heads=1, spt=1
2006-07-21 13:18:04 +00:00

12 lines
163 B
C

// in-core file system types
struct inode {
uint dev;
uint inum;
int count;
int busy;
short type;
short nlink;
uint size;
uint addrs[NDIRECT];
};