Print this page
2882 implement libzfs_core
2883 changing "canmount" property to "on" should not always remount dataset
2900 "zfs snapshot" should be able to create multiple, arbitrary snapshots at once
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Chris Siden <christopher.siden@delphix.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Bill Pijewski <wdp@joyent.com>
Reviewed by: Dan Kruchinin <dan.kruchinin@gmail.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/common/zfs/zprop_common.c
          +++ new/usr/src/common/zfs/zprop_common.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  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 2010 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
       25 +/*
       26 + * Copyright (c) 2012 by Delphix. All rights reserved.
       27 + */
  25   28  
  26   29  /*
  27   30   * Common routines used by zfs and zpool property management.
  28   31   */
  29   32  
  30   33  #include <sys/zio.h>
  31   34  #include <sys/spa.h>
  32   35  #include <sys/zfs_acl.h>
  33   36  #include <sys/zfs_ioctl.h>
  34   37  #include <sys/zfs_znode.h>
↓ open down ↓ 87 lines elided ↑ open up ↑
 122  125  {
 123  126          zprop_register_impl(prop, name, PROP_TYPE_INDEX, def, NULL, attr,
 124  127              objset_types, values, colname, B_TRUE, B_TRUE, idx_tbl);
 125  128  }
 126  129  
 127  130  void
 128  131  zprop_register_hidden(int prop, const char *name, zprop_type_t type,
 129  132      zprop_attr_t attr, int objset_types, const char *colname)
 130  133  {
 131  134          zprop_register_impl(prop, name, type, 0, NULL, attr,
 132      -            objset_types, NULL, colname, B_FALSE, B_FALSE, NULL);
      135 +            objset_types, NULL, colname,
      136 +            type == PROP_TYPE_NUMBER, B_FALSE, NULL);
 133  137  }
 134  138  
 135  139  
 136  140  /*
 137  141   * A comparison function we can use to order indexes into property tables.
 138  142   */
 139  143  static int
 140  144  zprop_compare(const void *arg1, const void *arg2)
 141  145  {
 142  146          const zprop_desc_t *p1 = *((zprop_desc_t **)arg1);
↓ open down ↓ 284 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX