[OpenIndiana-discuss] surprising behaviour of mount

Marc Lobelle marc.lobelle at uclouvain.be
Thu Feb 8 15:30:13 UTC 2018


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.

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 ? Is there a way to avoid this constraint ?

Thanks


Marc







More information about the openindiana-discuss mailing list