zfs/lib
Tim Chase 59199d9083 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
2015-04-24 11:08:37 -07:00
..
libavl Remove autotools products 2012-08-27 11:47:44 -07:00
libefi Use (void) memcpy(), not (void *) memcpy() 2015-01-30 09:43:04 -08:00
libnvpair Illumos #2619 and #2747 2013-01-08 10:35:35 -08:00
libshare Remove unconditional sharetab update 2014-01-07 09:48:09 -08:00
libspl Swap DTRACE_PROBE* with Linux tracepoints 2014-11-17 11:13:55 -08:00
libunicode Remove autotools products 2012-08-27 11:47:44 -07:00
libuutil Remove autotools products 2012-08-27 11:47:44 -07:00
libzfs Support the "version" property on volumes via the zfs_prop_get_int() API 2015-04-24 11:08:37 -07:00
libzfs_core Illumos 4757, 4913 2014-08-01 14:28:05 -07:00
libzpool Change VERIFY to ASSERT in mutex_destroy() 2015-02-11 13:58:40 -08:00
Makefile.am Illumos #2882, #2883, #2900 2013-09-04 15:49:00 -07:00