On Tue, Apr 26, 2011 at 6:22 AM, Arnd Bergmann <arnd@xxxxxxxx> wrote: > On Saturday 23 April 2011, John Stultz wrote: >> From: Colin Cross <ccross@xxxxxxxxxxx> >> >> Set the GENHD_FL_EXT_DEVT flag, which will allocate minor numbers >> in major 259 for partitions past disk->minors. >> >> Also remove the use of disk_devt to determine devidx from md->disk. >> md->disk->first_minor is always initialized from devidx and can >> always be used to recover it. >> >> CC: Chris Ball <cjb@xxxxxxxxxx> >> CC: Arnd Bergmann <arnd@xxxxxxxx> >> CC: Dima Zavin <dima@xxxxxxxxxxx> >> Signed-off-by: Colin Cross <ccross@xxxxxxxxxxx> >> Signed-off-by: John Stultz <john.stultz@xxxxxxxxxx> > > The new code looks reasonable, but wouldn't changing this be incompatible > with existing root file systems that contain static device nodes? I don't think so. Without this change, /dev/mmcblk0p1 will be (179, 1), /dev/mmcblk0p7 will be (179, 7), and /dev/mmcblk0p8 will be dropped. After this change, /dev/mmcblk0p1-7 will be the same, but /dev/mmcblk0p8 will be (259, <random number>). A root file system with static inodes will still have access to partitions 1-7, and will still not have access to dynamically-assigned partition 8. -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html