New task #5704 in dosfstools: dosfsck destroys VFAT partitions, mkdosfs creates only 1GB file system on bigger partitions

Flyspray - The bug killer! btsadmin at pld-linux.org
Wed Oct 5 18:57:19 CEST 2005


Project: PLD 2.x (Ac)

  Reported by: Maciej Witaszek (maciek2w)
      Package: dosfstools
      Version: 2.11
      Summary: dosfsck destroys VFAT partitions, mkdosfs creates only
1GB file system on bigger partitions
  
  Both programs dosfsck and mkdosfs that come from package use lseek
function that
can move file offset up to 1GB from file's begin.
So mkdosfs can create only 1GB VFAT file system on 
much bigger partition. The dosfsck destroys file system
because it has only access to begin of the partition.

Solution:
You need add "-D_FILE_OFFSET_BITS=64" to OPTFLAGS when 
package is built as is in orginal Makefile that comes
in sources.

Patch of dosfstools.spec:
--- dosfstools.spec.orig        2005-10-05 18:51:40.000000000 +0200
+++ dosfstools.spec     2005-10-05 18:51:27.000000000 +0200
@@ -52,7 +52,7 @@

 %build
 %{__make} \
-       OPTFLAGS="%{rpmcflags}" \
+       OPTFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64" \
        PREFIX=%{_prefix}

 %install


For more further see:
http://bugs.pld-linux.org/index.php?do=details&id=5704

------------------------------------------------------------------------
THIS IS AN AUTOMATICALLY GENERATED MESSAGE, DO NOT REPLY




More information about the pld-bugs mailing list