[Bug] Remove and add a mounted device gets a new dev path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





# 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux