On Fri, November 26, 2010 08:16, Pavel Heimlich wrote:

> Are there some zfs / OS parameters I could set so that my usb drive with
> zfs on it would meet the expectations one has from a removable drive?
> (i.e. safe to remove +-anytime)

Nope. Most file systems on Unix don't have the expectation. You may want
to look at the following from zpool(1M):

     zpool import [-o mntopts] [ -o property=value] ... [-d dir |
     -c cachefile] [-D] [-f] [-R root] [-F [-n]] -a
     [...]
         -f
             Forces import, even if the pool appears to be poten-
             tially active.
     [...]

http://docs.sun.com/app/docs/doc/816-5166/zpool-1m

As it stands, if you try pulling a drive on any Unix system (ext2, ext3,
UFS, FFS, XFS, etc.) the system will generally will not respond kindly.
Even with Windows and Mac OS X, it's generally recommended that you
"eject" the hardware first in some way. It's just the other file systems
are a little less vocal in their objections when you re-insert the device
again.

Probably the only file system that doesn't worry too much about random
ejections is FAT(32).


_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to