• Szymon Lukasz's avatar
    fuse: return -ECONNABORTED on /dev/fuse read after abort · 3b7008b2
    Szymon Lukasz authored
    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
    Signed-off-by: default avatarSzymon Lukasz <noh4hss@gmail.com>
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
fuse_i.h 23.3 KB