changeset 11080:368ac1f03f55

6900484 default volblocksize is no longer being reported correctly
author Tom Erickson <Tom.Erickson@Sun.COM>
date Tue, 17 Nov 2009 11:03:15 -0800
parents 81e8def314f5
children 5c9c847827a4
files usr/src/lib/libzfs/common/libzfs_dataset.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/libzfs/common/libzfs_dataset.c	Tue Nov 17 15:00:48 2009 -0500
+++ b/usr/src/lib/libzfs/common/libzfs_dataset.c	Tue Nov 17 11:03:15 2009 -0800
@@ -1751,11 +1751,11 @@
 			/*
 			 * 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;