Fix endianness bug in ntfsinfo. (Anton)

This commit is contained in:
antona 2005-10-15 23:44:57 +00:00
parent 1d4958d38c
commit 6803fa4b76
3 changed files with 4 additions and 5 deletions

View File

@ -26,6 +26,7 @@ xx/xx/2005 - 1.12.2-WIP
- Fix endianness bug (le16 instead of le32 when accessing mft record
bytes_in_use) in volume.c::ntfs_volume_write_flags() and
ntfsfix.c::OLD_ntfs_volume_set_flags(). (Anton)
- Fix endianness bug in ntfsinfo. (Anton)
10/10/2005 - 1.12.1 - Minor fix to location of mount.ntfs-fuse and mkfs.ntfs.

View File

@ -292,10 +292,8 @@ typedef enum {
* The _LE versions are to be applied on little endian MFT_REFs.
* Note: The _LE versions will return a CPU endian formatted value!
*/
typedef enum {
MFT_REF_MASK_CPU = 0x0000ffffffffffffULL,
MFT_REF_MASK_LE = const_cpu_to_le64(0x0000ffffffffffffULL),
} MFT_REF_CONSTS;
#define MFT_REF_MASK_CPU 0x0000ffffffffffffULL
#define MFT_REF_MASK_LE const_cpu_to_le64(MFT_REF_MASK_CPU)
typedef u64 MFT_REF;

View File

@ -1882,7 +1882,7 @@ int main(int argc, char **argv)
if (opts.filename) {
inode = ntfs_pathname_to_inode(vol, NULL, opts.filename);
} else {
inode = ntfs_inode_open(vol, MK_LE_MREF(opts.inode, 0));
inode = ntfs_inode_open(vol, MK_MREF(opts.inode, 0));
}
/* dump the inode information */