Print this page
OS-1566 filesystem limits for ZFS datasets

Split Close
Expand all
Collapse all
          --- old/usr/src/common/zfs/zfs_prop.c
          +++ new/usr/src/common/zfs/zfs_prop.c
↓ open down ↓ 354 lines elided ↑ open up ↑
 355  355          zprop_register_number(ZFS_PROP_RESERVATION, "reservation", 0,
 356  356              PROP_DEFAULT, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME,
 357  357              "<size> | none", "RESERV");
 358  358          zprop_register_number(ZFS_PROP_VOLSIZE, "volsize", 0, PROP_DEFAULT,
 359  359              ZFS_TYPE_VOLUME, "<size>", "VOLSIZE");
 360  360          zprop_register_number(ZFS_PROP_REFQUOTA, "refquota", 0, PROP_DEFAULT,
 361  361              ZFS_TYPE_FILESYSTEM, "<size> | none", "REFQUOTA");
 362  362          zprop_register_number(ZFS_PROP_REFRESERVATION, "refreservation", 0,
 363  363              PROP_DEFAULT, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME,
 364  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");
 365  371  
 366  372          /* inherit number properties */
 367  373          zprop_register_number(ZFS_PROP_RECORDSIZE, "recordsize",
 368  374              SPA_MAXBLOCKSIZE, PROP_INHERIT,
 369  375              ZFS_TYPE_FILESYSTEM, "512 to 128k, power of 2", "RECSIZE");
 370  376  
 371  377          /* hidden properties */
 372  378          zprop_register_hidden(ZFS_PROP_CREATETXG, "createtxg", PROP_TYPE_NUMBER,
 373  379              PROP_READONLY, ZFS_TYPE_DATASET, "CREATETXG");
 374  380          zprop_register_hidden(ZFS_PROP_NUMCLONES, "numclones", PROP_TYPE_NUMBER,
↓ open down ↓ 263 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX