Print this page
cstyle fixes
dsl_dataset_set_fsid_guid should use ZFS_SPACE_CHECK_RESERVED
dsl_dataset_set_fsid_guid _check and _sync func declared static,
removed from dsl_dataset.h
rewrite unique_valid
6333 ZFS should let the user specify or modify the fsid_guid of a dataset

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 ↓ 2396 lines elided ↑ open up ↑
2397 2397                  VERIFY(nvlist_lookup_nvpair(attrs, ZPROP_VALUE,
2398 2398                      &pair) == 0);
2399 2399          }
2400 2400  
2401 2401          if (zfs_prop_get_type(prop) == PROP_TYPE_STRING)
2402 2402                  return (-1);
2403 2403  
2404 2404          VERIFY(0 == nvpair_value_uint64(pair, &intval));
2405 2405  
2406 2406          switch (prop) {
     2407 +        case ZFS_PROP_FSID_GUID:
     2408 +                err = dsl_dataset_set_fsid_guid(dsname, source, intval);
     2409 +                break;
2407 2410          case ZFS_PROP_QUOTA:
2408 2411                  err = dsl_dir_set_quota(dsname, source, intval);
2409 2412                  break;
2410 2413          case ZFS_PROP_REFQUOTA:
2411 2414                  err = dsl_dataset_set_refquota(dsname, source, intval);
2412 2415                  break;
2413 2416          case ZFS_PROP_FILESYSTEM_LIMIT:
2414 2417          case ZFS_PROP_SNAPSHOT_LIMIT:
2415 2418                  if (intval == UINT64_MAX) {
2416 2419                          /* clearing the limit, just do it */
↓ open down ↓ 3791 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX