aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/zfs_vnops.c
diff options
context:
space:
mode:
authorTim Chase <[email protected]>2015-04-18 23:57:36 -0400
committerBrian Behlendorf <[email protected]>2015-04-24 11:08:37 -0700
commit59199d90832a7e99ff73f8e75e33d74e12ddcf93 (patch)
tree8956fa72af966a65049d97664bc734aec3514e65 /module/zfs/zfs_vnops.c
parenta438ff0e85c36c2e31873b3a46d85e5e3593fab9 (diff)
Support the "version" property on volumes via the zfs_prop_get_int() API
As of this commit, volumes do not possess the version property in any existing OpenZFS implementation. The zpool upgrade code, however, uses zfs_prop_get_int() to fetch the version property of all children in a pool. The semantics of the function, however, demand that it only be used for known valid properties so it returns a garbage value for volumes. This patch causes the version of a volume to appear to callers using the zfs_prop_get_int() API to be that of the default ZPL version for the implementation. In the future, should volumes gain the property, its actual value will be used. Signed-off-by: Tim Chase <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Fixes #3313
Diffstat (limited to 'module/zfs/zfs_vnops.c')
0 files changed, 0 insertions, 0 deletions