]> granicus.if.org Git - zfs/commit
Support the "version" property on volumes via the zfs_prop_get_int() API
authorTim Chase <tim@chase2k.com>
Sun, 19 Apr 2015 03:57:36 +0000 (23:57 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 24 Apr 2015 18:08:37 +0000 (11:08 -0700)
commit59199d90832a7e99ff73f8e75e33d74e12ddcf93
tree8956fa72af966a65049d97664bc734aec3514e65
parenta438ff0e85c36c2e31873b3a46d85e5e3593fab9
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 <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Fixes #3313
lib/libzfs/libzfs_dataset.c