* [PATCH] libfrog: Unconditionally build fsprops.c
@ 2024-08-19 13:22 cem
2024-08-19 14:09 ` Christoph Hellwig
0 siblings, 1 reply; 5+ messages in thread
From: cem @ 2024-08-19 13:22 UTC (permalink / raw)
To: linux-xfs; +Cc: djwong
From: Carlos Maiolino <cem@kernel.org>
The new xfs_io fs properties subcommand, requires fsprops to be build,
while libfrog conditionally build it according to the existence of
libattr.
This causes builds to fail if the libattr headers are not available,
without a clear output.
Now that xfs_io unconditionally requires libfrog/fsprops.c to be built,
remove the condition from libfrog's Makefile.
Fixes: d194cb818305 ("xfs_io: edit filesystem properties")
Signed-off-by: Carlos Maiolino <cmaiolino@redhat.com>
---
libfrog/Makefile | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/libfrog/Makefile b/libfrog/Makefile
index acddc894e..53de7c174 100644
--- a/libfrog/Makefile
+++ b/libfrog/Makefile
@@ -21,6 +21,7 @@ crc32.c \
file_exchange.c \
fsgeom.c \
fsproperties.c \
+fsprops.c \
getparents.c \
histogram.c \
list_sort.c \
@@ -49,6 +50,7 @@ div64.h \
file_exchange.h \
fsgeom.h \
fsproperties.h \
+fsprops.h \
getparents.h \
histogram.h \
logging.h \
@@ -61,12 +63,6 @@ scrub.h \
workqueue.h
LSRCFILES += gen_crc32table.c
-
-ifeq ($(HAVE_LIBATTR),yes)
-CFILES+=fsprops.c
-HFILES+=fsprops.h
-endif
-
LDIRT = gen_crc32table crc32table.h
default: ltdepend $(LTLIBRARY)
--
2.46.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] libfrog: Unconditionally build fsprops.c
2024-08-19 13:22 [PATCH] libfrog: Unconditionally build fsprops.c cem
@ 2024-08-19 14:09 ` Christoph Hellwig
2024-08-19 15:12 ` Darrick J. Wong
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2024-08-19 14:09 UTC (permalink / raw)
To: cem; +Cc: linux-xfs, djwong
On Mon, Aug 19, 2024 at 03:22:05PM +0200, cem@kernel.org wrote:
> From: Carlos Maiolino <cem@kernel.org>
>
> The new xfs_io fs properties subcommand, requires fsprops to be build,
> while libfrog conditionally build it according to the existence of
> libattr.
>
> This causes builds to fail if the libattr headers are not available,
> without a clear output.
>
> Now that xfs_io unconditionally requires libfrog/fsprops.c to be built,
> remove the condition from libfrog's Makefile.
That means we'll also need to make libattr mandatory in configure,
right?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] libfrog: Unconditionally build fsprops.c
2024-08-19 14:09 ` Christoph Hellwig
@ 2024-08-19 15:12 ` Darrick J. Wong
2024-08-19 15:23 ` Christoph Hellwig
0 siblings, 1 reply; 5+ messages in thread
From: Darrick J. Wong @ 2024-08-19 15:12 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: cem, linux-xfs
On Mon, Aug 19, 2024 at 07:09:32AM -0700, Christoph Hellwig wrote:
> On Mon, Aug 19, 2024 at 03:22:05PM +0200, cem@kernel.org wrote:
> > From: Carlos Maiolino <cem@kernel.org>
> >
> > The new xfs_io fs properties subcommand, requires fsprops to be build,
> > while libfrog conditionally build it according to the existence of
> > libattr.
> >
> > This causes builds to fail if the libattr headers are not available,
> > without a clear output.
> >
> > Now that xfs_io unconditionally requires libfrog/fsprops.c to be built,
> > remove the condition from libfrog's Makefile.
>
> That means we'll also need to make libattr mandatory in configure,
> right?
How about we just opencode ATTR_ENTRY in libfrog and then we can get rid
of the libattr dependency for it and xfs_scrub? IIRC that's the only
piece of libattr that those pieces actually need.
--D
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] libfrog: Unconditionally build fsprops.c
2024-08-19 15:12 ` Darrick J. Wong
@ 2024-08-19 15:23 ` Christoph Hellwig
2024-08-19 15:57 ` Carlos Maiolino
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2024-08-19 15:23 UTC (permalink / raw)
To: Darrick J. Wong; +Cc: Christoph Hellwig, cem, linux-xfs
On Mon, Aug 19, 2024 at 08:12:16AM -0700, Darrick J. Wong wrote:
>
> How about we just opencode ATTR_ENTRY in libfrog and then we can get rid
> of the libattr dependency for it and xfs_scrub? IIRC that's the only
> piece of libattr that those pieces actually need.
We'd also have to switch from attrlist_ent to xfs_attrlist_ent
and maybe a few similar substitutions, but otherwise it should work.
While we're at it, it might be worth to do the same for scrub and
get rid of the libattr dependency entirely.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] libfrog: Unconditionally build fsprops.c
2024-08-19 15:23 ` Christoph Hellwig
@ 2024-08-19 15:57 ` Carlos Maiolino
0 siblings, 0 replies; 5+ messages in thread
From: Carlos Maiolino @ 2024-08-19 15:57 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Darrick J. Wong, linux-xfs
On Mon, Aug 19, 2024 at 08:23:41AM GMT, Christoph Hellwig wrote:
> On Mon, Aug 19, 2024 at 08:12:16AM -0700, Darrick J. Wong wrote:
> >
> > How about we just opencode ATTR_ENTRY in libfrog and then we can get rid
> > of the libattr dependency for it and xfs_scrub? IIRC that's the only
> > piece of libattr that those pieces actually need.
>
> We'd also have to switch from attrlist_ent to xfs_attrlist_ent
> and maybe a few similar substitutions, but otherwise it should work.
>
> While we're at it, it might be worth to do the same for scrub and
> get rid of the libattr dependency entirely.
>
>
Sounds like a plan, I can work on that. Thanks for the reviews
Carlos
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-08-19 15:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-19 13:22 [PATCH] libfrog: Unconditionally build fsprops.c cem
2024-08-19 14:09 ` Christoph Hellwig
2024-08-19 15:12 ` Darrick J. Wong
2024-08-19 15:23 ` Christoph Hellwig
2024-08-19 15:57 ` Carlos Maiolino
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox