vhost_user_fs: Add the ABORT_ERROR flag

Add the ABORT_ERROR flag, corresponding to FUSE_ABORT_ERROR,
introduced in FUSE 7.27.

Signed-off-by: Sergio Lopez <slp@redhat.com>
This commit is contained in:
Sergio Lopez 2020-03-26 17:20:48 +01:00 committed by Rob Bradford
parent 5eb903a509
commit 747f31d82c

View File

@ -134,6 +134,9 @@ const HANDLE_KILLPRIV: u32 = 524_288;
/// FileSystem supports posix acls.
const POSIX_ACL: u32 = 1_048_576;
/// Reading the device after abort returns ECONNABORTED.
const ABORT_ERROR: u32 = 2_097_152;
bitflags! {
/// A bitfield passed in as a parameter to and returned from the `init` method of the
/// `FileSystem` trait.
@ -300,6 +303,12 @@ bitflags! {
///
/// This feature is disabled by default.
const POSIX_ACL = POSIX_ACL;
/// Indicates that if the connection is gone because of sysfs abort, reading from the device
/// will return -ECONNABORTED.
///
/// This feature is not currently supported.
const ABORT_ERROR = ABORT_ERROR;
}
}