From bf7c2d400a7b538aed6f356c7107284378a19fa8 Mon Sep 17 00:00:00 2001 From: rm160521 Date: Thu, 18 Jan 2007 13:37:54 -0800 Subject: 6494654 zfs inherit can't handle property short names --- usr/src/lib/libzfs/common/libzfs_dataset.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr/src') diff --git a/usr/src/lib/libzfs/common/libzfs_dataset.c b/usr/src/lib/libzfs/common/libzfs_dataset.c index 83e122452e..6d3330d0d5 100644 --- a/usr/src/lib/libzfs/common/libzfs_dataset.c +++ b/usr/src/lib/libzfs/common/libzfs_dataset.c @@ -1190,6 +1190,10 @@ zfs_prop_inherit(zfs_handle_t *zhp, const char *propname) if (!zfs_prop_valid_for_type(prop, zhp->zfs_type)) return (zfs_error(hdl, EZFS_PROPTYPE, errbuf)); + /* + * Normalize the name, to get rid of shorthand abbrevations. + */ + propname = zfs_prop_to_name(prop); (void) strlcpy(zc.zc_name, zhp->zfs_name, sizeof (zc.zc_name)); (void) strlcpy(zc.zc_value, propname, sizeof (zc.zc_value)); -- cgit v1.2.3