Red Hat Bugzilla – Bug 191198
fsck.vfat does not work with disk image files
Last modified: 2007-11-30 17:11:32 EST
Description of problem:
fsck.vfat does not work on image file of a disk partition.
Version-Release number of selected component (if applicable):
2.10-3 (but it is the same in 2.11-4.2, I believe)
Run fsck.vfat on a disk image file.
Steps to Reproduce:
open hda5:File too large
It should fsck the image file.
I propose to skip the llseek.patch and build with
CFLAGS="$RPM_OPT_FLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
CFLAGS="$RPM_OPT_FLAGS -Dllseek=lseek64 -D_LARGEFILE64_SOURCE"
This works with image files, it still needs to be tested on real disks and on
Created attachment 128805 [details]
Patch to spec file for 2.10-3
I can't reproduce it.
# dd if=/dev/zero of=testFile bs=1M count=10
10+0 records in
10+0 records out
10485760 bytes (10 MB) copied, 0.156701 seconds, 66.9 MB/s
# mkdosfs testFile
mkdosfs 2.11 (12 Mar 2005)
# fsck.vfat testFile
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
testFile: 0 files, 0/5101 clusters
same result with dosfstool-2.10-3
You need to create a file larger than 4 GB for this problem to appear...
Hence the need for the -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 flags.
it's fixed in dosfstools-2.11-5 and dosfstools-2.11-5.FC5