Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-7209

Add validation to the ZFS type

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Platform OS

      Description

      As reported by a commercial customer, [the maximum length of ZFS user properties is 1024 characters][zfs-admin-guide]. Additionally, as noted in [our documentation for the ZFS type][puppet-zfs], several user properties are restricted to a certain set of valid values. I.E:

      • checksum: The checksum property. Valid values are on, off, fletcher2, fletcher4, sha256.
      • recordsize: The recordsize property. Valid values are powers of two between 512 and 128k.

      However, the ZFS type does not contain a single validation check that actually enforces these restrictions.

      For bonus Solaris 11 points, [the shareiscsi parameter is no longer valid][shareiscsi-depreciation] after Solaris 10.

      [zfs-admin-guide]: http://docs.oracle.com/cd/E19253-01/819-5461/gdrcw/index.html
      [puppet-zfs]: http://docs.puppetlabs.com/references/3.2.latest/type.html#zfs
      [shareiscsi-depreciation]: http://docs.oracle.com/cd/E19963-01/html/821-1448/gbscy.html#gkalt

        Attachments

          Activity

            People

            Assignee:
            eric.sorenson Eric Sorenson
            Reporter:
            chuck Charlie Sharpsteen
            QA Contact:
            Eric Thompson
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 days
                  4d
                  Remaining:
                  Remaining Estimate - 4 days
                  4d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified