345 PROP_READONLY,
346 ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME, "<size>", "USEDREFRESERV");
347 zprop_register_number(ZFS_PROP_USERREFS, "userrefs", 0, PROP_READONLY,
348 ZFS_TYPE_SNAPSHOT, "<count>", "USERREFS");
349 zprop_register_number(ZFS_PROP_WRITTEN, "written", 0, PROP_READONLY,
350 ZFS_TYPE_DATASET, "<size>", "WRITTEN");
351
352 /* default number properties */
353 zprop_register_number(ZFS_PROP_QUOTA, "quota", 0, PROP_DEFAULT,
354 ZFS_TYPE_FILESYSTEM, "<size> | none", "QUOTA");
355 zprop_register_number(ZFS_PROP_RESERVATION, "reservation", 0,
356 PROP_DEFAULT, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME,
357 "<size> | none", "RESERV");
358 zprop_register_number(ZFS_PROP_VOLSIZE, "volsize", 0, PROP_DEFAULT,
359 ZFS_TYPE_VOLUME, "<size>", "VOLSIZE");
360 zprop_register_number(ZFS_PROP_REFQUOTA, "refquota", 0, PROP_DEFAULT,
361 ZFS_TYPE_FILESYSTEM, "<size> | none", "REFQUOTA");
362 zprop_register_number(ZFS_PROP_REFRESERVATION, "refreservation", 0,
363 PROP_DEFAULT, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME,
364 "<size> | none", "REFRESERV");
365
366 /* inherit number properties */
367 zprop_register_number(ZFS_PROP_RECORDSIZE, "recordsize",
368 SPA_MAXBLOCKSIZE, PROP_INHERIT,
369 ZFS_TYPE_FILESYSTEM, "512 to 128k, power of 2", "RECSIZE");
370
371 /* hidden properties */
372 zprop_register_hidden(ZFS_PROP_CREATETXG, "createtxg", PROP_TYPE_NUMBER,
373 PROP_READONLY, ZFS_TYPE_DATASET, "CREATETXG");
374 zprop_register_hidden(ZFS_PROP_NUMCLONES, "numclones", PROP_TYPE_NUMBER,
375 PROP_READONLY, ZFS_TYPE_SNAPSHOT, "NUMCLONES");
376 zprop_register_hidden(ZFS_PROP_NAME, "name", PROP_TYPE_STRING,
377 PROP_READONLY, ZFS_TYPE_DATASET, "NAME");
378 zprop_register_hidden(ZFS_PROP_ISCSIOPTIONS, "iscsioptions",
379 PROP_TYPE_STRING, PROP_INHERIT, ZFS_TYPE_VOLUME, "ISCSIOPTIONS");
380 zprop_register_hidden(ZFS_PROP_STMF_SHAREINFO, "stmf_sbd_lu",
381 PROP_TYPE_STRING, PROP_INHERIT, ZFS_TYPE_VOLUME,
382 "STMF_SBD_LU");
383 zprop_register_hidden(ZFS_PROP_GUID, "guid", PROP_TYPE_NUMBER,
384 PROP_READONLY, ZFS_TYPE_DATASET, "GUID");
|
345 PROP_READONLY,
346 ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME, "<size>", "USEDREFRESERV");
347 zprop_register_number(ZFS_PROP_USERREFS, "userrefs", 0, PROP_READONLY,
348 ZFS_TYPE_SNAPSHOT, "<count>", "USERREFS");
349 zprop_register_number(ZFS_PROP_WRITTEN, "written", 0, PROP_READONLY,
350 ZFS_TYPE_DATASET, "<size>", "WRITTEN");
351
352 /* default number properties */
353 zprop_register_number(ZFS_PROP_QUOTA, "quota", 0, PROP_DEFAULT,
354 ZFS_TYPE_FILESYSTEM, "<size> | none", "QUOTA");
355 zprop_register_number(ZFS_PROP_RESERVATION, "reservation", 0,
356 PROP_DEFAULT, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME,
357 "<size> | none", "RESERV");
358 zprop_register_number(ZFS_PROP_VOLSIZE, "volsize", 0, PROP_DEFAULT,
359 ZFS_TYPE_VOLUME, "<size>", "VOLSIZE");
360 zprop_register_number(ZFS_PROP_REFQUOTA, "refquota", 0, PROP_DEFAULT,
361 ZFS_TYPE_FILESYSTEM, "<size> | none", "REFQUOTA");
362 zprop_register_number(ZFS_PROP_REFRESERVATION, "refreservation", 0,
363 PROP_DEFAULT, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME,
364 "<size> | none", "REFRESERV");
365 zprop_register_number(ZFS_PROP_FILESYSTEM_LIMIT, "filesystem_limit",
366 MAXLIMIT, PROP_DEFAULT, ZFS_TYPE_FILESYSTEM,
367 "<count> | none", "FSLIMIT");
368 zprop_register_number(ZFS_PROP_SNAPSHOT_LIMIT, "snapshot_limit",
369 MAXLIMIT, PROP_DEFAULT, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME,
370 "<count> | none", "SSLIMIT");
371
372 /* inherit number properties */
373 zprop_register_number(ZFS_PROP_RECORDSIZE, "recordsize",
374 SPA_MAXBLOCKSIZE, PROP_INHERIT,
375 ZFS_TYPE_FILESYSTEM, "512 to 128k, power of 2", "RECSIZE");
376
377 /* hidden properties */
378 zprop_register_hidden(ZFS_PROP_CREATETXG, "createtxg", PROP_TYPE_NUMBER,
379 PROP_READONLY, ZFS_TYPE_DATASET, "CREATETXG");
380 zprop_register_hidden(ZFS_PROP_NUMCLONES, "numclones", PROP_TYPE_NUMBER,
381 PROP_READONLY, ZFS_TYPE_SNAPSHOT, "NUMCLONES");
382 zprop_register_hidden(ZFS_PROP_NAME, "name", PROP_TYPE_STRING,
383 PROP_READONLY, ZFS_TYPE_DATASET, "NAME");
384 zprop_register_hidden(ZFS_PROP_ISCSIOPTIONS, "iscsioptions",
385 PROP_TYPE_STRING, PROP_INHERIT, ZFS_TYPE_VOLUME, "ISCSIOPTIONS");
386 zprop_register_hidden(ZFS_PROP_STMF_SHAREINFO, "stmf_sbd_lu",
387 PROP_TYPE_STRING, PROP_INHERIT, ZFS_TYPE_VOLUME,
388 "STMF_SBD_LU");
389 zprop_register_hidden(ZFS_PROP_GUID, "guid", PROP_TYPE_NUMBER,
390 PROP_READONLY, ZFS_TYPE_DATASET, "GUID");
|