linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrey Albershteyn <aalbersh@redhat.com>
To: aalbersh@kernel.org, linux-fsdevel@vger.kernel.org,
	 linux-xfs@vger.kernel.org
Cc: Andrey Albershteyn <aalbersh@redhat.com>,
	 "Darrick J. Wong" <djwong@kernel.org>
Subject: [PATCH v3 0/4] xfsprogs: utilize file_getattr() and file_setattr()
Date: Tue, 09 Sep 2025 17:24:35 +0200	[thread overview]
Message-ID: <20250909-xattrat-syscall-v3-0-4407a714817e@kernel.org> (raw)
In-Reply-To: <mqtzaalalgezpwfwmvrajiecz5y64mhs6h6pcghoq2hwkshcze@mxiscu7g7s32>

Hi all,

This patchset updates libfrog, xfs_db, xfs_quota to use recently
introduced syscalls file_getattr()/file_setattr().

I haven't replaced all the calls to ioctls() with a syscalls, just a few
places where syscalls are necessary. If there's more places it would be
suitable to update, let me know.

Cc: linux-fsdevel@vger.kernel.org
Cc: linux-xfs@vger.kernel.org

---
Changes in v3:
- Fix tab vs spaces indents
- Update year in SPDX header
- Rename AC_HAVE_FILE_ATTR to AC_HAVE_FILE_GETATTR
- Link to v2: https://lore.kernel.org/r/20250827-xattrat-syscall-v2-0-82a2d2d5865b@kernel.org

---
Andrey Albershteyn (4):
      libfrog: add wrappers for file_getattr/file_setattr syscalls
      xfs_quota: utilize file_setattr to set prjid on special files
      xfs_io: make ls/chattr work with special files
      xfs_db: use file_setattr to copy attributes on special files with rdump

 configure.ac          |   1 +
 db/rdump.c            |  20 ++++++-
 include/builddefs.in  |   5 ++
 include/linux.h       |  20 +++++++
 io/attr.c             | 138 ++++++++++++++++++++++++++++--------------------
 io/io.h               |   2 +-
 io/stat.c             |   2 +-
 libfrog/Makefile      |   2 +
 libfrog/file_attr.c   | 121 ++++++++++++++++++++++++++++++++++++++++++
 libfrog/file_attr.h   |  35 +++++++++++++
 m4/package_libcdev.m4 |  19 +++++++
 quota/project.c       | 142 ++++++++++++++++++++++++++------------------------
 12 files changed, 380 insertions(+), 127 deletions(-)
---
base-commit: 1d287f3d958ebc425275d6a08ad6977e13e52fac
change-id: 20250317-xattrat-syscall-839fb2bb0c63

Best regards,
--  
Andrey Albershteyn <aalbersh@kernel.org>


  reply	other threads:[~2025-09-09 15:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-09 15:22 Tests for file_getattr()/file_setattr() and xfsprogs update Andrey Albershteyn
2025-09-09 15:24 ` Andrey Albershteyn [this message]
2025-09-09 15:24   ` [PATCH v3 v3 1/4] libfrog: add wrappers for file_getattr/file_setattr syscalls Andrey Albershteyn
2025-09-12 23:38     ` Darrick J. Wong
2025-09-09 15:24   ` [PATCH v3 v3 2/4] xfs_quota: utilize file_setattr to set prjid on special files Andrey Albershteyn
2025-09-12 23:38     ` Darrick J. Wong
2025-09-09 15:24   ` [PATCH v3 v3 3/4] xfs_io: make ls/chattr work with " Andrey Albershteyn
2025-09-09 15:24   ` [PATCH v3 v3 4/4] xfs_db: use file_setattr to copy attributes on special files with rdump Andrey Albershteyn
2025-09-09 15:25 ` [PATCH v3 0/3] Test file_getattr and file_setattr syscalls Andrey Albershteyn
2025-09-09 15:25   ` [PATCH v3 1/3] file_attr: introduce program to set/get fsxattr Andrey Albershteyn
2025-09-12 23:39     ` Darrick J. Wong
2025-09-09 15:25   ` [PATCH v3 2/3] generic: introduce test to test file_getattr/file_setattr syscalls Andrey Albershteyn
2025-09-23 16:09     ` Andrey Albershteyn
2025-09-09 15:25   ` [PATCH v3 3/3] xfs: test quota's project ID on special files Andrey Albershteyn

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=20250909-xattrat-syscall-v3-0-4407a714817e@kernel.org \
    --to=aalbersh@redhat.com \
    --cc=aalbersh@kernel.org \
    --cc=djwong@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).