Print this page
1693 persistent 'comment' field for a zpool

Split Close
Expand all
Collapse all
          --- old/usr/src/common/zfs/zpool_prop.c
          +++ new/usr/src/common/zfs/zpool_prop.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
       24 + * Copyright (c) 2011 by Delphix. All rights reserved.
  23   25   */
  24   26  
  25   27  #include <sys/zio.h>
  26   28  #include <sys/spa.h>
  27   29  #include <sys/zfs_acl.h>
  28   30  #include <sys/zfs_ioctl.h>
  29   31  #include <sys/fs/zfs.h>
  30   32  
  31   33  #include "zfs_prop.h"
  32   34  
↓ open down ↓ 29 lines elided ↑ open up ↑
  62   64                  { NULL }
  63   65          };
  64   66  
  65   67          /* string properties */
  66   68          zprop_register_string(ZPOOL_PROP_ALTROOT, "altroot", NULL, PROP_DEFAULT,
  67   69              ZFS_TYPE_POOL, "<path>", "ALTROOT");
  68   70          zprop_register_string(ZPOOL_PROP_BOOTFS, "bootfs", NULL, PROP_DEFAULT,
  69   71              ZFS_TYPE_POOL, "<filesystem>", "BOOTFS");
  70   72          zprop_register_string(ZPOOL_PROP_CACHEFILE, "cachefile", NULL,
  71   73              PROP_DEFAULT, ZFS_TYPE_POOL, "<file> | none", "CACHEFILE");
       74 +        zprop_register_string(ZPOOL_PROP_COMMENT, "comment", NULL,
       75 +            PROP_DEFAULT, ZFS_TYPE_POOL, "<comment-string>", "COMMENT");
  72   76  
  73   77          /* readonly number properties */
  74   78          zprop_register_number(ZPOOL_PROP_SIZE, "size", 0, PROP_READONLY,
  75   79              ZFS_TYPE_POOL, "<size>", "SIZE");
  76   80          zprop_register_number(ZPOOL_PROP_FREE, "free", 0, PROP_READONLY,
  77   81              ZFS_TYPE_POOL, "<size>", "FREE");
  78   82          zprop_register_number(ZPOOL_PROP_ALLOCATED, "allocated", 0,
  79   83              PROP_READONLY, ZFS_TYPE_POOL, "<size>", "ALLOC");
  80   84          zprop_register_number(ZPOOL_PROP_CAPACITY, "capacity", 0, PROP_READONLY,
  81   85              ZFS_TYPE_POOL, "<size>", "CAP");
↓ open down ↓ 121 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX