mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
5eb903a509
commit
747f31d82c
@@ -134,6 +134,9 @@ const HANDLE_KILLPRIV: u32 = 524_288;
|
|||||||
/// FileSystem supports posix acls.
|
/// FileSystem supports posix acls.
|
||||||
const POSIX_ACL: u32 = 1_048_576;
|
const POSIX_ACL: u32 = 1_048_576;
|
||||||
|
|
||||||
|
/// Reading the device after abort returns ECONNABORTED.
|
||||||
|
const ABORT_ERROR: u32 = 2_097_152;
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
||||||
/// A bitfield passed in as a parameter to and returned from the `init` method of the
|
/// A bitfield passed in as a parameter to and returned from the `init` method of the
|
||||||
/// `FileSystem` trait.
|
/// `FileSystem` trait.
|
||||||
@@ -300,6 +303,12 @@ bitflags! {
|
|||||||
///
|
///
|
||||||
/// This feature is disabled by default.
|
/// This feature is disabled by default.
|
||||||
const POSIX_ACL = POSIX_ACL;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user