On January 28, 2009 9:41:20 AM -0600 Bob Friesenhahn 
<bfrie...@simple.dallas.tx.us> wrote:
> On Tue, 27 Jan 2009, Frank Cusack wrote:
>
>> i was wondering if you have a zfs filesystem that mounts in a subdir
>> in another zfs filesystem, is there any problem with zfs finding
>> them in the wrong order and then failing to mount correctly?
>
> I have not encountered that problem here and I do have a multilevel mount
> heirarchy so I assume that ZFS orders the mounting intelligently.

well, the thing is, if the two filesystems are in different pools (let
me repeat the example):

On January 27, 2009 10:53:18 PM -0800 Frank Cusack <fcus...@fcusack.com> 
wrote:
> say you have pool1/data which mounts on /data and pool2/foo which
> mounts on /data/subdir/foo, what if at boot time, pool2 is imported
> first, what happens?  /data would exist but /data/subdir wouldn't
> exist since pool1/data hasn't been mounted yet.

i would not expect zfs to wait for pool1 to show up; that might never
happen.  so /data/subdir/foo would be created for pool2/foo to be
mounted on, at which point there would seem to be a race condition
where /data/subdir is on the root filesystem, not the pool1/data
filesystem.  any data written into /data/subdir at this time will be
masked when pool1 is imported.

using root zfs pools made me think of this case.  also, my mail gets
delivered into ~/Maildir, where each homedir is a zfs filesystem, but
now i've decided to also create separate zfs filesytems for each mail
spool.  i still want them visible in each home directory though.

previously, i've only mounted filesystems from different pools in
different hierarchies.

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

Reply via email to