kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* USB forceful removal
@ 2014-07-08 18:43 AYAN KUMAR HALDER
  2014-07-08 18:55 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: AYAN KUMAR HALDER @ 2014-07-08 18:43 UTC (permalink / raw)
  To: kernelnewbies

Hi All,

When a usb mass-storage is attached for the first time, it gets a
device (/dev/sda).

When it is mounted and the device is manually removed and then when it
is attached again, it gets a different name ie /dev/sdb.

This is because earlier the mass-storage device was removed (manually)
when it was mounted, so scsi_disk_release() did not get called as the
device (sda) had a reference count > 1.

So, if my understanding is correct, I would like to know if the above
mentioned behaviour is a bug or a limitation of the kernel?

Regards,
Ayan Kumar Halder

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-09 19:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-08 18:43 USB forceful removal AYAN KUMAR HALDER
2014-07-08 18:55 ` Greg KH
2014-07-08 22:17   ` Greg Freemyer
2014-07-08 22:33     ` Greg KH
2014-07-09 19:06       ` AYAN KUMAR HALDER

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).