This patch adds a null fsync() function to the 2.4 kernel module. At
present fsync on a lufs file system returns EINVAL indicating that
the file is special (e.g. pipe or socket) and does not support
synchronization. This causes Emacs to report "Writing file: Invalid
argument, <filename>" when saving a file to a lufs file system.
The opengroup spec states, "It is explicitly intended that a null
implementation is permitted." This is therefore a quick but valid
hack to avoid this problem.
Log in to post a comment.