]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: Add support for booting from a ZFS snapshot
authorAllan Jude <allanjude@FreeBSD.org>
Sat, 26 Nov 2022 18:11:13 +0000 (18:11 +0000)
committerAllan Jude <allanjude@FreeBSD.org>
Tue, 14 Mar 2023 14:18:29 +0000 (14:18 +0000)
commita849842f510af48717e35ff709623e0dd1b80b20
tree546469e49b8ba7b099758102270ad01187bc6d00
parent21f268182838f072f96234c727778d5603a580e3
loader: Add support for booting from a ZFS snapshot

When booting from a snapshot we need to follow a different code path
to turn the objset ID into the name, and for forward lookups we need
to walk the parent's snapnames_zap.

With this, it is possible to set the pools BOOTFS property to a
snapshot and boot with a read-only filesystem of that snapshot.

Reviewed by: tsoome, rew, imp
Sponsored By: Beckhoff Automation GmbH & Co. KG
Sponsored By: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D38600
stand/libsa/zfs/zfsimpl.c