diff options
| author | Matthew Ahrens <mahrens@delphix.com> | 2014-05-23 08:21:07 -0800 |
|---|---|---|
| committer | Christopher Siden <chris@delphix.com> | 2014-05-23 09:21:07 -0700 |
| commit | edf345e6b8342e8627ec20ce821a977a62cee19d (patch) | |
| tree | c0c6d24ee56f53c87d1fb7747f73e5a87f93d044 /usr/src/common/zfs/zfs_prop.c | |
| parent | e56bd28502ece54c39ad86fd96643790902bb93e (diff) | |
| download | illumos-joyent-edf345e6b8342e8627ec20ce821a977a62cee19d.tar.gz | |
3835 zfs need not store 2 copies of all metadata
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/common/zfs/zfs_prop.c')
| -rw-r--r-- | usr/src/common/zfs/zfs_prop.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/usr/src/common/zfs/zfs_prop.c b/usr/src/common/zfs/zfs_prop.c index ea090ee528..7c12d6f3f4 100644 --- a/usr/src/common/zfs/zfs_prop.c +++ b/usr/src/common/zfs/zfs_prop.c @@ -20,7 +20,7 @@ */ /* * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright (c) 2013 by Delphix. All rights reserved. + * Copyright (c) 2011, 2014 by Delphix. All rights reserved. * Copyright (c) 2013 by Saso Kiselkov. All rights reserved. * Copyright (c) 2013, Joyent, Inc. All rights reserved. */ @@ -198,7 +198,18 @@ zfs_prop_init(void) { NULL } }; + static zprop_index_t redundant_metadata_table[] = { + { "all", ZFS_REDUNDANT_METADATA_ALL }, + { "most", ZFS_REDUNDANT_METADATA_MOST }, + { NULL } + }; + /* inherit index properties */ + zprop_register_index(ZFS_PROP_REDUNDANT_METADATA, "redundant_metadata", + ZFS_REDUNDANT_METADATA_ALL, + PROP_INHERIT, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME, + "all | most", "REDUND_MD", + redundant_metadata_table); zprop_register_index(ZFS_PROP_SYNC, "sync", ZFS_SYNC_STANDARD, PROP_INHERIT, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME, "standard | always | disabled", "SYNC", |
