Anand Jain
2012-Dec-07 17:13 UTC
[Bug] Remove and add a mounted device gets a new dev path
# mount /dev/sdb /btrfs # echo "scsi remove-single-device 1 0 0 0" > /proc/scsi/scsi # lsscsi [0:0:0:0] disk ATA VBOX HARDDISK 1.0 /dev/sda [2:0:0:0] disk ATA VBOX HARDDISK 1.0 /dev/sdc # btrfs su create /btrfs/sv1 Create subvolume ''/btrfs/sv1'' ERROR: cannot create subvolume - Input/output error # echo "scsi add-single-device 1 0 0 0" > /proc/scsi/scsi # lsscsi [0:0:0:0] disk ATA VBOX HARDDISK 1.0 /dev/sda [1:0:0:0] disk ATA VBOX HARDDISK 1.0 /dev/sdd <--- [2:0:0:0] disk ATA VBOX HARDDISK 1.0 /dev/sdc The same disk comes back as /dev/sdd (the issue is same if disk is mounted as an ext4 fs) Thanks -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html