[Bug 295261] ZFS zpool(8) does not set/report proper ashift value

[email protected] Mon, 20 Jul 2026 12:18:22 +0000
Newsgroups gmane.os.freebsd.devel.file-systems
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D295261

Alexey Dokuchaev <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Alexey Dokuchaev <[email protected]> ---
(In reply to Slawomir Wojciech Wojtczak from comment #0)
> If you create ZFS pool by hand with 'ashift' option specified:
> # zpool create -o ashift=3D12 pool device
> Then 'ashift' is then properly reported by zpool-get(8) cmd:
I vaguely recall that specifying ashift upon the pool creation is actually a
linuxism (or, rather, ZoL'ism), and zero is correct default value meaning "=
ask
the kernel/GEOM" (on older ZFS it wasn't even a property), hence on FreeBSD=
 one
would traditionally set min_auto_ashift=3D12 via sysctl(8) to force 4KB sec=
tors.

> Which is a bug -- it should also be set/reported.
Well, it is reported, if you ask for the underlying vdevs' ashift, e.g.:

$ zpool get ashift tank
NAME  PROPERTY  VALUE   SOURCE
tank  ashift    0       default

$ zpool get ashift tank all-vdevs
NAME    PROPERTY  VALUE   SOURCE
root-0  ashift    0       -
gpt/zfs0  ashift    9       -

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