diff options
| author | Tom Erickson <Tom.Erickson@Sun.COM> | 2009-11-17 11:03:15 -0800 |
|---|---|---|
| committer | Tom Erickson <Tom.Erickson@Sun.COM> | 2009-11-17 11:03:15 -0800 |
| commit | 31f572c226019e62b274ff14c94d5a53f5d79ee8 (patch) | |
| tree | 36a9e8e9a254b5e3b8e670770279bb3d6a3fc4af /usr/src | |
| parent | 9e0b7c70f4e1d65d875a8606e4c31052555392f3 (diff) | |
| download | illumos-gate-31f572c226019e62b274ff14c94d5a53f5d79ee8.tar.gz | |
6900484 default volblocksize is no longer being reported correctly
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/lib/libzfs/common/libzfs_dataset.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/lib/libzfs/common/libzfs_dataset.c b/usr/src/lib/libzfs/common/libzfs_dataset.c index 9fd78dad82..c1aed20b05 100644 --- a/usr/src/lib/libzfs/common/libzfs_dataset.c +++ b/usr/src/lib/libzfs/common/libzfs_dataset.c @@ -1751,11 +1751,11 @@ get_numeric_property(zfs_handle_t *zhp, zfs_prop_t prop, zprop_source_t *src, /* * If we tried to use a default value for a * readonly property, it means that it was not - * present; return an error. + * present. */ if (zfs_prop_readonly(prop) && - *source && (*source)[0] == '\0') { - return (-1); + *source != NULL && (*source)[0] == '\0') { + *source = NULL; } break; |
