public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHSET] xfsprogs: do not depend on deprecated libattr
@ 2024-09-19 23:52 Darrick J. Wong
  2024-09-19 23:53 ` [PATCH 1/2] misc: clean up code around attr_list_by_handle calls Darrick J. Wong
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Darrick J. Wong @ 2024-09-19 23:52 UTC (permalink / raw)
  To: djwong, cem; +Cc: linux-xfs, hch

Hi all,

Remove xfsprogs dependence on libattr for certain attr_list_by_handle support
macros because libattr is deprecated.  The code in that library came from XFS
originally anyway, so we can do a special one-off for ourselves.

This has been running on the djcloud for months with no problems.  Enjoy!
Comments and questions are, as always, welcome.

--D
---
Commits in this patchset:
 * misc: clean up code around attr_list_by_handle calls
 * libfrog: emulate deprecated attrlist functionality in libattr
---
 configure.ac          |    2 --
 debian/control        |    2 +-
 include/builddefs.in  |    1 -
 libfrog/Makefile      |    8 ++-----
 libfrog/fakelibattr.h |   36 ++++++++++++++++++++++++++++++
 libfrog/fsprops.c     |   22 ++++++++++--------
 m4/package_attr.m4    |   25 ---------------------
 scrub/Makefile        |    4 ---
 scrub/phase5.c        |   59 +++++++++++++++++++++++++++----------------------
 9 files changed, 85 insertions(+), 74 deletions(-)
 create mode 100644 libfrog/fakelibattr.h
 delete mode 100644 m4/package_attr.m4


^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCHSET 2/6] xfsprogs: do not depend on libattr
@ 2024-10-02  1:04 Darrick J. Wong
  2024-10-02  1:07 ` [PATCH 2/2] libfrog: emulate deprecated attrlist functionality in libattr Darrick J. Wong
  0 siblings, 1 reply; 7+ messages in thread
From: Darrick J. Wong @ 2024-10-02  1:04 UTC (permalink / raw)
  To: aalbersh, djwong, cem; +Cc: Carlos Maiolino, Christoph Hellwig, linux-xfs

Hi all,

Remove xfsprogs dependence on libattr because libattr is deprecated.  The code
in that library came from XFS, so we can make our own shims.

If you're going to start using this code, I strongly recommend pulling
from my git trees, which are linked below.

Comments and questions are, as always, welcome.

xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=libattr-remove-6.11
---
Commits in this patchset:
 * misc: clean up code around attr_list_by_handle calls
 * libfrog: emulate deprecated attrlist functionality in libattr
---
 configure.ac          |    2 --
 debian/control        |    2 +-
 include/builddefs.in  |    1 -
 libfrog/Makefile      |    8 ++-----
 libfrog/fakelibattr.h |   36 ++++++++++++++++++++++++++++++
 libfrog/fsprops.c     |   22 ++++++++++--------
 m4/package_attr.m4    |   25 ---------------------
 scrub/Makefile        |    4 ---
 scrub/phase5.c        |   59 +++++++++++++++++++++++++++----------------------
 9 files changed, 85 insertions(+), 74 deletions(-)
 create mode 100644 libfrog/fakelibattr.h
 delete mode 100644 m4/package_attr.m4


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-02  1:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-19 23:52 [PATCHSET] xfsprogs: do not depend on deprecated libattr Darrick J. Wong
2024-09-19 23:53 ` [PATCH 1/2] misc: clean up code around attr_list_by_handle calls Darrick J. Wong
2024-09-20 11:26   ` Christoph Hellwig
2024-09-19 23:53 ` [PATCH 2/2] libfrog: emulate deprecated attrlist functionality in libattr Darrick J. Wong
2024-09-20 11:26   ` Christoph Hellwig
2024-09-23 17:10 ` [PATCHSET] xfsprogs: do not depend on deprecated libattr Carlos Maiolino
  -- strict thread matches above, loose matches on Subject: below --
2024-10-02  1:04 [PATCHSET 2/6] xfsprogs: do not depend on libattr Darrick J. Wong
2024-10-02  1:07 ` [PATCH 2/2] libfrog: emulate deprecated attrlist functionality in libattr Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox