genode/repos/os/include/vfs
Norman Feske 2912096f6e vfs: distinguish NO_PERM from NO_ENTRY in unlink
This patch changes the 'Single_file_system' to return NO_PERM only if
the to-be-unlinked file corresponds to the single file. This way, a
<rom> co-mounted with a <ram> file-system does not stand in the way of
unlinking files from the <ram>. The concrete symptom occurred the
following scenario:

  <vfs>
    <dir name="home">
      <ram/>
      <rom name="..."/>
    </dir>
  </vfs>

The following sequence of commands wrongly resulted in "Operation not
permitted":

 $ mkdir -p /home/a/b/c
 $ rm -f /home/a/b/c/d

In this case, rm should not fail (unlink should return ENOENT)

Fixes #3690
2020-03-26 11:38:55 +01:00
..
dir_file_system.h file system: enhanced file status info 2019-11-19 14:23:56 +01:00
directory_service.h file system: enhanced file status info 2019-11-19 14:23:56 +01:00
env.h VFS: Replace global response handlers with local handlers 2019-04-09 12:30:34 +02:00
file_io_service.h vfs: add modification time member to directory_service 2019-11-19 14:17:30 +01:00
file_system_factory.h os: avoid using deprecated APIs 2019-01-30 13:49:54 +01:00
file_system.h Add missing XML header to vfs/file_system.h 2018-07-03 09:39:34 +02:00
print.h VFS: add an error to to the Sync_result enum 2018-08-02 14:36:49 +02:00
readonly_value_file_system.h vfs: watch support for Readonly_value_file_system 2019-11-19 14:42:23 +01:00
simple_env.h VFS: Replace global response handlers with local handlers 2019-04-09 12:30:34 +02:00
single_file_system.h vfs: distinguish NO_PERM from NO_ENTRY in unlink 2020-03-26 11:38:55 +01:00
types.h os: fix Node_rwx::rwx 2020-02-27 14:46:57 +01:00
vfs_handle.h VFS: Replace global response handlers with local handlers 2019-04-09 12:30:34 +02:00