diff --git a/dosfstools-2.11-unsupported-sector-size.patch b/dosfstools-2.11-unsupported-sector-size.patch new file mode 100644 index 0000000..a33d726 --- /dev/null +++ b/dosfstools-2.11-unsupported-sector-size.patch @@ -0,0 +1,14 @@ +--- mkdosfs/mkdosfs.c ++++ mkdosfs/mkdosfs.c +@@ -1731,6 +1731,11 @@ + } + } + ++ if (sector_size > 4096) ++ fprintf(stderr, ++ "Warning: sector size is set to %d > 4096, such filesystem will not propably mount\n", ++ sector_size); ++ + establish_params (statbuf.st_rdev,statbuf.st_size); + /* Establish the media parameters */ + diff --git a/dosfstools.changes b/dosfstools.changes index 82ea294..d3b2b60 100644 --- a/dosfstools.changes +++ b/dosfstools.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 24 15:15:31 CEST 2008 - pgajdos@suse.cz + +- added warning for creation msdos on filesystem with sector size + greater than 4096 [fate#303325] (unsupported-sector-size.patch) + ------------------------------------------------------------------- Thu Sep 6 16:26:57 CEST 2007 - pgajdos@suse.cz diff --git a/dosfstools.spec b/dosfstools.spec index a022cbe..3c21fa4 100644 --- a/dosfstools.spec +++ b/dosfstools.spec @@ -1,7 +1,7 @@ # # spec file for package dosfstools (Version 2.11) # -# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -10,15 +10,16 @@ # norootforbuild + Name: dosfstools Provides: mkdosfs dosfsck License: GPL v2 or later Group: System/Filesystems -Autoreqprov: on +AutoReqProv: on Summary: Utilities for Making and Checking MS-DOS FAT File Systems on Linux Version: 2.11 -Release: 78 -URL: ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools +Release: 121 +Url: ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools Source: %{name}-%{version}.src.tar.bz2 Patch0: %{name}-%{version}-linuxfs.patch Patch1: %{name}-%{version}-unaligned.patch @@ -26,6 +27,7 @@ Patch2: %{name}-%{version}-buffer.patch Patch3: %{name}-%{version}-o_excl.patch Patch4: %{name}-%{version}-mkdosfs-geo0.diff Patch5: %{name}-%{version}_determine-sector-size.patch +Patch6: %{name}-%{version}-unsupported-sector-size.patch Obsoletes: mkdosfs dosfsck dosfstls BuildRoot: %{_tmppath}/%{name}-%{version}-build Supplements: filesystem(vfat) @@ -51,6 +53,7 @@ Authors: %patch3 %patch4 -p1 %patch5 +%patch6 %build make OPTFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $RPM_OPT_FLAGS" @@ -91,62 +94,65 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man8/*.gz %changelog -* Thu Sep 06 2007 - pgajdos@suse.cz +* Tue Jun 24 2008 pgajdos@suse.cz +- added warning for creation msdos on filesystem with sector size + greater than 4096 [fate#303325] (unsupported-sector-size.patch) +* Thu Sep 06 2007 pgajdos@suse.cz - determine sector size of device automatically or if -S parameter present, verify, that it's not under physical sector size (determine-sector-size.patch) -* Thu Aug 09 2007 - olh@suse.de +* Thu Aug 09 2007 olh@suse.de - remove inclusion of asm/unaligned.h, use private copy of asm-generic/unaligned.h -* Thu Apr 26 2007 - lnussel@suse.de +* Thu Apr 26 2007 lnussel@suse.de - remove obsolete subfs patch - fix handling of zero heads and sectors -* Wed Apr 04 2007 - pgajdos@suse.cz +* Wed Apr 04 2007 pgajdos@suse.cz - added Supplements: filesystem(vfat) line to spec file [fate#301966] -* Tue Jan 30 2007 - prusnak@suse.cz +* Tue Jan 30 2007 prusnak@suse.cz - mkdosfs now opens device with O_EXCL [#238687] -* Sat May 27 2006 - schwab@suse.de +* Sat May 27 2006 schwab@suse.de - Don't strip binaries. -* Wed Jan 25 2006 - mls@suse.de +* Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires -* Tue Nov 08 2005 - dmueller@suse.de +* Tue Nov 08 2005 dmueller@suse.de - don't build as root -* Mon Nov 07 2005 - yxu@suse.de +* Mon Nov 07 2005 yxu@suse.de - fixed overflowing buffer problem -* Mon Apr 11 2005 - mcihar@suse.cz +* Mon Apr 11 2005 mcihar@suse.cz - update to 2.11 - use sys/mount.h instead of linux/fs.h, this fixes compilation with current GCC -* Tue Feb 15 2005 - mcihar@suse.cz +* Tue Feb 15 2005 mcihar@suse.cz - deal with subfs (bug #50838) - use /proc/mounts if available for deciding whether device is mounted or not - just issue warning if it is mounted as subfs -* Thu Aug 19 2004 - mcihar@suse.cz +* Thu Aug 19 2004 mcihar@suse.cz - merged some dosfsck fixes from FreeDOS -* Thu Jul 15 2004 - schwab@suse.de +* Thu Jul 15 2004 schwab@suse.de - Fix unaligned accesses [#40296]. -* Wed Jun 02 2004 - ro@suse.de +* Wed Jun 02 2004 ro@suse.de - avoid inclusion of linux/audit.h -* Thu Mar 18 2004 - mcihar@suse.cz +* Thu Mar 18 2004 mcihar@suse.cz - fix dosfsck man page (pointed out in bug #34757) -* Mon Mar 08 2004 - mcihar@suse.cz +* Mon Mar 08 2004 mcihar@suse.cz - fix broken dosfsck (bug #34757) -* Thu Jan 29 2004 - mcihar@suse.cz +* Thu Jan 29 2004 mcihar@suse.cz - include more documentation -* Thu Jan 15 2004 - kukuk@suse.de +* Thu Jan 15 2004 kukuk@suse.de - Make compile with kernel 2.6.1 headers -* Thu Oct 23 2003 - schwab@suse.de +* Thu Oct 23 2003 schwab@suse.de - Don't define llseek to lseek64, creates infinite recursion. -* Tue Oct 14 2003 - mcihar@suse.cz +* Tue Oct 14 2003 mcihar@suse.cz - install links also for {fsck,mkfs}.vfat + man pages (bug #32284) -* Mon Sep 29 2003 - mcihar@suse.cz +* Mon Sep 29 2003 mcihar@suse.cz - updated to 2.10: - dosfsck: various 64-bit fixes and removed some warnings by Michal Cihar - mkdosfs: better error message if called without parameters (also suggested by Michal) -* Mon Jun 09 2003 - mcihar@suse.cz +* Mon Jun 09 2003 mcihar@suse.cz - new upstream version 2.9: * dosfsck: Fix potential for "Internal error: next_cluster on bad cluster". * dosfsck: When clearing long file names, don't overwrite the dir @@ -161,44 +167,44 @@ rm -rf $RPM_BUILD_ROOT be read (in case a partition is smaller than the fs thinks) - realy working large file support - don't package obsolette documentation -* Wed Dec 04 2002 - mcihar@suse.cz +* Wed Dec 04 2002 mcihar@suse.cz - don't allow -fPIC on i386 in CFLAGS, even on i386-debug, because this package doesn't build with it -* Mon Dec 02 2002 - ro@suse.de +* Mon Dec 02 2002 ro@suse.de - include errno.h where needed -* Tue Sep 10 2002 - mcihar@suse.cz +* Tue Sep 10 2002 mcihar@suse.cz - added -D_FILE_OFFSET_BITS=64 to CFLAGS to support larger files/partitions -* Tue May 21 2002 - ro@suse.de +* Tue May 21 2002 ro@suse.de - extend 64bit ifdefs for new platforms -* Fri Mar 01 2002 - jantos@suse.cz +* Fri Mar 01 2002 jantos@suse.cz - Fixed missing files in documentation (bug 13973) -* Fri Sep 14 2001 - schwab@suse.de +* Fri Sep 14 2001 schwab@suse.de - Fix crash if mkdosfs is called without arguments. -* Tue May 22 2001 - pblaha@suse.cz +* Tue May 22 2001 pblaha@suse.cz - fixed include files on ia64 -* Sun Apr 08 2001 - schwab@suse.de +* Sun Apr 08 2001 schwab@suse.de - Fix to build on ia64. -* Mon Mar 05 2001 - pblaha@suse.cz +* Mon Mar 05 2001 pblaha@suse.cz - update on 2.8 -* Mon Feb 12 2001 - ro@suse.de +* Mon Feb 12 2001 ro@suse.de - don't include linux/fs.h -* Thu Jan 18 2001 - schwab@suse.de +* Thu Jan 18 2001 schwab@suse.de - Add Obsoletes: dosfstls. -* Wed Jan 17 2001 - pblaha@suse.cz +* Wed Jan 17 2001 pblaha@suse.cz - added message "not enough memory to run dosfsck\n" - if not free memory for malloc -* Fri Dec 22 2000 - pblaha@suse.cz +* Fri Dec 22 2000 pblaha@suse.cz - upgrade on 2.6 and rename on dosfstools -* Mon Dec 04 2000 - sf@suse.de +* Mon Dec 04 2000 sf@suse.de - corrected patch to compile on Alpha and ia64 -* Tue Nov 21 2000 - uli@suse.de +* Tue Nov 21 2000 uli@suse.de - worked around strncasecmp declaration conflict in mkdosfs.c -* Mon Nov 13 2000 - ro@suse.de +* Mon Nov 13 2000 ro@suse.de - hacked to compile on 2.4 includes -* Thu Nov 02 2000 - pblaha@suse.cz +* Thu Nov 02 2000 pblaha@suse.cz - update to version 2.4 -* Mon Jun 05 2000 - schwab@suse.de +* Mon Jun 05 2000 schwab@suse.de - Fix llseek on ia64. -* Fri Jun 02 2000 - bubnikv@suse.cz +* Fri Jun 02 2000 bubnikv@suse.cz - new package in SuSE, version 2.2 - makes packages dosfsck and mkdosfs obsolette