]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Warn about old EZD and DM disk remappers
authorAndries E. Brouwer <andries.brouwer@cwi.nl>
Mon, 10 Nov 2003 00:50:35 +0000 (16:50 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 10 Nov 2003 00:50:35 +0000 (16:50 -0800)
Since 2.6.x by default does not remap the disk partitions any more, it
would be a good idea to warn when we see EZD or DM signatures.  That
informs the user to fix his setup (or pass in "hdx=remap" on the kernel
command line).

fs/partitions/msdos.c

index c5d3bd2d1cb1429ce881fa66e610dee75a6408d8..3ed5cb52aa3f6901608dcb345f28d726230d9634 100644 (file)
@@ -425,6 +425,10 @@ int msdos_partition(struct parsed_partitions *state, struct block_device *bdev)
                put_partition(state, slot, start, size);
                if (SYS_IND(p) == LINUX_RAID_PARTITION)
                        state->parts[slot].flags = 1;
+               if (SYS_IND(p) == DM6_PARTITION)
+                       printk("[DM]");
+               if (SYS_IND(p) == EZD_PARTITION)
+                       printk("[EZD]");
        }
 
        printk("\n");