ntfs: Deal with NTFS versions for MFT record lookups
authorShao Miller <shao.miller@yrdsb.edu.on.ca>
Thu, 1 Sep 2011 04:44:18 +0000 (04:44 +0000)
committerPaulo Alcantara <pcacjr@gmail.com>
Sun, 11 Sep 2011 04:10:00 +0000 (04:10 +0000)
commit779ee27626e1d39ec02b91eb2e8fbcfd48d3bf00
treef4b6a182de3c7fbcbf23e1ddd67e622a119bbcb4
parenta0e388a0440a11a956f63b79b6c56e5b807ee950
ntfs: Deal with NTFS versions for MFT record lookups

The MFT record lookup strategies are different for NTFS
versions 3.0 and 3.1, so we use a function pointer for
the appropriate function.

We start off using 3.0 by default, then use that to read
the $Volume meta-file and find out the actual version.
Then we adjust the function pointer, as needed.

Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
core/fs/ntfs/ntfs.c
core/fs/ntfs/ntfs.h