dosfstools/dosfstools-mdraid-partition.patch
Petr Gajdos 3553039064 - fixed:
* [bnc#639553] -- mkdosfs now detects md raid partition correctly
  * [bnc#649046] -- install dosfslabel
  * spec file cleanup

OBS-URL: https://build.opensuse.org/package/show/Base:System/dosfstools?expand=0&rev=13
2010-11-01 12:27:32 +00:00

20 lines
845 B
Diff

Index: src/mkdosfs.c
===================================================================
--- src.orig/mkdosfs.c
+++ src/mkdosfs.c
@@ -1763,10 +1763,10 @@ main (int argc, char **argv)
* this is a MO disk I introduce a -I (ignore) switch. -Joey
*/
if (!ignore_full_disk && (
- (statbuf.st_rdev & 0xff3f) == 0x0300 || /* hda, hdb */
- (statbuf.st_rdev & 0xff0f) == 0x0800 || /* sd */
- (statbuf.st_rdev & 0xff3f) == 0x0d00 || /* xd */
- (statbuf.st_rdev & 0xff3f) == 0x1600 ) /* hdc, hdd */
+ (statbuf.st_rdev & 0xfff3f) == 0x00300 || /* hda, hdb */
+ (statbuf.st_rdev & 0xfff0f) == 0x00800 || /* sd */
+ (statbuf.st_rdev & 0xfff3f) == 0x00d00 || /* xd */
+ (statbuf.st_rdev & 0xfff3f) == 0x01600 ) /* hdc, hdd */
)
die ("Device partition expected, not making filesystem on entire device '%s' (use -I to override)");