>> Instead of redirecting to a different block device, Btrfs could and >> should refuse to mount an already-mounted superblock when the block >> device doesn't match, somewhere in or below btrfs_mount. Registering >> extra, distinct superblocks for an already mounted raid is a different >> matter, but that isn't done through the mount syscall anyway. > > The problem here is that you could quite legitimately mount > /dev/sda (with UUID=AA1234) on, say, /mnt/fs-a, and /dev/sdb (with > UUID=AA1234) on /mnt/fs-b -- _provided_ that /dev/sda and /dev/sdb are > both part of the same filesystem. So you can't simply prevent mounting > based on the device that the mount's being done with. Okay. The check should rely on a list of known block devices for a given filesystem uuid. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
