[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-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux