diff --git a/NEWS b/NEWS index 97ada112..a623d556 100644 --- a/NEWS +++ b/NEWS @@ -3,14 +3,14 @@ ntfsprogs 2.0.0 ntfsmount (and libntfs) now has full basic read/write support. -Cryptographic code now integrated into the libntfs, thus ntfscat and ntfsmount -now can read encrypted files. See "man 8 libntfs" for details. +Cryptographic code is now integrated into libntfs, thus ntfscat and ntfsmount +now can read encrypted files. See "man 8 libntfs" for details. ntfsresize (and the entirety of ntfsprogs/libntfs in fact) now have full support for Windows Vista. -ntfsprogs and libntfs now entirely endian safe and move over now we have checks -that automatically reports endian errors. +ntfsprogs and libntfs are now entirely endian safe and more over now we have +checks that automatically reports endian errors. mkntfs now creates a DCE compliant GUID for the volume and does a few other things to be more compliant with Windows Vista. diff --git a/ntfsprogs/ntfsinfo.c b/ntfsprogs/ntfsinfo.c index e3adfe1d..6a30cb21 100644 --- a/ntfsprogs/ntfsinfo.c +++ b/ntfsprogs/ntfsinfo.c @@ -1211,11 +1211,16 @@ static const char * ntfs_dump_lcn(LCN lcn) } } -static void ntfs_dump_attribute_header(ATTR_RECORD *a, ntfs_volume *vol) +static void ntfs_dump_attribute_header(ntfs_attr_search_ctx *ctx, + ntfs_volume *vol) { - printf("Dumping attribute %s (0x%x)\n", + ATTR_RECORD *a = ctx->attr; + + printf("Dumping attribute %s (0x%x) from mft record %lld (0x%llx)\n", get_attribute_type_name(a->type), - (unsigned)le32_to_cpu(a->type)); + (unsigned)le32_to_cpu(a->type), + (unsigned long long)ctx->ntfs_ino->mft_no, + (unsigned long long)ctx->ntfs_ino->mft_no); ntfs_log_verbose("\tAttribute length:\t %u (0x%x)\n", (unsigned)le32_to_cpu(a->length), @@ -2153,7 +2158,7 @@ static void ntfs_dump_file_attributes(ntfs_inode *inode) continue; } - ntfs_dump_attribute_header(ctx->attr, inode->vol); + ntfs_dump_attribute_header(ctx, inode->vol); switch (ctx->attr->type) { case AT_STANDARD_INFORMATION: