]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
fallocate syscall interface deficiency
authorUlrich Drepper <drepper@redhat.com>
Tue, 24 Jul 2007 01:43:46 +0000 (18:43 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 24 Jul 2007 19:24:58 +0000 (12:24 -0700)
commit0d786d4a2773f06a791e8c3730d049077fb81df6
treede553420b6b1a70b80034385ff94eb706bac12ab
parent4f640efb3170dbcf99a37a3cc99060647b95428c
fallocate syscall interface deficiency

The fallocate syscall returns ENOSYS in case the filesystem does not support
the operation and expects the userlevel code to fill in.  This is good in
concept.

The problem is that the libc code for old kernels should be able to
distinguish the case where the syscall is not at all available vs not
functioning for a specific mount point.  As is this is not possible and we
always have to invoke the syscall even if the kernel doesn't support it.

I suggest the following patch.  Using EOPNOTSUPP is IMO the right thing to do.

Cc: Amit Arora <aarora@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/open.c