linux/fs/hostfs
Richard Weinberger 4c6dcafc69 hostfs: Allow fsync on directories
Historically hostfs did not open directories on the host filesystem
for performance and memory reasons.
But it turned out that this optimization has a drawback.
Calling fsync() on a hostfs directory returns immediately
with -EINVAL as fsync is not implemented.
While this is behavior is strictly speaking correct common userspace
like dpkg(1) stumbles over that and makes it impossible to use
hostfs as root filesystem.
The fix is easy, wire up the existing host open/fsync functions
to the directory file operations.

Reported-by: Daniel Gröber <dxld@darkboxed.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
2015-03-26 23:27:48 +01:00
..
hostfs_kern.c hostfs: Allow fsync on directories 2015-03-26 23:27:48 +01:00
hostfs_user.c hostfs: support rename flags 2014-08-07 14:40:09 -04:00
hostfs.h hostfs: support rename flags 2014-08-07 14:40:09 -04:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00