Re: A different look at block device hotswap in the Linux kernel

Steven Dake
2003-01-23T21:06:36Z

I cant speak about OS/X, but I have crashed windows several times (BSOD)
while hot removing a USB SCSI CDROM. As you will notice, when you run
windows and attach a device, there is a program that is started that
allows you to notify the os of the removal so that it may properly
remove the device from the OS instead of it being yanked.

Thanks
-steve

Matthew Jacob wrote:

>>The key is that the removal request should come from the top, not the
>>bottom. If someone is stupid enough to surprise remove a device (ie:
>>unplug their USB SCSI device while the device is in use by the OS), they
>>get what they deserve (I/O errors, dirty OS data, queued up requests
>>which never shut down). If they tell the OS that the device is going to
>>be removed, so it may flush the device and shut down I/O to the device,
>>the request should be granted on all accounts (expected removal).
>>
>>
>>
>
>Hmm? Windows and OS/X cope with this just fine.
>
>
>
>
>
>