2010-11-01 13:27:32 +01:00
|
|
|
Index: src/mkdosfs.c
|
|
|
|
===================================================================
|
2010-11-09 15:48:52 +01:00
|
|
|
--- src/mkdosfs.c.orig
|
2010-11-01 13:27:32 +01:00
|
|
|
+++ src/mkdosfs.c
|
2010-11-09 15:48:52 +01:00
|
|
|
@@ -1763,10 +1763,11 @@ main (int argc, char **argv)
|
2010-11-01 13:27:32 +01:00
|
|
|
* 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 */
|
2010-11-09 15:48:52 +01:00
|
|
|
+ (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 */
|
2010-11-01 13:27:32 +01:00
|
|
|
)
|
|
|
|
die ("Device partition expected, not making filesystem on entire device '%s' (use -I to override)");
|
|
|
|
|