[Bug 287049] geom: foot shooting not allowed on slice
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Jul 2025 22:05:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287049
Jordan Gordeev <jgopensource@proton.me> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jgopensource@proton.me
--- Comment #1 from Jordan Gordeev <jgopensource@proton.me> ---
The sysctl kern.geom.debugflags is documented in geom(4). Quotation:
0x10 (allow foot shooting)
Allow writing to Rank 1 providers.
The explanation for the observed behaviour is that ada0s4 is not a Rank 1
provider but a Rank 2 or higher. Typical Rank 1 providers are physical disks.
The ranks of GEOM providers are not easy to observe but they can be found in
the output of "sysctl kern.geom.confxml". Also note that technically providers
don't have ranks. Rather, the geoms to which the providers belong have ranks.
In zfsboot(8) there is an example of writing to ada0s1. That would succeed if
executed while the file system located on ada0s1 is NOT mounted.
The real bug here is documented in the BUGS section of zfsboot(8):
Installing zfsboot with dd(1) is a hack. ZFS needs a command to properly
install zfsboot onto a ZFS-controlled disk or partition.
zfsboot is necessary only for the MBR partitioning scheme which is out of
fashion so don't expect any improvements to it or its installation process.
--
You are receiving this mail because:
You are the assignee for the bug.