Hello all,
I was recently surprised to see that it is possible to define a not empty directory as mountpoint for a dataset.
for example :
Is it a freebsd feature or a bug ?
If I refer to Oracle doc, this is not possible on another ZFS implementation.
Thank you in advance for all your answers.
I was recently surprised to see that it is possible to define a not empty directory as mountpoint for a dataset.
for example :
Bash:
$ mkdir /var/dir_not_empty
$ touch /var/dir_not_empty/test
$ ls -l /var/dir_not_empty/
total 1
-rw-r--r-- 1 root wheel 0 Nov 25 15:59 test
$ zfs create -o mountpoint=/var/dir_not_empty zroot/test_dataset
$ ls -l /var/dir_not_empty/
total 0
$ zfs destroy zroot/test_dataset
$ ls -l /var/dir_not_empty/
total 1
-rw-r--r-- 1 root wheel 0 Nov 25 15:59 test
Is it a freebsd feature or a bug ?
If I refer to Oracle doc, this is not possible on another ZFS implementation.
Thank you in advance for all your answers.