How do I move existing files into a new dataset on the same file path, without using the copy command?
Example:
I'm not claiming this behaviour is abnormal, I'm just wondering how can I create a new dataset that keeps it's files, ... basically, what I want is work in an existing filesys and add new settings for that specific path.
Example:
Code:
# zfs list | grep -i tmp
zroot/tmp 4.01M 2.23T 4.01M /tmp
zroot/var/tmp 104K 2.23T 104K /var/tmp
# mkdir test
# echo something >test/file
# cat test/file
something
# zfs create zroot/tmp/test
# zfs list | grep -i tmp
zroot/tmp 4.11M 2.24T 4.02M /tmp
zroot/tmp/test 96K 2.24T 96K /tmp/test
zroot/var/tmp 104K 2.24T 104K /var/tmp
# cat test/file
cat: test/file: No such file or directory
# zfs destroy zroot/tmp/test
# cat test/file
something
I'm not claiming this behaviour is abnormal, I'm just wondering how can I create a new dataset that keeps it's files, ... basically, what I want is work in an existing filesys and add new settings for that specific path.