* long names but share the same case insensitive long name. */
struct list_head d_ci_conflict_list;
- /* The parent of this directory entry. */
+ /* The parent of this directory entry. (The root is its own parent.) */
struct wim_dentry *d_parent;
/* Linked list node that places this dentry in the list of aliases for
return wim_get_current_image_metadata(wim)->security_data;
}
-/* Iterate over each inode in a WIM image that has not yet been hashed */
+/* Iterate over each inode in a WIM image */
#define image_for_each_inode(inode, imd) \
list_for_each_entry(inode, &(imd)->inode_list, i_list)
stbuf->st_mtime = wim_timestamp_to_unix(inode->i_last_write_time);
stbuf->st_ctime = stbuf->st_mtime;
#endif
- stbuf->st_blocks = (stbuf->st_size + 511) / 512;
+ stbuf->st_blocks = DIV_ROUND_UP(stbuf->st_size, 512);
return 0;
}
return wimlib_overwrite(ctx->wim, write_flags, 0);
}
-/* In the case of an allow_other mount, only the owner and root should be
+/* In the case of an allow_other mount, only the mount owner and root are
* allowed to unmount the filesystem. */
static bool
may_unmount_wimfs(void)
/*
* Calculate what to put in the <FILECOUNT>, <DIRCOUNT>, <TOTALBYTES>, and
- * <HARDLINKBYTES> elements of each <IMAGE>.
+ * <HARDLINKBYTES> elements of the specified WIM image.
*/
void
xml_update_image_info(WIMStruct *wim, int image)