diff options
author | Szymon Lukasz | 2017-11-09 21:23:35 +0100 |
---|---|---|
committer | Miklos Szeredi | 2018-03-20 17:11:44 +0100 |
commit | 3b7008b226f3de811d4ac34238e9cf670f7c9fe7 (patch) | |
tree | 5f12afe06b3761c54191e37b03377d8da25b8331 /crypto/crc32_generic.c | |
parent | df0e91d488276086bc07da2e389986cae0048c37 (diff) |
fuse: return -ECONNABORTED on /dev/fuse read after abort
Currently the userspace has no way of knowing whether the fuse
connection ended because of umount or abort via sysfs. It makes it hard
for filesystems to free the mountpoint after abort without worrying
about removing some new mount.
The patch fixes it by returning different errors when userspace reads
from /dev/fuse (-ENODEV for umount and -ECONNABORTED for abort).
Add a new capability flag FUSE_ABORT_ERROR. If set and the connection is
gone because of sysfs abort, reading from the device will return
-ECONNABORTED.
Signed-off-by: Szymon Lukasz <noh4hss@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'crypto/crc32_generic.c')
0 files changed, 0 insertions, 0 deletions