The branch main has been updated by mav:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=03a197128f9c70ddb0685a0825c9d37003c41c4e

commit 03a197128f9c70ddb0685a0825c9d37003c41c4e
Author:     Alexander Motin <[email protected]>
AuthorDate: 2026-09-01 17:53:46 +0000
Commit:     Alexander Motin <[email protected]>
CommitDate: 2026-09-01 17:54:31 +0000

    geli: report stripesize/stripeoffset when applicable
---
 sys/geom/eli/g_eli.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys/geom/eli/g_eli.c b/sys/geom/eli/g_eli.c
index 6430d4485395..162ea7915c34 100644
--- a/sys/geom/eli/g_eli.c
+++ b/sys/geom/eli/g_eli.c
@@ -1171,6 +1171,13 @@ g_eli_create(struct gctl_req *req, struct g_class *mp, 
struct g_provider *bpp,
        }
        pp->mediasize = sc->sc_mediasize;
        pp->sectorsize = sc->sc_sectorsize;
+       if ((sc->sc_flags & G_ELI_FLAG_AUTH) == 0 &&
+           bpp->stripesize > sc->sc_sectorsize &&
+           bpp->stripesize % sc->sc_sectorsize == 0 &&
+           bpp->stripeoffset % sc->sc_sectorsize == 0) {
+               pp->stripesize = bpp->stripesize;
+               pp->stripeoffset = bpp->stripeoffset;
+       }
        LIST_FOREACH(gap, &bpp->aliases, ga_next)
                g_provider_add_alias(pp, "%s%s", gap->ga_alias, G_ELI_SUFFIX);
 

Reply via email to