Mercurial > illumos > illumos-gate
changeset 6690:19b5b95523e1
6695219 Running 'zfs get all' on a snapshot should not display the user properties
author | gw25295 |
---|---|
date | Thu, 22 May 2008 12:51:35 -0700 |
parents | 47572a2f5e73 |
children | f8848c7acc9e |
files | usr/src/common/zfs/zfs_prop.c usr/src/common/zfs/zfs_prop.h usr/src/uts/common/sys/fs/zfs.h |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/common/zfs/zfs_prop.c Thu May 22 11:13:47 2008 -0700 +++ b/usr/src/common/zfs/zfs_prop.c Thu May 22 12:51:35 2008 -0700 @@ -363,7 +363,7 @@ /* * Returns TRUE if the property applies to any of the given dataset types. */ -int +boolean_t zfs_prop_valid_for_type(int prop, zfs_type_t types) { return (zprop_valid_for_type(prop, types));
--- a/usr/src/common/zfs/zfs_prop.h Thu May 22 11:13:47 2008 -0700 +++ b/usr/src/common/zfs/zfs_prop.h Thu May 22 12:51:35 2008 -0700 @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -120,7 +120,7 @@ int zprop_index_to_string(int, uint64_t, const char **, zfs_type_t); const char *zprop_values(int, zfs_type_t); size_t zprop_width(int, boolean_t *, zfs_type_t); -int zprop_valid_for_type(int, zfs_type_t); +boolean_t zprop_valid_for_type(int, zfs_type_t); #ifdef __cplusplus }
--- a/usr/src/uts/common/sys/fs/zfs.h Thu May 22 11:13:47 2008 -0700 +++ b/usr/src/uts/common/sys/fs/zfs.h Thu May 22 12:51:35 2008 -0700 @@ -159,7 +159,7 @@ boolean_t zfs_prop_user(const char *); int zfs_prop_index_to_string(zfs_prop_t, uint64_t, const char **); int zfs_prop_string_to_index(zfs_prop_t, const char *, uint64_t *); -int zfs_prop_valid_for_type(int, zfs_type_t); +boolean_t zfs_prop_valid_for_type(int, zfs_type_t); /* * Pool property functions shared between libzfs and kernel.