11 Commits

Author SHA1 Message Date
Daniel Baumann
e670ea82c9 Applying Gentoos dosfstools-2.11-fat32size.patch from Mike Frysinger
<vapier@gentoo.org> to fix generation of filesystems on 256meg devices:

  * Fix generation of FAT filesystems on devices that are 256meg in size
    Patch by Ulrich Mueller and accepted upstream
    http://bugs.gentoo.org/112504

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:03 +01:00
Daniel Baumann
a6dc6a4d4b Applying Suses dosfstools-2.11-unsupported-sector-size.patch from Petr
Gajdos <pgajdos@suse.cz> to add sector size warning:

  * added warning for creation msdos on filesystem with sector size
    greater than 4096 [fate#303325]

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:02 +01:00
Daniel Baumann
f74695618b Applying Suses dosfstools-2.11-mkdosfs-geo0.diff from Ludwig Nussel
<lnussel@suse.de> to fix handling of zero heads and sectors:

  * the HDIO_GETGEO ioctl works on device mapper devices but returns
    zero heads and sectors. Therefore let's a) assume dummy values in
    that case in mkdosfs and b) don't consider such fat file systems as
    invalid in dosfsck. The Linux kernel accepts them anyways.

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:01 +01:00
Daniel Baumann
cf243e4a84 Applying Suses dosfstools-2.11-linuxfs.patch from Ruediger Oertel
<ro@suse.de> to not include linux/fs.h.

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:50:00 +01:00
Daniel Baumann
2d4f18457e Applying Fedoras dosfstools-2.11-assumeKernel26.patch from Peter Vrabec
<pvrabec@redhat.com> to remove linux 2.6 conditionals:

  * LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) does not work with
    glibc-kernheaders-2.4-9.1.94

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:49:59 +01:00
Daniel Baumann
3b6a8634f4 Applying Debians 13-getopt.dpatch from Adonikam Virgo
<adonikam@virgonet.org> to fix mkdosfs getopt:

  * Fixes backup sector getopt (Closes: #232387, #479794).

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:49:54 +01:00
Daniel Baumann
4371588cfa Applying Suses dosfstools-2.11_determine-sector-size.patch from Petr
Gajdos <pgajdos@suse.cz> to determine mkdosfs sector size automatically:

  * determine sector size of device automatically or if -S parameter
    present, verify, that it's not under physical sector size

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:49:29 +01:00
Daniel Baumann
fc92e197f8 Applying Suses dosfstools-2.11-o_excl.patch from Pavol Rusnak
<prusnak@suse.cz> to use O_EXCL in mkdosfs:

  * mkdosfs now opens device with O_EXCL [#238687]

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:49:27 +01:00
Daniel Baumann
07ef487247 Applying Fedoras dosfstools-2.11-fortify.patch from Jakub Jelinek
<jakub@redhat.com> to make it build with -D_FORTIFY_SOURCE=2:

  * This violates -D_FORTIFY_SOURCE=2 (which is stricter than C
    standard), but isn't actually any buffer overflow. But using memcpy
    is more efficient anyway.

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:49:20 +01:00
Daniel Baumann
78f9dca40b Applying Fedoras dosfstools-2.7-argfix.patch (no other information
available).

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:49:06 +01:00
Daniel Baumann
ba6774ae1d Adding version 2.11.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
2013-01-23 12:46:45 +01:00