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/common/zfs/zfs_prop.c
          +++ new/usr/src/common/zfs/zfs_prop.c
↓ open down ↓ 421 lines elided ↑ open up ↑
 422  422              PROP_READONLY, ZFS_TYPE_SNAPSHOT, "NUMCLONES");
 423  423          zprop_register_hidden(ZFS_PROP_NAME, "name", PROP_TYPE_STRING,
 424  424              PROP_READONLY, ZFS_TYPE_DATASET | ZFS_TYPE_BOOKMARK, "NAME");
 425  425          zprop_register_hidden(ZFS_PROP_ISCSIOPTIONS, "iscsioptions",
 426  426              PROP_TYPE_STRING, PROP_INHERIT, ZFS_TYPE_VOLUME, "ISCSIOPTIONS");
 427  427          zprop_register_hidden(ZFS_PROP_STMF_SHAREINFO, "stmf_sbd_lu",
 428  428              PROP_TYPE_STRING, PROP_INHERIT, ZFS_TYPE_VOLUME,
 429  429              "STMF_SBD_LU");
 430  430          zprop_register_hidden(ZFS_PROP_GUID, "guid", PROP_TYPE_NUMBER,
 431  431              PROP_READONLY, ZFS_TYPE_DATASET | ZFS_TYPE_BOOKMARK, "GUID");
      432 +        zprop_register_hidden(ZFS_PROP_FSID_GUID, "fsid_guid", PROP_TYPE_NUMBER,
      433 +            PROP_DEFAULT, ZFS_TYPE_DATASET, "FSIDGUID");
 432  434          zprop_register_hidden(ZFS_PROP_USERACCOUNTING, "useraccounting",
 433  435              PROP_TYPE_NUMBER, PROP_READONLY, ZFS_TYPE_DATASET,
 434  436              "USERACCOUNTING");
 435  437          zprop_register_hidden(ZFS_PROP_UNIQUE, "unique", PROP_TYPE_NUMBER,
 436  438              PROP_READONLY, ZFS_TYPE_DATASET, "UNIQUE");
 437  439          zprop_register_hidden(ZFS_PROP_OBJSETID, "objsetid", PROP_TYPE_NUMBER,
 438  440              PROP_READONLY, ZFS_TYPE_DATASET, "OBJSETID");
 439  441          zprop_register_hidden(ZFS_PROP_INCONSISTENT, "inconsistent",
 440  442              PROP_TYPE_NUMBER, PROP_READONLY, ZFS_TYPE_DATASET, "INCONSISTENT");
 441  443          zprop_register_hidden(ZFS_PROP_PREV_SNAP, "prevsnap", PROP_TYPE_STRING,
↓ open down ↓ 230 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX