1. 02 Apr, 2009 2 commits
    • Miklos Szeredi's avatar
      fuse: allow private mappings of "direct_io" files · fc280c96
      Miklos Szeredi authored
      Allow MAP_PRIVATE mmaps of "direct_io" files.  This is necessary for
      execute support.
      
      MAP_SHARED mappings require some sort of coherency between the
      underlying file and the mapping.  With "direct_io" it is difficult to
      provide this, so for the moment just disallow shared (read-write and
      read-only) mappings altogether.
      Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
      fc280c96
    • Miklos Szeredi's avatar
      fuse: allow kernel to access "direct_io" files · f4975c67
      Miklos Szeredi authored
      Allow the kernel read and write on "direct_io" files.  This is
      necessary for nfs export and execute support.
      
      The implementation is simple: if an access from the kernel is
      detected, don't perform get_user_pages(), just use the kernel address
      provided by the requester to copy from/to the userspace filesystem.
      Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
      f4975c67
  2. 01 Apr, 2009 38 commits