Summary: | [patch] zfs(8) should not yet list edonr as supported hash algorithm | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Fabian Keil <fk> | ||||||
Component: | bin | Assignee: | Ed Maste <emaste> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Only Me | CC: | allanjude, emaste, vsasjason | ||||||
Priority: | --- | Keywords: | patch | ||||||
Version: | CURRENT | Flags: | emaste:
mfc-stable11?
emaste: mfc-stable10- emaste: mfc-stable9- |
||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
sha512 and skein are supported. edon-r is not. Created attachment 185880 [details]
zfs: Do not advertise edonr which isn't supported yet
skein and sha512 weren't supported in 2015 when the original patch was submitted.
The updated version only removes the edonr advertisement.
Spelling is hard, title corrected. A commit references this bug: Author: emaste Date: Tue Aug 29 22:24:22 UTC 2017 New revision: 323002 URL: https://svnweb.freebsd.org/changeset/base/323002 Log: zfs: do not advertise edonr which is not yet supported illumos 4185 ("add new cryptographic checksums to ZFS: SHA-512, Skein, Edon-R") was intentionally merged only partially in r289422, without adding support for skein, sha512 and edonr on FreeBSD. Support for skein and sha512 was added later on, but edonr is still not implemented in FreeBSD. Prior to this commit zfs(8) correctly rejected edonr, but with an error message that claimed support: fk@r500 ~ $zfs set checksum=edonr tank cannot set property for 'tank': 'checksum' must be one of 'on | off | fletcher2 | fletcher4 | sha256 | sha512 | skein | edonr' PR: 204055 Submitted by: Fabian Keil Approved by: allanjude Obtained from: ElectroBSD MFC after: 1 week Changes: head/sys/cddl/contrib/opensolaris/common/zfs/zfs_prop.c A commit references this bug: Author: emaste Date: Fri Sep 8 20:41:49 UTC 2017 New revision: 323331 URL: https://svnweb.freebsd.org/changeset/base/323331 Log: MFC r323002: zfs: do not advertise unsupported hash algorithms illumos 4185 ("add new cryptographic checksums to ZFS: SHA-512, Skein, Edon-R") was intentionally merged only partially in r289422, without adding support for skein, sha512 and edonr on FreeBSD. Support for skein and sha512 was added later on (in head), but none of these are supported in stable/10. Prior to this commit zfs(8) correctly rejected these algorithms, but with an error message that claimed support: fk@r500 ~ $zfs set checksum=edonr tank cannot set property for 'tank': 'checksum' must be one of 'on | off | fletcher2 | fletcher4 | sha256 | sha512 | skein | edonr' (This commit removes sha512 and skein in addition to edonr from the merge of head's r323002.) PR: 204055 Submitted by: Fabian Keil Approved by: re (kib) Obtained from: ElectroBSD Changes: _U stable/10/ stable/10/sys/cddl/contrib/opensolaris/common/zfs/zfs_prop.c batch change of PRs untouched in 2018 marked "in progress" back to open. mav merged to stable/11 in r329482 |
Created attachment 162496 [details] zfs(8): Do not advertise sha512, skein and edonr which aren't supported yet illumos 4185 (add new cryptographic checksums to ZFS: SHA-512, Skein, Edon-R) was intentionally merged only partially in r289422 and the algorithms actually are not yet supported on FreeBSD. zfs(8) correctly rejects them, the error message claims that they are supported, though: fk@r500 ~ $zfs set checksum=edonr tank cannot set property for 'tank': 'checksum' must be one of 'on | off | fletcher2 | fletcher4 | sha256 | sha512 | skein | edonr' The attached patch fixes this. Obtained from: ElectroBSD