hlist_for_each_entry((dentry), &(inode)->i_alias_list, d_alias_node)
/* Return an alias of the specified inode. */
-#define inode_first_dentry(inode) \
+#define inode_any_dentry(inode) \
hlist_entry(inode->i_alias_list.first, struct wim_dentry, d_alias_node)
/* Return the full path of an alias of the specified inode, or NULL if a full
* path could not be determined. */
-#define inode_first_full_path(inode) \
- dentry_full_path(inode_first_dentry(inode))
+#define inode_any_full_path(inode) \
+ dentry_full_path(inode_any_dentry(inode))
extern void
d_associate(struct wim_dentry *dentry, struct wim_inode *inode);
{
if (inode->i_num_streams >= 0xFFFF) {
ERROR("Inode has too many streams! Path=\"%"TS"\"",
- inode_first_full_path(inode));
+ inode_any_full_path(inode));
errno = EFBIG;
return NULL;
}
ERROR("\"%"TS"\": blob not found\n"
" SHA-1 message digest of missing blob:\n"
" %"TS"",
- inode_first_full_path(inode), hashstr);
+ inode_any_full_path(inode), hashstr);
}
return WIMLIB_ERR_RESOURCE_NOT_FOUND;
}
WARNING("Unsupported directory hard link "
"\"%"TS"\" <=> \"%"TS"\"",
dentry_full_path(dentry),
- inode_first_full_path(inode));
+ inode_any_full_path(inode));
} else if (params->num_dir_hard_links ==
MAX_DIR_HARD_LINK_WARNINGS + 1)
{
reference_template_file(struct wim_inode *inode, WIMStruct *wim,
WIMStruct *template_wim)
{
- struct wim_dentry *dentry = inode_first_dentry(inode);
+ struct wim_dentry *dentry = inode_any_dentry(inode);
struct wim_dentry *template_dentry;
int ret;
if (blob->size > REPARSE_DATA_MAX_SIZE) {
ERROR_WITH_ERRNO("Reparse data of \"%s\" has size "
"%"PRIu64" bytes (exceeds %u bytes)",
- inode_first_full_path(inode),
+ inode_any_full_path(inode),
blob->size, REPARSE_DATA_MAX_SIZE);
return WIMLIB_ERR_INVALID_REPARSE_DATA;
}