-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exfatprogs: tune: use sector size extracted from the boot sector
Eric Sandeen reported exfat dump image is damaged when tune.exfat was executed against exfat dump image created in 4K native device. # fsck/fsck.exfat /root/test.img exfatprogs version : 1.1.1 /root/test.img: clean. directories 1, files 0 # tune/tune.exfat -I 0x1234 /root/test.img exfatprogs version : 1.1.1 New volume serial : 0x1234 # fsck/fsck.exfat /root/test.img exfatprogs version : 1.1.1 checksum of boot region is not correct. 0x3eedc5, but expected 0xe59577e3 boot region is corrupted. try to restore the region from backup. Fix (y/N)? n This patch read boot sector with 4KB(for 4K native) size, and use the sector size extracted from the boot sector. Reported-by: Eric Sandeen <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
- Loading branch information
1 parent
0032bd2
commit a13479b
Showing
4 changed files
with
21 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters