On Tue, Apr 26, 2011 at 6:22 AM, Arnd Bergmann <a...@arndb.de> wrote: > On Saturday 23 April 2011, John Stultz wrote: >> From: Colin Cross <ccr...@android.com> >> >> 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 <c...@laptop.org> >> CC: Arnd Bergmann <a...@arndb.de> >> CC: Dima Zavin <d...@android.com> >> Signed-off-by: Colin Cross <ccr...@android.com> >> Signed-off-by: John Stultz <john.stu...@linaro.org> > > 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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html