Print this page
OS-1566 dataset quota for ZFS datasets

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libzfs/common/libzfs_dataset.c
          +++ new/usr/src/lib/libzfs/common/libzfs_dataset.c
↓ open down ↓ 2185 lines elided ↑ open up ↑
2186 2186  
2187 2187          case ZFS_PROP_CLONES:
2188 2188                  if (get_clones_string(zhp, propbuf, proplen) != 0)
2189 2189                          return (-1);
2190 2190                  break;
2191 2191  
2192 2192          case ZFS_PROP_QUOTA:
2193 2193          case ZFS_PROP_REFQUOTA:
2194 2194          case ZFS_PROP_RESERVATION:
2195 2195          case ZFS_PROP_REFRESERVATION:
     2196 +        case ZFS_PROP_DATASET_QUOTA:
     2197 +        case ZFS_PROP_SNAPSHOT_QUOTA:
2196 2198  
2197 2199                  if (get_numeric_property(zhp, prop, src, &source, &val) != 0)
2198 2200                          return (-1);
2199 2201  
2200 2202                  /*
2201 2203                   * If quota or reservation is 0, we translate this into 'none'
2202 2204                   * (unless literal is set), and indicate that it's the default
2203 2205                   * value.  Otherwise, we print the number nicely and indicate
2204 2206                   * that its set locally.
2205 2207                   */
↓ open down ↓ 2201 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX