On Thu, 6 Apr 2000, Miles Lane wrote:

> Speaking of USB devices that are not always in use, what are we going
> to do to make using mountable removable media easy?  I am referring to
> the differences between how Linux treats removable media and how 
> Windoze/Mac does.  For example, when you write a file to the Castlewood
> ORB drive using usb-storage, that file may not have actually been fully
> written.  I have seen a case when I had copied a directory tree to the
> ORB drive, moved the drive to a Windoze machine and discovered that
> half of the files where 4KB.
> 
> I haven't really checked, but are we handling the case where a storage
> device is disconnected without the usual "sync"/"umount" cycle?  Is
> there a way for us to do this?  I notice that folks are working an the
> automount portion, but I haven't seen discussion of unmounting.

Because of the way linux can cache disk access, you're pretty much screwed
here.  If it's a dos/vfat filesystem, I just use mtools to access it --
that avoids the problem.

The SCSI layer will keep the module usage count non-zero if it still needs
the device.  That seems to be the best behavior I can find for usb-storage
-- it acts like any other SCSI driver.

Oh, and if you yank a drive while it's in use, the driver will report "not
ready" in the hopes that you'll reconnect the drive.  If you do, it
_should_ be able to start back up.

Matt Dharm

-- 
Matthew Dharm                              Home: [EMAIL PROTECTED] 
Engineer, Qualcomm, Inc.                         Work: [EMAIL PROTECTED]

What the hell are you?
                                        -- Pitr to Dust Puppy 
User Friendly, 12/3/1997


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to