Re: git: 9cb485d18f01 - main - geom: Remove g_class.config

From: Alexander Motin <mavbsd_at_gmail.com>
Date: Fri, 19 Nov 2021 17:49:21 UTC
You are right, but I'd generally try to preserve KBI even in current,
when possible, to ease upgrades.

On 19.11.2021 11:46, Warner Losh wrote:
> Thanks Alexander...  I understand this comment for MFCing, but -current
> isn't KBI
> stable, though I likely should have bumped FreeBSD_version to cope
> instead. Am I
> missing something?
> 
> Warner
> 
> On Fri, Nov 19, 2021 at 8:05 AM Alexander Motin <mavbsd@gmail.com
> <mailto:mavbsd@gmail.com>> wrote:
> 
>     I have no objections, but I'd leave padding there to not break KBI for
>     out of tree GEOM classes.
> 
>     On 19.11.2021 01:20, Warner Losh wrote:
>     > The branch main has been updated by imp:
>     >
>     > URL:
>     https://cgit.FreeBSD.org/src/commit/?id=9cb485d18f01900800efe4ec3cfcfadd335da858
>     <https://cgit.FreeBSD.org/src/commit/?id=9cb485d18f01900800efe4ec3cfcfadd335da858>
>     >
>     > commit 9cb485d18f01900800efe4ec3cfcfadd335da858
>     > Author:     Wuyang Chung <wy-chung@outlook.com
>     <mailto:wy-chung@outlook.com>>
>     > AuthorDate: 2021-10-16 01:43:54 +0000
>     > Commit:     Warner Losh <imp@FreeBSD.org>
>     > CommitDate: 2021-11-19 06:17:07 +0000
>     >
>     >     geom: Remove g_class.config
>     >     
>     >     g_class.config is write only, remove it.
>     > ---
>     >  sys/geom/geom.h      | 1 -
>     >  sys/geom/geom_subr.c | 1 -
>     >  2 files changed, 2 deletions(-)
>     >
>     > diff --git a/sys/geom/geom.h b/sys/geom/geom.h
>     > index 1aba1f46d6d5..0d6d74d0b51c 100644
>     > --- a/sys/geom/geom.h
>     > +++ b/sys/geom/geom.h
>     > @@ -96,7 +96,6 @@ struct g_class {
>     >       u_int                   version;
>     >       u_int                   spare0;
>     >       g_taste_t               *taste;
>     > -     g_config_t              *config;
>     >       g_ctl_req_t             *ctlreq;
>     >       g_init_t                *init;
>     >       g_fini_t                *fini;
>     > diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c
>     > index 2f7ea7754f7b..abaae5ccf57f 100644
>     > --- a/sys/geom/geom_subr.c
>     > +++ b/sys/geom/geom_subr.c
>     > @@ -222,7 +222,6 @@ retry:
>     > 
>     >       /* Bar new entries */
>     >       mp->taste = NULL;
>     > -     mp->config = NULL;
>     > 
>     >       LIST_FOREACH(gp, &mp->geom, geom) {
>     >               error = mp->destroy_geom(NULL, mp, gp);
>     >
> 
>     -- 
>     Alexander Motin
> 

-- 
Alexander Motin