Print this page
Code review fixes

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/zfs_ioctl.c
          +++ new/usr/src/uts/common/fs/zfs/zfs_ioctl.c
↓ open down ↓ 4096 lines elided ↑ open up ↑
4097 4097   * to the current dataset.  The caller (libzfs) will manage these properties
4098 4098   * somewhat as well to make sure they only come down with the last dataset in
4099 4099   * a replication stream, but we still need to be safe about it here in
4100 4100   * kernel-land.
4101 4101   */
4102 4102  static nvlist_t *
4103 4103  extract_delay_props(nvlist_t *props)
4104 4104  {
4105 4105          nvlist_t *delayprops;
4106 4106          nvpair_t *nvp, *tmp;
4107      -        static const zfs_prop_t delayable[] =
4108      -            { ZFS_PROP_REFQUOTA, ZFS_PROP_REFRESERVATION, 0 };
     4107 +        static const zfs_prop_t delayable[] = { ZFS_PROP_REFQUOTA, 0 };
4109 4108          boolean_t dontbother = B_TRUE;
4110 4109          int i;
4111 4110  
4112 4111          VERIFY(nvlist_alloc(&delayprops, NV_UNIQUE_NAME, KM_SLEEP) == 0);
4113 4112  
4114 4113          for (nvp = nvlist_next_nvpair(props, NULL); nvp != NULL;
4115 4114              nvp = nvlist_next_nvpair(props, nvp)) {
4116 4115                  /*
4117 4116                   * strcmp() is safe because zfs_prop_to_name() always returns
4118 4117                   * a bounded string.
↓ open down ↓ 2153 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX