#11 Patches problem with Emacs saving (fsync problem)

closed-accepted
nobody
None
5
2003-05-29
2003-04-22
James Marsh
No

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.

See also:
http://www.moses.uklinux.net/patches/lki-3.html#ss3.4
http://www.opengroup.org/onlinepubs/007904975/functions/fsync.html

Discussion

  • Florin Malita

    Florin Malita - 2003-05-29

    Logged In: YES
    user_id=154306

    applied, thanks!

     
  • Florin Malita

    Florin Malita - 2003-05-29
    • status: open --> closed-accepted
     

Log in to post a comment.