mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-27 03:53:48 +08:00
Fix endianness bug in ntfsinfo. (Anton)
This commit is contained in:
parent
1d4958d38c
commit
6803fa4b76
@ -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.
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user