diff options
| author | rsc <devnull@localhost> | 2007-06-08 14:29:39 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2007-06-08 14:29:39 +0000 |
| commit | 63408c39a1d07b210540e33a5fec030296cc5f49 (patch) | |
| tree | 6be4577a20d7f5721c673fd0fb042e256ac34e66 /src/libdiskfs/hfs.h | |
| parent | 001dc1709be54e944d8ce0f0fdb94500cad2d16a (diff) | |
| download | plan9port-63408c39a1d07b210540e33a5fec030296cc5f49.tar.gz plan9port-63408c39a1d07b210540e33a5fec030296cc5f49.zip | |
mac resource fork - from Dave Swasey
Diffstat (limited to 'src/libdiskfs/hfs.h')
| -rw-r--r-- | src/libdiskfs/hfs.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/libdiskfs/hfs.h b/src/libdiskfs/hfs.h index 2f6d943d..5be65a76 100644 --- a/src/libdiskfs/hfs.h +++ b/src/libdiskfs/hfs.h @@ -65,6 +65,9 @@ enum Extentlen = 8, /* Extent */ Ndlen = 14, /* Node */ Folderlen = 88, Filelen = 248, /* Inode */ + Adlen = 82, /* Apple double header */ + Fioff = 50, + Filen = 32, /* Finder info */ /* values in Node.type */ LeafNode = -1, IndexNode, HeaderNode, MapNode, @@ -113,6 +116,7 @@ struct Fork struct Inode { u32int cnid; + u64int fileid; /* in memory only */ u32int mtime; /* modification */ u32int ctime; /* attribute modification */ u32int atime; /* access */ @@ -124,7 +128,12 @@ struct Inode u32int nentries; /* directories */ struct{ /* files */ Fork dfork; - /*Fork rfork;*/ + Fork rfork; + uchar info[Filen]; + + /* in memory only */ + int nhdr; /* 0 or Adlen */ + Fork *fork; /* dfork or rfork */ }; }; }; @@ -204,7 +213,6 @@ struct Hfs Fork catalogfork; Tree extents; /* Extentkey -> Extent[NEXTENT] */ Tree catalog; /* Catalogkey -> Catalogkey + Inode */ - int wrapper; /* HFS wrapper used? */ Disk *disk; Fsys *fsys; }; |
