X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fdentry.h;h=1e3a04bc13aba41abc8f452ba87e6607f7fe9baa;hp=5881c89707e6dc78b121728d6a758b65789f534a;hb=20e4ed048c57bd26e7f4da4b265aedbdd4f574a6;hpb=67f45cecd793345416d5d85fbe37ec54b1bb6ef8 diff --git a/src/dentry.h b/src/dentry.h index 5881c897..1e3a04bc 100644 --- a/src/dentry.h +++ b/src/dentry.h @@ -160,6 +160,12 @@ struct inode { struct ads_entry **ads_entries; + /* If the file is part of a hard link set, all the directory entries in + * the set will share the same value for this field. + * + * Unfortunately, in some WIMs it is NOT the case that all dentries that + * share this field are actually in the same hard link set, although the + * WIMs that wimlib writes maintain this restriction. */ u64 ino; struct list_head dentry_list; @@ -241,13 +247,6 @@ struct dentry { * read_dentry() function. */ //u32 reparse_reserved; - /* If the file is part of a hard link set, all the directory entries in - * the set will share the same value for this field. - * - * Unfortunately, in some WIMs it is NOT the case that all dentries that - * share this field are actually in the same hard link set, although the - * WIMs that wimlib writes maintain this restriction. */ - u64 link_group_id; /* Length of short filename, in bytes, not including the terminating * zero wide-character. */ @@ -303,7 +302,7 @@ extern const char *path_stream_name(const char *path); extern u64 dentry_total_length(const struct dentry *dentry); extern u64 dentry_correct_total_length(const struct dentry *dentry); -extern void stbuf_to_dentry(const struct stat *stbuf, struct dentry *dentry); +extern void stbuf_to_inode(const struct stat *stbuf, struct inode *inode); extern int for_dentry_in_tree(struct dentry *root, int (*visitor)(struct dentry*, void*), @@ -334,6 +333,8 @@ extern struct dentry *get_dentry_child_with_name(const struct dentry *dentry, extern void dentry_update_all_timestamps(struct dentry *dentry); extern void init_dentry(struct dentry *dentry, const char *name); extern struct dentry *new_dentry(const char *name); +extern struct inode *new_inode(); +extern struct inode *new_timeless_inode(); extern struct dentry *new_dentry_with_inode(const char *name); extern void dentry_free_ads_entries(struct dentry *dentry);