From 67b430223ff2209886e6bdb9fb631c0df83b1e855aad3f8f4db8ca1082208e28 Mon Sep 17 00:00:00 2001 From: Petr Gajdos Date: Tue, 9 Nov 2010 14:48:52 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Base:System/dosfstools?expand=0&rev=14 --- dosfstools-mdraid-partition.patch | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/dosfstools-mdraid-partition.patch b/dosfstools-mdraid-partition.patch index e1462f8..b2a4ec5 100644 --- a/dosfstools-mdraid-partition.patch +++ b/dosfstools-mdraid-partition.patch @@ -1,8 +1,8 @@ Index: src/mkdosfs.c =================================================================== ---- src.orig/mkdosfs.c +--- src/mkdosfs.c.orig +++ src/mkdosfs.c -@@ -1763,10 +1763,10 @@ main (int argc, char **argv) +@@ -1763,10 +1763,11 @@ main (int argc, char **argv) * this is a MO disk I introduce a -I (ignore) switch. -Joey */ if (!ignore_full_disk && ( @@ -10,10 +10,11 @@ Index: src/mkdosfs.c - (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 */ ++ (statbuf.st_rdev & 0xfff3f) == 0x00300 || ++ (major(statbuf.st_rdev) == 3 && (minor(statbuf.st_rdev) & 63) == 0) || /* hda, hdb */ ++ (major(statbuf.st_rdev) == 8 && (minor(statbuf.st_rdev) & 15) == 0) || /* sd */ ++ (major(statbuf.st_rdev) == 13 && (minor(statbuf.st_rdev) & 63) == 0) || /* xd */ ++ (major(statbuf.st_rdev) == 22 && (minor(statbuf.st_rdev) & 63) == 0)) /* hdc, hdd */ ) die ("Device partition expected, not making filesystem on entire device '%s' (use -I to override)");