Skip to content

Commit 1a83f60

Browse files
committed
Prepare for publishing v0.9.3
Changes: 1) relax dependency constraints 2) refine documentation of FileVolatileSlice Signed-off-by: Jiang Liu <[email protected]>
1 parent 98f59b6 commit 1a83f60

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fuse-backend-rs"
3-
version = "0.9.2"
3+
version = "0.9.3"
44
keywords = ["fuse", "virtio", "virtio-fs", "vhost-user-fs"]
55
categories = ["filesystem", "os::linux-apis"]
66
description = "A rust library for Fuse(filesystem in userspace) servers and virtio-fs devices"
@@ -18,17 +18,17 @@ homepage = "https://github.com/cloud-hypervisor/"
1818
[dependencies]
1919
arc-swap = ">=0.4.6"
2020
#async-trait = { version = "0.1.42", optional = true }
21-
bitflags = ">=1.1.0"
21+
bitflags = "1.1"
2222
#futures = { version = "0.3", optional = true }
2323
#iou = { version = "0.3.3", optional = true }
24-
libc = ">=0.2.68"
25-
log = ">=0.4.6"
26-
nix = "0.23.1"
24+
libc = "0.2.68"
25+
log = "0.4.6"
26+
nix = "0.23"
2727
lazy_static = "1.4"
2828
#ringbahn = { version = "0.0.0-experimental.3", optional = true }
29-
vmm-sys-util = { version = ">=0.9", optional = true }
29+
vmm-sys-util = { version = "0.9", optional = true }
3030
vm-memory = { version = "0.7", features = ["backend-mmap"] }
31-
virtio-queue = { version = "0.1.0", optional = true }
31+
virtio-queue = { version = "0.1", optional = true }
3232
vhost = { version = "0.3", features = ["vhost-user-slave"], optional = true }
3333
mio = { version = "0.8", features = ["os-poll", "os-ext"]}
3434

@@ -37,12 +37,12 @@ core-foundation-sys = { version = "0.2.3", optional = true }
3737
diskarbitration-sys = { version = "0.0.4", optional = true }
3838

3939
[target.'cfg(target_os = "linux")'.dependencies]
40-
caps = { version = "0.5.1", optional = true }
40+
caps = { version = "0.3", optional = true }
4141

4242
[dev-dependencies]
43-
futures = { version = "0.3.0", features = ["thread-pool"]}
44-
stderrlog = ">=0.5.0"
45-
vmm-sys-util = ">=0.9.0"
43+
futures = { version = "0.3", features = ["thread-pool"]}
44+
stderrlog = "0.5"
45+
vmm-sys-util = "0.9"
4646
vm-memory = { version = "0.7", features = ["backend-mmap", "backend-bitmap"] }
4747

4848
[features]

src/passthrough/mod.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,12 +1083,16 @@ impl Drop for CapFsetid {
10831083

10841084
fn drop_cap_fsetid() -> io::Result<Option<CapFsetid>> {
10851085
if !caps::has_cap(None, caps::CapSet::Effective, caps::Capability::CAP_FSETID)
1086-
.map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))?
1086+
.map_err(|_e| io::Error::new(io::ErrorKind::PermissionDenied, "no CAP_FSETID capability"))?
10871087
{
10881088
return Ok(None);
10891089
}
1090-
caps::drop(None, caps::CapSet::Effective, caps::Capability::CAP_FSETID)
1091-
.map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))?;
1090+
caps::drop(None, caps::CapSet::Effective, caps::Capability::CAP_FSETID).map_err(|_e| {
1091+
io::Error::new(
1092+
io::ErrorKind::PermissionDenied,
1093+
"failed to drop CAP_FSETID capability",
1094+
)
1095+
})?;
10921096
Ok(Some(CapFsetid {}))
10931097
}
10941098

0 commit comments

Comments
 (0)