grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] bug fix for ntfs


From: Thomas Frauendorfer
Subject: Re: [PATCH] bug fix for ntfs
Date: Tue, 24 Apr 2012 17:36:53 +0200

On Mon, Apr 23, 2012 at 6:03 PM, Bean <address@hidden> wrote:
> Hi,
>
>>>>> 2, Previous version doesn't return blocklist information for small
>>>>> files embed in MFT, this patch fixes it. For example, create a
>>>>> 512-byte file test in ntfs and try this command:
>>>>>
>>>>> grub-fstest /ntfs.img blocklist /test
>>>> It looks like this part of patch has issues. Like that it doesn't handle
>>>> the case when the read is split across 2 sectors or if MFT entry is at
>>>> offset >=1024. Or that it adds some checks (like "invalid mft offset")
>>>> which weren't there previously and which would make GRUB bail out on
>>>> weird FS even if user doesn't want blocklists.
>>> MFT in ntfs is only 1024 bytes, and it must be sector aligned, so if
>>> this test fails, there is serious problem with the fs (or the driver).
>> Is it true for 4K sector NTFS?
>
> Yeah, I've tried 64K block size and MFT is still 1024 bytes, it just
> pack multiple MFT in a single allocation unit.

When I formated a disk with 4K sectors in Windows it used a complete
sector for each MFT record. The block size is not relevant for the MFT
record size, but the sector size of the disk is.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]