-/* Structure that allows searching the security descriptors by SHA1 message
- * digest. */
+/* Red-black tree that maps SHA1 message digests of security descriptors to
+ * security IDs, which are themselves indices into the table of security
+ * descriptors in the 'struct wim_security_data'. */
if (ntfs_attr_pread(na, 0, 8, buf) != 8)
goto out_error;
*reparse_tag_ret = le32_to_cpu(*(u32*)buf);
if (ntfs_attr_pread(na, 0, 8, buf) != 8)
goto out_error;
*reparse_tag_ret = le32_to_cpu(*(u32*)buf);
/* Make a lookup table entry for the stream, or use an existing
* one if there's already an identical stream. */
lte = __lookup_resource(lookup_table, attr_hash);
/* Make a lookup table entry for the stream, or use an existing
* one if there's already an identical stream. */
lte = __lookup_resource(lookup_table, attr_hash);
lte->ntfs_loc = ntfs_loc;
lte->resource_location = RESOURCE_IN_NTFS_VOLUME;
if (type == AT_REPARSE_POINT) {
lte->ntfs_loc = ntfs_loc;
lte->resource_location = RESOURCE_IN_NTFS_VOLUME;
if (type == AT_REPARSE_POINT) {
ntfs_loc->is_reparse_point = true;
lte->resource_entry.original_size = data_size - 8;
lte->resource_entry.size = data_size - 8;
ntfs_loc->is_reparse_point = true;
lte->resource_entry.original_size = data_size - 8;
lte->resource_entry.size = data_size - 8;
if (dentry->is_win32_name) {
node = lookup_dos_name(map, dentry->d_inode->i_ino);
if (node) {
if (dentry->is_win32_name) {
node = lookup_dos_name(map, dentry->d_inode->i_ino);
if (node) {
dentry->short_name_len = node->name_len_bytes;
DEBUG("Assigned DOS name to ino %"PRIu64,
dentry->d_inode->i_ino);
} else {
dentry->short_name_len = node->name_len_bytes;
DEBUG("Assigned DOS name to ino %"PRIu64,
dentry->d_inode->i_ino);
} else {
- DEBUG("ino %"PRIu64" has Win32 name with no "
- "corresponding DOS name",
- dentry->d_inode->i_ino);
+ WARNING("NTFS inode %"PRIu64" has Win32 name with no "
+ "corresponding DOS name",
+ dentry->d_inode->i_ino);
ret = insert_dos_name(ctx->dos_name_map, name,
name_len, mref & MFT_REF_MASK_CPU);
ret = insert_dos_name(ctx->dos_name_map, name,
name_len, mref & MFT_REF_MASK_CPU);
}
ret = utf16_to_utf8((const char*)name, name_len * 2,
&utf8_name, &utf8_name_len);
}
ret = utf16_to_utf8((const char*)name, name_len * 2,
&utf8_name, &utf8_name_len);