public inbox for nvdimm@lists.linux.dev
 help / color / mirror / Atom feed
From: Alison Schofield <alison.schofield@intel.com>
To: <dan.j.williams@intel.com>
Cc: <nvdimm@lists.linux.dev>, <linux-cxl@vger.kernel.org>,
	Andreas Hasenack <andreas.hasenack@canonical.com>,
	Vishal Verma <vishal.l.verma@intel.com>,
	Dave Jiang <dave.jiang@intel.com>
Subject: Re: [ndctl PATCH v3] cxl/list: remove libtracefs build dependency for --media-errors
Date: Thu, 25 Sep 2025 10:04:31 -0700	[thread overview]
Message-ID: <aNV2H4F61_FaUrAb@aschofie-mobl2.lan> (raw)
In-Reply-To: <68d56606e8dd2_10520100b5@dwillia2-mobl4.notmuch>

On Thu, Sep 25, 2025 at 08:55:50AM -0700, Dan Williams wrote:
> Alison Schofield wrote:
> > When the --media-errors option was added to cxl list it inadvertently
> > changed the optional libtracefs requirement into a mandatory one.
> > Ndctl versions 80,81,82 no longer build without libtracefs.
> > 
> > Remove that dependency.
> > 
> > When libtracefs is disabled the user will see a this message logged
> > to stderr:
> > 	$ cxl list -r region0 --media-errors --targets
> > 	cxl list: --media-errors support disabled at build time
> > 
> > ...followed by the region listing including the output for any other
> > valid command line options, like --targets in the example above.
> > 
> > When libtracefs is disabled the cxl-poison.sh unit test is omitted.
> > 
> > The man page gets a note:
> > 	The media-error option is only available with -Dlibtracefs=enabled.
> > 
> > Reported-by: Andreas Hasenack <andreas.hasenack@canonical.com>
> > Fixes: d7532bb049e0 ("cxl/list: add --media-errors option to cxl list")
> > Closes: https://github.com/pmem/ndctl/issues/289
> > Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
> > Reviewed-by: Dave Jiang <dave.jiang@intel.com>
> > Link: https://lore.kernel.org/r/20250924045302.90074-1-alison.schofield@intel.com
> > Signed-off-by: Alison Schofield <alison.schofield@intel.com>
> > ---
> > 
> > Changes in v3:
> > - Remove ifdef's from .c files (Dan)
> >   Move ifdef chunk in json.c to a new conditionally compiled json_poison.c.
> >   Move ifdef notice message to !ENABLE_LIBTRACEFS stub in event_trace.h.
> 
> Looks great, I appreciate the ifdef reorganization effort.
> 
> Reviewed-by: Dan Williams <dan.j.williams@intel.com>

Thanks for the review!
Pending rebased with this v3 version:
https://github.com/pmem/ndctl/commit/b26e9ae

      reply	other threads:[~2025-09-25 17:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-25  7:54 [ndctl PATCH v3] cxl/list: remove libtracefs build dependency for --media-errors Alison Schofield
2025-09-25 15:55 ` dan.j.williams
2025-09-25 17:04   ` Alison Schofield [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aNV2H4F61_FaUrAb@aschofie-mobl2.lan \
    --to=alison.schofield@intel.com \
    --cc=andreas.hasenack@canonical.com \
    --cc=dan.j.williams@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=linux-cxl@vger.kernel.org \
    --cc=nvdimm@lists.linux.dev \
    --cc=vishal.l.verma@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox