From: "Alejandro Colomar (man-pages)" <alx.manpages@gmail.com>
To: Mathnerd314 <mathnerd314.gph@gmail.com>,
Alexander Viro <viro@zeniv.linux.org.uk>
Cc: linux-man@vger.kernel.org, mtk.manpages@gmail.com,
linux-fsdevel@vger.kernel.org
Subject: Re: EINTR for fsync(2)
Date: Mon, 31 Jan 2022 21:44:38 +0100 [thread overview]
Message-ID: <55d40a53-ad40-0bbf-0aed-e57419408796@gmail.com> (raw)
In-Reply-To: <CADVL9rE70DK+gWn-pbHXy6a+5sdkHzFg_xJ9phhQkRapTUJ_zg@mail.gmail.com>
Hello Alexander,
On 1/31/22 19:32, Mathnerd314 wrote:
> Hi,
>
> The POSIX standard says fsync(2) can return EINTR:
> https://pubs.opengroup.org/onlinepubs/9699919799/
>
> The man page does not:
> https://man7.org/linux/man-pages/man2/fsync.2.html
>
> I think fsync can be interrupted by a signal on Linux, so this should
> just be an oversight in the man page.
>
> At least, fsync on fuse seems be able to return EINTR:
> https://github.com/torvalds/linux/blob/5367cf1c3ad02f7f14d79733814302a96cc97b96/fs/fuse/dev.c#L114
>
> Actually there seem to be numerous error codes that can be returned
> from all filesystem calls on fuse: ENOTCONN, ENOMEM, etc. But EINTR is
> at least documented in the POSIX standard, whereas these others seem
> really rare. But for full correctness I suppose these should be
> documented as well. It would be quite an undertaking.
>
> -- Mathnerd314 (pseudonym)
I got this report on linux-man@. Could you please confirm if there are
any ERRORS that should be added to the fsync(2) manual page?
Thanks,
Alex
Mathnerd314: Thanks for the report! It's useful to CC the relevant
kernel developers when reporting non-trivial bugs such as this one.
They know better than we do. :)
Cheers,
Alex
--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
next parent reply other threads:[~2022-01-31 20:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CADVL9rE70DK+gWn-pbHXy6a+5sdkHzFg_xJ9phhQkRapTUJ_zg@mail.gmail.com>
2022-01-31 20:44 ` Alejandro Colomar (man-pages) [this message]
2022-02-01 0:30 ` EINTR for fsync(2) Matthew Wilcox
2022-02-01 14:48 ` Alejandro Colomar (man-pages)
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=55d40a53-ad40-0bbf-0aed-e57419408796@gmail.com \
--to=alx.manpages@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-man@vger.kernel.org \
--cc=mathnerd314.gph@gmail.com \
--cc=mtk.manpages@gmail.com \
--cc=viro@zeniv.linux.org.uk \
/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).