删除 ZFS 属性而不是将其值设置为默认值?

删除 ZFS 属性而不是将其值设置为默认值?

我添加了一个默认情况下不包含的 ZFS 属性。除了将其重新设置为 true(默认值)之外,有没有办法“删除”我创建的属性?

root@library:~# zfs get all | grep false
library/secure   com.sun:auto-snapshot       true    local

答案1

root@library:~# zfs get all | grep "com.sun:auto-snapshot "
library/secure      com.sun:auto-snapshot       false    local com.sun:auto-snapshot       false                            local

root@library:~# zfs inherit com.sun:auto-snapshot library/secure
root@library:~# zfs get all | grep "com.sun:auto-snapshot "
root@library:~#

相关内容