/* The index of the node in the security table that contains this file's
* security information. If -1, no security information exists for this
- * file. Currently ignoring this field.*/
- //int32_t security_id;
+ * file. */
+#ifdef ENABLE_SECURITY_DATA
+ int32_t security_id;
+#endif
/* The offset, from the start of the metadata section, of this directory
* entry's child files. 0 if the directory entry has no children. */
int refcnt;
};
-#define WIM_FILE_ATTRIBUTE_READONLY 0x1
-#define WIM_FILE_ATTRIBUTE_HIDDEN 0x2
-#define WIM_FILE_ATTRIBUTE_SYSTEM 0x4
-#define WIM_FILE_ATTRIBUTE_DIRECTORY 0x10
-#define WIM_FILE_ATTRIBUTE_ARCHIVE 0x20
-#define WIM_FILE_ATTRIBUTE_DEVICE 0x40
-#define WIM_FILE_ATTRIBUTE_NORMAL 0x80
-#define WIM_FILE_ATTRIBUTE_TEMPORARY 0x100
-#define WIM_FILE_ATTRIBUTE_SPARSE_FILE 0x200
-#define WIM_FILE_ATTRIBUTE_REPARSE_POINT 0x400
-#define WIM_FILE_ATTRIBUTE_COMPRESSED 0x800
-#define WIM_FILE_ATTRIBUTE_OFFLINE 0x1000
-#define WIM_FILE_ATTRIBUTE_NOT_CONTENT_INDEXED 0x2000
-#define WIM_FILE_ATTRIBUTE_ENCRYPTED 0x4000
-#define WIM_FILE_ATTRIBUTE_VIRTUAL 0x10000
+#define WIM_FILE_ATTRIBUTE_READONLY 0x00000001
+#define WIM_FILE_ATTRIBUTE_HIDDEN 0x00000002
+#define WIM_FILE_ATTRIBUTE_SYSTEM 0x00000004
+#define WIM_FILE_ATTRIBUTE_DIRECTORY 0x00000010
+#define WIM_FILE_ATTRIBUTE_ARCHIVE 0x00000020
+#define WIM_FILE_ATTRIBUTE_DEVICE 0x00000040
+#define WIM_FILE_ATTRIBUTE_NORMAL 0x00000080
+#define WIM_FILE_ATTRIBUTE_TEMPORARY 0x00000100
+#define WIM_FILE_ATTRIBUTE_SPARSE_FILE 0x00000200
+#define WIM_FILE_ATTRIBUTE_REPARSE_POINT 0x00000400
+#define WIM_FILE_ATTRIBUTE_COMPRESSED 0x00000800
+#define WIM_FILE_ATTRIBUTE_OFFLINE 0x00001000
+#define WIM_FILE_ATTRIBUTE_NOT_CONTENT_INDEXED 0x00002000
+#define WIM_FILE_ATTRIBUTE_ENCRYPTED 0x00004000
+#define WIM_FILE_ATTRIBUTE_VIRTUAL 0x00010000
extern void stbuf_to_dentry(const struct stat *stbuf, struct dentry *dentry);
extern struct dentry *new_dentry(const char *name);
extern void free_dentry(struct dentry *dentry);
-extern void free_dentry_tree(struct dentry *root, struct lookup_table *lookup_table,
- bool decrement_refcnt);
+extern void free_dentry_tree(struct dentry *root,
+ struct lookup_table *lookup_table,
+ bool lt_decrement_refcnt);
extern int increment_dentry_refcnt(struct dentry *dentry, void *ignore);
+extern int decrement_dentry_refcnt(struct dentry *dentry, void *ignore);
extern void calculate_dir_tree_statistics(struct dentry *root,
struct lookup_table *table,