umass panic

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Mon Jul 18 09:05:13 PDT 2005


On 17.07.2005, at 14:15, Joerg Sonnenberger wrote:
 I wouldn't expect good things to happen detaching a drive without
 unmounting it first.
People are used to pulling out flash storage (compact flash, memory 
sticks
and the like) without the system going down.  Especially if no 
changes have
been made to the filesystem.
Things like this need to be handled transparent and gracefully, not
panicing.  (This has always been my one of biggest gripes about 
Unix.)
yea, despite that it's not particularly nice to the operating system 
to
remove devices without telling so first, we have to face this 
situation.
I'd even prefer that non-flushed data will be kept (or transferred to 
a
userland tool), so that if you notice "uh, I didn't umount!" and 
insert
it back, the data can be flushed out...
The problem with this is that USB device don't have UUIDs, unlike
Firewire. So you can't reliable detect that it is the same device, it
might be another USB stick of the same brand afterall.
that's the problem of the user then. I'd just check the superblock or 
such...

cheers
  simon
--
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low $$$ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \
Attachment:
PGP.sig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00016.pgp
Type: application/octet-stream
Size: 186 bytes
Desc: "Description: This is a digitally signed message part"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20050718/12a2e8a1/attachment-0022.obj>


More information about the Bugs mailing list