“zfs get all”返回附加了“%”(百分号)的文件系统的属性

Mag*_*ron 5 zfs solaris-11

在使用 zfs 时,我看到某些现有文件系统的“zfs get all”会列出在文件系统名称中添加“%”(百分号)的属性。像这样:

# zfs list
...
test_zpool2/test_vol_91   564M  19.4G   564M  /vol/test_zpool2/test_vol_91

# zfs get all
...
test_zpool2/test_vol_91   version     6                             -
test_zpool2/test_vol_91   vscan       off                           default
test_zpool2/test_vol_91   xattr       on                            default
test_zpool2/test_vol_91   zoned       off                           default
...
test_zpool2/test_vol_91%  creation    Wed Nov 19 17:01 2014         -
test_zpool2/test_vol_91%  mountpoint  /vol/test_zpool2/test_vol_91  -
test_zpool2/test_vol_91%  share.*     ...                           inherited
test_zpool2/test_vol_91%  zoned       off                           default
Run Code Online (Sandbox Code Playgroud)

我一直无法找出这是什么原因,手册页中没有提到任何内容。有人知道吗?

更多输出

# zfs list -H
rpool                           11.7G   7.60G   4.64M   /rpool
rpool/ROOT                      9.10G   7.60G   31K     legacy
rpool/ROOT/solaris              9.10G   7.60G   7.50G   /
rpool/ROOT/solaris/var          1.18G   7.60G   982M    /var
rpool/VARSHARE                  33.0M   7.60G   32.9M   /var/share
rpool/VARSHARE/pkg              63K     7.60G   32K     /var/share/pkg
rpool/VARSHARE/pkg/repositories 31K     7.60G   31K     /var/share/pkg/repositories
rpool/VARSHARE/zones            31K     7.60G   31K     /system/zones
rpool/dump                      1.55G   7.65G   1.50G   -
rpool/export                    63K     7.60G   32K     /export
rpool/export/home               31K     7.60G   31K     /export/home
rpool/swap                      1.03G   7.63G   1.00G   -
test_zpool2                     776M    48.2G   42K     /vol/test_zpool2
test_zpool2/test_vol_91         564M    19.4G   564M    /vol/test_zpool2/test_vol_91
test_zpool2/test_vol_92         78.2M   19.9G   78.2M   /vol/test_zpool2/test_vol_92
test_zpool2/test_vol_990        31K     128M    31K    /vol/test_zpool2/test_vol_990
test_zpool2/test_vol_9999       132M    48.3G   16K     -
Run Code Online (Sandbox Code Playgroud)

# zfs list -t all=> http://pastebin.com/U48njPMX

# zfs get all=> http://pastebin.com/LM1fzX71

And*_*nle 5

其中包含%字符的文件系统是某种共享。您可以使用以下命令查看所有共享文件系统的共享属性zfs get share.all

这在zfs_share手册页中有记录:“文件系统的自动共享名称显示为 filesystem%。例如,tank/home%。”

这种记录事物的风格是 Sun/Solaris 的典型特征。某事将被提及一次,埋在某个不起眼的地方。好消息是文档永远不会自相矛盾,而且根据我的经验,它始终是正确的。这种文档风格的坏处是找到你要找的东西。