Hello!
On Mon, Jan 21, 2002 at 07:45:08AM +0100, Russell Coker wrote:
> On Mon, 21 Jan 2002 07:28, Oleg Drokin wrote:
> > > USB by it's nature is something external to the system. Unplugging a USB
> > > cable with a mounted drive attached should (IMHO) get the same result as
> > > unplugging an Ethernet cable with an NFS mount in progress. This means
> > > processes go into D state if they have outstanding writes, and for reads
> > > they may go D state depending on mount options, and then you wait for the
> > > device to become available again.
> > How do you distinguish between SCSI & USB storage in Linux on fs level? ;)
> You can have SCSI and IDE unpluggable devices too...
IDE code is not in kernel proper yet.
As for SCSI, it is not recommended to unplug scsi devices with PC powered.
And even Windows asks you to first tell it about device removal, to
get predictable results. (not that it makes windows stable, even if you follow
its directions ;) )
> > > For a file system on USB ReiserFS would have to recheck the superblock
> > > (to make sure that it hasn't been mounted on another computer in the mean
> > > time) before allowing access again. Also there would have to be a
> > > recovery process for the situation when the USB device is gone for good.
> > Sound not very easy to do ;)
> True. Writing a good file system is never easy.
Linux lacks API for this kind of stuff anyway.
Bye,
Oleg