Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'edonr' and 'skein' zpool features are not supported for root pools even though UEFI is a thing #6501

Closed
evujumenuk opened this issue Aug 12, 2017 · 5 comments
Labels
Type: Feature Feature request or new feature

Comments

@evujumenuk
Copy link

Exhibit A:

https://github.com/zfsonlinux/zfs/blob/376994828fd3753aba75d492859727ca76f6a293/module/zfs/zfs_ioctl.c#L3991-L4004

Exhibit B:

https://github.com/zfsonlinux/zfs/blob/376994828fd3753aba75d492859727ca76f6a293/lib/libzfs/libzfs_dataset.c#L1593-L1598

(3769948 is the current master.)

As for the rationale, @skiselkov stated the following in https://www.listbox.com/member/archive/post_content.html?post_id=20131007080502:B04DC60C-2F48-11E3-9198-9C9438B0F59B&address=000:

No, this is to cover the ERANGE return from zfs_ioctl.c:3784 where we
check to make sure nobody enables any salted checksums on a root pool,
since GRUB doesn't have support for that feature. Bootloader support on
FreeBSD might differ, though.

On UEFI systems, GRUB is not even used. Prohibiting the setting and use of specific flags is, in this configuration, rather unnecessary.

#6202 notes the same: disallowing zpool features is not warranted when GRUB is not used, which is a configuration that has worked for several years now.

@bunder2015
Copy link
Contributor

bunder2015 commented Aug 13, 2017

While EFI stub booting is a thing, most people who use EFI still use it to boot grub, which doesn't support several feature flags. illumos (to the best of my knowledge) doesn't support EFI either. I don't know the complete status of the grub they use. (I'm a doofus, they use freebsd btx now.) It might be possible their grub btx can't boot all-flag pools as well.

@sylveon
Copy link

sylveon commented Aug 13, 2017 via email

@bunder2015
Copy link
Contributor

Unfortunately the linux ecosystem is so diverse, I don't think we would find a solution that suits everybody's needs.

@sylveon
Copy link

sylveon commented Aug 13, 2017

What about the possibility to enable those features (and others) on bootfs pools with a clear warning about the possibility to break some bootloaders?

@bunder2015
Copy link
Contributor

Its probably doable, but I think a better idea would be to add it behind a -f option to zfs set so people don't arbitrarily change it by mistake. I'm not a dev and it would probably need to get approval across all the platforms before implementing. Sounds like something worthy of the mailing lists.

@gmelikov gmelikov added the Type: Feature Feature request or new feature label Feb 11, 2018
behlendorf pushed a commit to behlendorf/zfs that referenced this issue Jul 13, 2018
Porting notes:
* As of grub-2.02 these checksums are not supported.  However, as
  pointed out in openzfs#6501 there are alternates see the issue for
  addition discussion.

Authored by: Toomas Soome <tsoome@me.com>
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Yuri Pankov <yuripv@yuripv.net>
Approved by: Dan McDonald <danmcd@joyent.com>
Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>

OpenZFS-issue: https://illumos.org/issues/8906
OpenZFS-commit: openzfs/openzfs@7dec52f
Issue openzfs#6501
behlendorf pushed a commit to behlendorf/zfs that referenced this issue Jul 25, 2018
Porting notes:
* As of grub-2.02 these checksums are not supported.  However, as
  pointed out in openzfs#6501 there are alternatives such as EFISTUB which
  work and have no such restriction.  A warning was added to the
  checksum property section of the zfs.8 man page.

Authored by: Toomas Soome <tsoome@me.com>
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Yuri Pankov <yuripv@yuripv.net>
Approved by: Dan McDonald <danmcd@joyent.com>
Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>

OpenZFS-issue: https://illumos.org/issues/8906
OpenZFS-commit: openzfs/openzfs@7dec52f
Issue openzfs#6501
tonyhutter pushed a commit to tonyhutter/zfs that referenced this issue Aug 15, 2018
Porting notes:
* As of grub-2.02 these checksums are not supported.  However, as
  pointed out in openzfs#6501 there are alternatives such as EFISTUB which
  work and have no such restriction.  A warning was added to the
  checksum property section of the zfs.8 man page.

Authored by: Toomas Soome <tsoome@me.com>
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Yuri Pankov <yuripv@yuripv.net>
Approved by: Dan McDonald <danmcd@joyent.com>
Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>

OpenZFS-issue: https://illumos.org/issues/8906
OpenZFS-commit: openzfs/openzfs@7dec52f
Closes openzfs#6501
Closes openzfs#7714
tonyhutter pushed a commit to tonyhutter/zfs that referenced this issue Aug 23, 2018
Porting notes:
* As of grub-2.02 these checksums are not supported.  However, as
  pointed out in openzfs#6501 there are alternatives such as EFISTUB which
  work and have no such restriction.  A warning was added to the
  checksum property section of the zfs.8 man page.

Authored by: Toomas Soome <tsoome@me.com>
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Yuri Pankov <yuripv@yuripv.net>
Approved by: Dan McDonald <danmcd@joyent.com>
Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>

OpenZFS-issue: https://illumos.org/issues/8906
OpenZFS-commit: openzfs/openzfs@7dec52f
Closes openzfs#6501
Closes openzfs#7714
tonyhutter pushed a commit to tonyhutter/zfs that referenced this issue Aug 27, 2018
Porting notes:
* As of grub-2.02 these checksums are not supported.  However, as
  pointed out in openzfs#6501 there are alternatives such as EFISTUB which
  work and have no such restriction.  A warning was added to the
  checksum property section of the zfs.8 man page.

Authored by: Toomas Soome <tsoome@me.com>
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Yuri Pankov <yuripv@yuripv.net>
Approved by: Dan McDonald <danmcd@joyent.com>
Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>

OpenZFS-issue: https://illumos.org/issues/8906
OpenZFS-commit: openzfs/openzfs@7dec52f
Closes openzfs#6501
Closes openzfs#7714
tonyhutter pushed a commit to tonyhutter/zfs that referenced this issue Sep 5, 2018
Porting notes:
* As of grub-2.02 these checksums are not supported.  However, as
  pointed out in openzfs#6501 there are alternatives such as EFISTUB which
  work and have no such restriction.  A warning was added to the
  checksum property section of the zfs.8 man page.

Authored by: Toomas Soome <tsoome@me.com>
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Yuri Pankov <yuripv@yuripv.net>
Approved by: Dan McDonald <danmcd@joyent.com>
Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>

OpenZFS-issue: https://illumos.org/issues/8906
OpenZFS-commit: openzfs/openzfs@7dec52f
Closes openzfs#6501
Closes openzfs#7714
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Feature request or new feature
Projects
None yet
Development

No branches or pull requests

4 participants