Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2022 10:51:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 264174] Use of redaction bookmarks or redacted datasets on a boot pool renders the pool unbootable
Message-ID:  <bug-264174-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264174

            Bug ID: 264174
           Summary: Use of redaction bookmarks or redacted datasets on a
                    boot pool renders the pool unbootable
           Product: Base System
           Version: 13.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: astralblue@gmail.com

src/stand/libsa/zfs/zfsimpl.c defines features_for_read, which contains a s=
et
of whitelisted zpool features.  If any other read-only-incompatible feature=
 is
active on a boot pool (that is, enabled and in use) the boot loader will fa=
il
to boot from the pool.

With ZoR, it is easy to shoot oneself in the foot by accidentally activatin=
g a
read-only-incompatible feature.  Currently these include redaction_bookmarks
and redacted_datasets, activated by creating redaction bookmarks and receiv=
ing
redacted send streams.

It would be nice if zfs redact and zfs receive commands checked the feature
activation and warned the (unsuspecting) user about this if the pool is a b=
oot
pool.

Suggested message for zfs redact:

    WARNING: A redaction bookmark was created on a boot pool.  Currently
FreeBSD
    cannot boot from a pool with redaction bookmarks or redacted datasets.

    To undo this change, run:

        zfs destroy zroot/test/base#redacted

    To identify all redaction bookmarks and redacted snapshots on the pool,
run:

        zfs get -rHp -t bookmark,snapshot -o name redact_snaps zroot

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264174-227>