* [Bug] Remove and add a mounted device gets a new dev path
@ 2012-12-07 17:13 Anand Jain
0 siblings, 0 replies; only message in thread
From: Anand Jain @ 2012-12-07 17:13 UTC (permalink / raw)
To: linux-btrfs
# 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-07 17:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-07 17:13 [Bug] Remove and add a mounted device gets a new dev path Anand Jain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).