On Thu, Feb 8, 2018 at 3:30 PM, Marc Lobelle <marc.lobe...@uclouvain.be>
wrote:

> Hello All,
>
> Today I had a very curious message when trying to mount a file system on a
> non-empy directory
>
> cannot mount '/export/home/ml/mydirname': directory is not empty
>
> Afaik, mounting on a non empty directory has always been allowed: the
> original contents is just temporarily hidden.
>

zfs has always refused to mount over a non-empty directory by default


> mounting was done automatically as a byproduct of
>
> zpool import -d /dev/lofi szpool
>
> szpool had been created by
>
> zpool create -m /export/home/ml/mydirname szpool /dev/lofi/1
>
> Is there a good reason to prohibit mounting on a non-empty directory in
> this case ?


It's to stop you making mistakes.


> Is there a way to avoid this constraint ?
>

'zfs mount -O' will override the non-empty check.

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
_______________________________________________
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to