kernel-ark/fs/hostfs
Paolo 'Blaisorblade' Giarrusso daa35edc0a [PATCH] uml: remove empty hostfs_truncate method
Calling truncate() on hostfs spits a kernel warning "Something isn't
implemented here", but it still works fine.

Indeed, hostfs i_op->truncate doesn't do anything.  But hostfs_setattr() ->
set_attr() correctly detects ATTR_SIZE and calls truncate() on the host.  So
we should be safe (using ftruncate() may be better, in case the file is
unlinked on the host, but we aren't sure to have the file open for writing,
and reopening it would cause the same races; plus nobody should expect UML to
be so careful).

So, the warning is wrong, because the current implementation is working.  Al,
am I correct, and can the warning be therefore dropped?

CC: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-30 12:41:18 -07:00
..
hostfs_kern.c [PATCH] uml: remove empty hostfs_truncate method 2005-09-30 12:41:18 -07:00
hostfs_user.c [PATCH] uml: implement hostfs syncing 2005-07-28 21:46:05 -07:00
hostfs.h [PATCH] remove iattr.ia_attr_flags 2005-09-07 16:57:42 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00