]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/hfs/hfs_format.h
xnu-3248.60.10.tar.gz
[apple/xnu.git] / bsd / hfs / hfs_format.h
index 52bcd0e203fcfe757799105956fc850cc93b3995..dcc1807243d10b55c129a8a54ce32cd9c139e920 100644 (file)
@@ -225,15 +225,15 @@ struct FndrOpaqueInfo {
 typedef struct FndrOpaqueInfo FndrOpaqueInfo;
 
 struct FndrExtendedDirInfo {
-       u_int32_t point;
+       u_int32_t document_id;
        u_int32_t date_added;
        u_int16_t extended_flags;
        u_int16_t reserved3;
-       u_int32_t reserved4;
+       u_int32_t write_gen_counter;
 } __attribute__((aligned(2), packed));
 
 struct FndrExtendedFileInfo {
-       u_int32_t reserved1;
+       u_int32_t document_id;
        u_int32_t date_added;
        u_int16_t extended_flags;
        u_int16_t reserved2;
@@ -363,8 +363,23 @@ enum {
        kHFSHasChildLinkBit     = 0x0006,       /* folder has a child that's a dir link */
        kHFSHasChildLinkMask    = 0x0040,
 
-       kHFSHasDateAddedBit = 0x0007,   /* File/Folder has the date-added stored in the finder info. */
-       kHFSHasDateAddedMask = 0x0080 
+       kHFSHasDateAddedBit     = 0x0007,       /* File/Folder has the date-added stored in the finder info. */
+       kHFSHasDateAddedMask    = 0x0080, 
+
+       kHFSFastDevPinnedBit    = 0x0008,       /* this file has been pinned to the fast-device by the hot-file code on cooperative fusion */
+       kHFSFastDevPinnedMask   = 0x0100,
+
+       kHFSDoNotFastDevPinBit  = 0x0009,       /* this file can not be pinned to the fast-device */
+       kHFSDoNotFastDevPinMask = 0x0200,
+
+       kHFSFastDevCandidateBit  = 0x000a,      /* this item is a potential candidate for fast-dev pinning (as are any of its descendents */
+       kHFSFastDevCandidateMask = 0x0400,
+
+       kHFSAutoCandidateBit     = 0x000b,      /* this item was automatically marked as a fast-dev candidate by the kernel */
+       kHFSAutoCandidateMask    = 0x0800
+
+       // There are only 4 flag bits remaining: 0x1000, 0x2000, 0x4000, 0x8000
+
 };