Mercurial > illumos > illumos-gate
changeset 3443:e0e00ef6cee8
6494654 zfs inherit can't handle property short names
author | rm160521 |
---|---|
date | Thu, 18 Jan 2007 13:37:54 -0800 |
parents | 770844b0f91a |
children | dc160a70a50d |
files | usr/src/lib/libzfs/common/libzfs_dataset.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/lib/libzfs/common/libzfs_dataset.c Thu Jan 18 13:37:08 2007 -0800 +++ b/usr/src/lib/libzfs/common/libzfs_dataset.c Thu Jan 18 13:37:54 2007 -0800 @@ -1190,6 +1190,10 @@ 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));