Support 4K-sector NTFS.

* include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
	(grub_ntfs_data): Remove blocksize.
	* grub-core/fs/ntfs.c (fixup): Fix size comparison.
	Remove data argument. All users updated.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-01-20 15:01:35 +01:00
parent dad9c8b59e
commit b508af6989
3 changed files with 23 additions and 16 deletions

View file

@ -81,7 +81,7 @@ enum
#define GRUB_NTFS_BLK_SHR GRUB_DISK_SECTOR_BITS
#define GRUB_NTFS_MAX_MFT (1024 >> GRUB_NTFS_BLK_SHR)
#define GRUB_NTFS_MAX_MFT (4096 >> GRUB_NTFS_BLK_SHR)
#define GRUB_NTFS_MAX_IDX (16384 >> GRUB_NTFS_BLK_SHR)
#define GRUB_NTFS_COM_LEN 4096
@ -157,7 +157,6 @@ struct grub_ntfs_data
grub_uint32_t mft_size;
grub_uint32_t idx_size;
grub_uint32_t spc;
grub_uint32_t blocksize;
grub_uint32_t mft_start;
grub_uint64_t uuid;
};