]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/attr.h
xnu-4903.221.2.tar.gz
[apple/xnu.git] / bsd / sys / attr.h
index 7f20dd8f73ddad871ff7e73983d5f0f0082e06a2..45540a9aaaf3d06fb2cad7718011dce34e304772 100644 (file)
@@ -320,6 +320,8 @@ typedef struct vol_capabilities_attr {
  *
  * VOL_CAP_INT_CLONE: When set, the volume supports clones.
  *
+ * VOL_CAP_INT_SNAPSHOT: When set, the volume supports snapshots.
+ *
  * VOL_CAP_INT_RENAME_SWAP: When set, the volume supports swapping
  * file system objects.
  *
@@ -347,10 +349,7 @@ typedef struct vol_capabilities_attr {
 #define VOL_CAP_INT_REMOTE_EVENT               0x00008000
 #endif /* PRIVATE */
 #define VOL_CAP_INT_CLONE                      0x00010000
-#ifdef PRIVATE
-/* Volume supports snapshots */
 #define VOL_CAP_INT_SNAPSHOT                   0x00020000
-#endif /* PRIVATE */
 #define VOL_CAP_INT_RENAME_SWAP                        0x00040000
 #define VOL_CAP_INT_RENAME_EXCL                        0x00080000
 
@@ -432,7 +431,7 @@ typedef struct vol_attributes_attr {
  * 
  * ATTR_CMN_DATA_PROTECT_FLAGS
  */
-#define ATTR_CMN_SETMASK                       0x41C7FF00
+#define ATTR_CMN_SETMASK                       0x51C7FF00
 #define ATTR_CMN_VOLSETMASK                    0x00006700
 
 #define ATTR_VOL_FSTYPE                                0x00000001
@@ -506,8 +505,9 @@ typedef struct vol_attributes_attr {
 /* CMNEXT attributes extend the common attributes, but in the forkattr field */
 #define ATTR_CMNEXT_RELPATH     0x00000004
 #define ATTR_CMNEXT_PRIVATESIZE 0x00000008
+#define ATTR_CMNEXT_LINKID     0x00000010
 
-#define ATTR_CMNEXT_VALIDMASK  0x0000000c
+#define ATTR_CMNEXT_VALIDMASK  0x0000001c
 #define ATTR_CMNEXT_SETMASK            0x00000000
 
 /* Deprecated fork attributes */