-#define ATTR_CMN_NAME 0x00000001
-#define ATTR_CMN_DEVID 0x00000002
-#define ATTR_CMN_FSID 0x00000004
-#define ATTR_CMN_OBJTYPE 0x00000008
-#define ATTR_CMN_OBJTAG 0x00000010
-#define ATTR_CMN_OBJID 0x00000020
-#define ATTR_CMN_OBJPERMANENTID 0x00000040
-#define ATTR_CMN_PAROBJID 0x00000080
-#define ATTR_CMN_SCRIPT 0x00000100
-#define ATTR_CMN_CRTIME 0x00000200
-#define ATTR_CMN_MODTIME 0x00000400
-#define ATTR_CMN_CHGTIME 0x00000800
-#define ATTR_CMN_ACCTIME 0x00001000
-#define ATTR_CMN_BKUPTIME 0x00002000
-#define ATTR_CMN_FNDRINFO 0x00004000
-#define ATTR_CMN_OWNERID 0x00008000
-#define ATTR_CMN_GRPID 0x00010000
-#define ATTR_CMN_ACCESSMASK 0x00020000
-#define ATTR_CMN_FLAGS 0x00040000
-/* #define ATTR_CMN_NAMEDATTRCOUNT 0x00080000 not implemented */
-/* #define ATTR_CMN_NAMEDATTRLIST 0x00100000 not implemented */
-#define ATTR_CMN_USERACCESS 0x00200000
-#define ATTR_CMN_EXTENDED_SECURITY 0x00400000
-#define ATTR_CMN_UUID 0x00800000
-#define ATTR_CMN_GRPUUID 0x01000000
-#define ATTR_CMN_FILEID 0x02000000
-#define ATTR_CMN_PARENTID 0x04000000
-#define ATTR_CMN_FULLPATH 0x08000000
-#define ATTR_CMN_ADDEDTIME 0x10000000
+#define ATTR_CMN_NAME 0x00000001
+#define ATTR_CMN_DEVID 0x00000002
+#define ATTR_CMN_FSID 0x00000004
+#define ATTR_CMN_OBJTYPE 0x00000008
+#define ATTR_CMN_OBJTAG 0x00000010
+#define ATTR_CMN_OBJID 0x00000020
+#define ATTR_CMN_OBJPERMANENTID 0x00000040
+#define ATTR_CMN_PAROBJID 0x00000080
+#define ATTR_CMN_SCRIPT 0x00000100
+#define ATTR_CMN_CRTIME 0x00000200
+#define ATTR_CMN_MODTIME 0x00000400
+#define ATTR_CMN_CHGTIME 0x00000800
+#define ATTR_CMN_ACCTIME 0x00001000
+#define ATTR_CMN_BKUPTIME 0x00002000
+#define ATTR_CMN_FNDRINFO 0x00004000
+#define ATTR_CMN_OWNERID 0x00008000
+#define ATTR_CMN_GRPID 0x00010000
+#define ATTR_CMN_ACCESSMASK 0x00020000
+#define ATTR_CMN_FLAGS 0x00040000
+
+/* The following were defined as: */
+/* #define ATTR_CMN_NAMEDATTRCOUNT 0x00080000 */
+/* #define ATTR_CMN_NAMEDATTRLIST 0x00100000 */
+/* These bits have been salvaged for use as: */
+/* #define ATTR_CMN_GEN_COUNT 0x00080000 */
+/* #define ATTR_CMN_DOCUMENT_ID 0x00100000 */
+/* They can only be used with the FSOPT_ATTR_CMN_EXTENDED */
+/* option flag. */
+
+#define ATTR_CMN_GEN_COUNT 0x00080000
+#define ATTR_CMN_DOCUMENT_ID 0x00100000
+
+#define ATTR_CMN_USERACCESS 0x00200000
+#define ATTR_CMN_EXTENDED_SECURITY 0x00400000
+#define ATTR_CMN_UUID 0x00800000
+#define ATTR_CMN_GRPUUID 0x01000000
+#define ATTR_CMN_FILEID 0x02000000
+#define ATTR_CMN_PARENTID 0x04000000
+#define ATTR_CMN_FULLPATH 0x08000000
+#define ATTR_CMN_ADDEDTIME 0x10000000
+#define ATTR_CMN_ERROR 0x20000000
+#define ATTR_CMN_DATA_PROTECT_FLAGS 0x40000000