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


 412 
 413         /* inherit number properties */
 414         zprop_register_number(ZFS_PROP_RECORDSIZE, "recordsize",
 415             SPA_OLD_MAXBLOCKSIZE, PROP_INHERIT,
 416             ZFS_TYPE_FILESYSTEM, "512 to 1M, power of 2", "RECSIZE");
 417 
 418         /* hidden properties */
 419         zprop_register_hidden(ZFS_PROP_CREATETXG, "createtxg", PROP_TYPE_NUMBER,
 420             PROP_READONLY, ZFS_TYPE_DATASET | ZFS_TYPE_BOOKMARK, "CREATETXG");
 421         zprop_register_hidden(ZFS_PROP_NUMCLONES, "numclones", PROP_TYPE_NUMBER,
 422             PROP_READONLY, ZFS_TYPE_SNAPSHOT, "NUMCLONES");
 423         zprop_register_hidden(ZFS_PROP_NAME, "name", PROP_TYPE_STRING,
 424             PROP_READONLY, ZFS_TYPE_DATASET | ZFS_TYPE_BOOKMARK, "NAME");
 425         zprop_register_hidden(ZFS_PROP_ISCSIOPTIONS, "iscsioptions",
 426             PROP_TYPE_STRING, PROP_INHERIT, ZFS_TYPE_VOLUME, "ISCSIOPTIONS");
 427         zprop_register_hidden(ZFS_PROP_STMF_SHAREINFO, "stmf_sbd_lu",
 428             PROP_TYPE_STRING, PROP_INHERIT, ZFS_TYPE_VOLUME,
 429             "STMF_SBD_LU");
 430         zprop_register_hidden(ZFS_PROP_GUID, "guid", PROP_TYPE_NUMBER,
 431             PROP_READONLY, ZFS_TYPE_DATASET | ZFS_TYPE_BOOKMARK, "GUID");


 432         zprop_register_hidden(ZFS_PROP_USERACCOUNTING, "useraccounting",
 433             PROP_TYPE_NUMBER, PROP_READONLY, ZFS_TYPE_DATASET,
 434             "USERACCOUNTING");
 435         zprop_register_hidden(ZFS_PROP_UNIQUE, "unique", PROP_TYPE_NUMBER,
 436             PROP_READONLY, ZFS_TYPE_DATASET, "UNIQUE");
 437         zprop_register_hidden(ZFS_PROP_OBJSETID, "objsetid", PROP_TYPE_NUMBER,
 438             PROP_READONLY, ZFS_TYPE_DATASET, "OBJSETID");
 439         zprop_register_hidden(ZFS_PROP_INCONSISTENT, "inconsistent",
 440             PROP_TYPE_NUMBER, PROP_READONLY, ZFS_TYPE_DATASET, "INCONSISTENT");
 441         zprop_register_hidden(ZFS_PROP_PREV_SNAP, "prevsnap", PROP_TYPE_STRING,
 442             PROP_READONLY, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME, "PREVSNAP");
 443 
 444         /* oddball properties */
 445         zprop_register_impl(ZFS_PROP_CREATION, "creation", PROP_TYPE_NUMBER, 0,
 446             NULL, PROP_READONLY, ZFS_TYPE_DATASET | ZFS_TYPE_BOOKMARK,
 447             "<date>", "CREATION", B_FALSE, B_TRUE, NULL);
 448 }
 449 
 450 boolean_t
 451 zfs_prop_delegatable(zfs_prop_t prop)




 412 
 413         /* inherit number properties */
 414         zprop_register_number(ZFS_PROP_RECORDSIZE, "recordsize",
 415             SPA_OLD_MAXBLOCKSIZE, PROP_INHERIT,
 416             ZFS_TYPE_FILESYSTEM, "512 to 1M, power of 2", "RECSIZE");
 417 
 418         /* hidden properties */
 419         zprop_register_hidden(ZFS_PROP_CREATETXG, "createtxg", PROP_TYPE_NUMBER,
 420             PROP_READONLY, ZFS_TYPE_DATASET | ZFS_TYPE_BOOKMARK, "CREATETXG");
 421         zprop_register_hidden(ZFS_PROP_NUMCLONES, "numclones", PROP_TYPE_NUMBER,
 422             PROP_READONLY, ZFS_TYPE_SNAPSHOT, "NUMCLONES");
 423         zprop_register_hidden(ZFS_PROP_NAME, "name", PROP_TYPE_STRING,
 424             PROP_READONLY, ZFS_TYPE_DATASET | ZFS_TYPE_BOOKMARK, "NAME");
 425         zprop_register_hidden(ZFS_PROP_ISCSIOPTIONS, "iscsioptions",
 426             PROP_TYPE_STRING, PROP_INHERIT, ZFS_TYPE_VOLUME, "ISCSIOPTIONS");
 427         zprop_register_hidden(ZFS_PROP_STMF_SHAREINFO, "stmf_sbd_lu",
 428             PROP_TYPE_STRING, PROP_INHERIT, ZFS_TYPE_VOLUME,
 429             "STMF_SBD_LU");
 430         zprop_register_hidden(ZFS_PROP_GUID, "guid", PROP_TYPE_NUMBER,
 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");
 434         zprop_register_hidden(ZFS_PROP_USERACCOUNTING, "useraccounting",
 435             PROP_TYPE_NUMBER, PROP_READONLY, ZFS_TYPE_DATASET,
 436             "USERACCOUNTING");
 437         zprop_register_hidden(ZFS_PROP_UNIQUE, "unique", PROP_TYPE_NUMBER,
 438             PROP_READONLY, ZFS_TYPE_DATASET, "UNIQUE");
 439         zprop_register_hidden(ZFS_PROP_OBJSETID, "objsetid", PROP_TYPE_NUMBER,
 440             PROP_READONLY, ZFS_TYPE_DATASET, "OBJSETID");
 441         zprop_register_hidden(ZFS_PROP_INCONSISTENT, "inconsistent",
 442             PROP_TYPE_NUMBER, PROP_READONLY, ZFS_TYPE_DATASET, "INCONSISTENT");
 443         zprop_register_hidden(ZFS_PROP_PREV_SNAP, "prevsnap", PROP_TYPE_STRING,
 444             PROP_READONLY, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME, "PREVSNAP");
 445 
 446         /* oddball properties */
 447         zprop_register_impl(ZFS_PROP_CREATION, "creation", PROP_TYPE_NUMBER, 0,
 448             NULL, PROP_READONLY, ZFS_TYPE_DATASET | ZFS_TYPE_BOOKMARK,
 449             "<date>", "CREATION", B_FALSE, B_TRUE, NULL);
 450 }
 451 
 452 boolean_t
 453 zfs_prop_delegatable(zfs_prop_t prop)