From 188ec53f750c1ec2e1061755595f0d9fe65ac626 Mon Sep 17 00:00:00 2001 From: Paulo Alcantara Date: Thu, 11 Aug 2011 03:46:06 +0000 Subject: ntfs: fix VCN calculation and the ntfs_readdir() function Now I'd recommend to test it :-) Signed-off-by: Paulo Alcantara --- core/fs/ntfs/ntfs.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/fs/ntfs/ntfs.h') diff --git a/core/fs/ntfs/ntfs.h b/core/fs/ntfs/ntfs.h index 9e6da4d9..9dbaf8f5 100644 --- a/core/fs/ntfs/ntfs.h +++ b/core/fs/ntfs/ntfs.h @@ -40,7 +40,7 @@ struct ntfs_bpb { uint64_t mft_mirr_lclust; int8_t clust_per_mft_record; uint8_t unused_4[3]; - uint8_t clust_per_idx_buf; + uint8_t clust_per_idx_record; uint8_t unused_5[3]; uint64_t vol_serial; uint32_t unused_6; @@ -51,10 +51,11 @@ struct ntfs_bpb { struct ntfs_sb_info { block_t mft_blk; /* The first MFT record block */ uint64_t mft_lcn; /* LCN of the first MFT record */ - unsigned mft_size; /* The MFT size in sectors */ uint64_t mft_record_size; /* MFT record size in bytes */ + uint8_t clust_per_idx_record; /* Clusters per Index Record */ + unsigned long long clusters; /* Total number of clusters */ unsigned clust_shift; /* Based on sectors */ -- cgit v1.2.1