Linux XFS filesystem development
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx@kernel.org>
To: Andrey Albershteyn <aalbersh@kernel.org>
Cc: linux-xfs@vger.kernel.org, djwong@kernel.org
Subject: Re: [PATCH] man: document that XFS_IOC_FS[G|S]ETXATTR can not be used on special files
Date: Fri, 11 Sep 2026 14:29:21 +0200	[thread overview]
Message-ID: <aqPy-NvMiHD9Vemb@devuan> (raw)
In-Reply-To: <20260911114746.343945-1-aalbersh@kernel.org>

[-- Attachment #1: Type: text/plain, Size: 2713 bytes --]

Hi Andrey,

> Date: 2026-09-11 13:47:44+0200
> From: Andrey Albershteyn <aalbersh@kernel.org>
>
> Add a CAVEATS section with an note that these ioctls can not be used on
> special files and leave a reference to an alternative pathname based
> syscall interface.
> 

Please add:

Cc: Alejandro Colomar <alx@kernel.org>
Cc: "Darrick J. Wong" <djwong@kernel.org>

> Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org>
> ---

Thanks!

>  man/man2/ioctl_xfs_fsgetxattr.2 | 19 ++++++++++++++++++-
>  1 file changed, 18 insertions(+), 1 deletion(-)
> 
> diff --git a/man/man2/ioctl_xfs_fsgetxattr.2 b/man/man2/ioctl_xfs_fsgetxattr.2
> index 25a9ba7965d1..5d223138e419 100644
> --- a/man/man2/ioctl_xfs_fsgetxattr.2
> +++ b/man/man2/ioctl_xfs_fsgetxattr.2
> @@ -238,6 +238,23 @@ Caller did not have permission to change the attributes.
>  This API is implemented by the ext4, xfs, btrfs, and f2fs filesystems on the
>  Linux kernel.
>  Not all fields may be understood by filesystems other than xfs.
> +.SH CAVEATS
> +The
> +.B XFS_IOC_FSGETXATTR
> +and
> +.B XFS_IOC_FSSETXATTR
> +.BR ioctl (2)
> +operations require the user to open the file, but this may not be possible or
> +lead to side effects on special files such as FIFOs, sockets, block devices,
> +character devices, and symlinks.

I'd recommend that this project should use semantic newlines.
See man-pages(7):

	$ MANWIDTH=64 man man-pages | awk '/Use semantic newlines/,/^$/'
	   Use semantic newlines
	     In  the  source  of a manual page, new sentences should be
	     started on new lines, long sentences should be split  into
	     lines at clause breaks (commas, semicolons, colons, and so
	     on),  and  long  clauses  should be split at phrase bound‐
	     aries.  This convention, sometimes known as "semantic new‐
	     lines", makes it easier to  see  the  effect  of  patches,
	     which  often operate at the level of individual sentences,
	     clauses, or phrases.

However, I notice that the project isn't using them, so it's up to them
whether they want it for new documentation.  I'd recommend using them.

> +.P
> +For a pathname based interface see

s/pathname based/pathname-based/

See <https://www.grammar-monster.com/lessons/hyphens_in_compound_adjectives.htm>

Also, s/see/see the/

> +.BR file_getattr (2)
> +and
> +.BR file_setattr (2)
> +syscalls.
>  .SH SEE ALSO
>  .BR ioctl (2),
> -.BR ioctl_iflags (2)
> +.BR ioctl_iflags (2),
> +.BR file_getattr (2),
> +.BR file_setattr (2)

Other than those minor details:

Reviewed-by: Alejandro Colomar <alx@kernel.org>


Have a lovely day!
Alex

-- 
<https://www.alejandro-colomar.es>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2026-09-11 12:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-11 11:47 [PATCH] man: document that XFS_IOC_FS[G|S]ETXATTR can not be used on special files Andrey Albershteyn
2026-09-11 12:29 ` Alejandro Colomar [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=aqPy-NvMiHD9Vemb@devuan \
    --to=alx@kernel.org \
    --cc=aalbersh@kernel.org \
    --cc=djwong@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