From: Al Viro <viro@ZenIV.linux.org.uk>
To: Jesper Juhl <jj@chaosbits.net>
Cc: linux-kernel@vger.kernel.org,
Linus Torvalds <torvalds@linux-foundation.org>,
Jonas Gorski <jonas.gorski@gmail.com>,
"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Subject: Re: Why is CONFIG_FHANDLE an option??
Date: Fri, 10 Jun 2011 23:47:38 +0100 [thread overview]
Message-ID: <20110610224738.GB11521@ZenIV.linux.org.uk> (raw)
In-Reply-To: <20110610223955.GA11521@ZenIV.linux.org.uk>
On Fri, Jun 10, 2011 at 11:39:55PM +0100, Al Viro wrote:
> Why not? Software needs to test *anyway*, since it might run on earlier
> kernels. And "does that syscall return -ENOSYS" is self-documenting,
> while "is the version higher than $MAGIC_NUMBER" is *not*. Especially since
> there's such thing as backports.
>
> If you need to check that syscall is there, _check_ _it_. Don't breed
> dependencies on version numbers.
PS: we have BSD_PROCESS_ACCT doing pretty much the same kind of thing.
And SYSVIPC. And POSIX_MQUEUE. And there's nfsservctl(2), also
config-dependent. And eventfd(2), and inotify syscalls, etc.
There is such thing as optional system calls. Always had been. Deal
with that...
next prev parent reply other threads:[~2011-06-10 22:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-10 22:14 Jesper Juhl
2011-06-10 22:39 ` Al Viro
2011-06-10 22:38 ` Jesper Juhl
2011-06-10 22:47 ` Al Viro [this message]
2011-06-10 22:42 ` Jesper Juhl
2011-06-10 22:58 ` Al Viro
2011-06-10 23:10 ` Alexey Dobriyan
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=20110610224738.GB11521@ZenIV.linux.org.uk \
--to=viro@zeniv.linux.org.uk \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=jj@chaosbits.net \
--cc=jonas.gorski@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.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
all inboxes | Powered by JetHome®