We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd09a18 commit 09d53e7Copy full SHA for 09d53e7
src/api/filesystem/overlay.rs
@@ -195,8 +195,8 @@ pub(crate) fn is_chardev(st: stat64) -> bool {
195
pub(crate) fn is_whiteout(st: stat64) -> bool {
196
// A whiteout is created as a character device with 0/0 device number.
197
// See ref: https://docs.kernel.org/filesystems/overlayfs.html#whiteouts-and-opaque-directories
198
- let major = unsafe { libc::major(st.st_rdev) };
199
- let minor = unsafe { libc::minor(st.st_rdev) };
+ let major = libc::major(st.st_rdev);
+ let minor = libc::minor(st.st_rdev);
200
is_chardev(st) && major == 0 && minor == 0
201
}
202
src/api/vfs/sync_io.rs
@@ -306,9 +306,7 @@ impl FileSystem for Vfs {
306
307
match self.get_real_rootfs(inode)? {
308
(Left(fs), idata) => fs.open(ctx, idata.ino(), flags, fuse_flags),
309
- (Right(fs), idata) => fs
310
- .open(ctx, idata.ino(), flags, fuse_flags)
311
- .map(|(h, opt, passthrough)| (h.map(Into::into), opt, passthrough)),
+ (Right(fs), idata) => fs.open(ctx, idata.ino(), flags, fuse_flags),
312
313
314
@@ -522,9 +520,7 @@ impl FileSystem for Vfs {
522
520
523
521
524
(Left(fs), idata) => fs.opendir(ctx, idata.ino(), flags),
525
526
- .opendir(ctx, idata.ino(), flags)
527
- .map(|(h, opt)| (h.map(Into::into), opt)),
+ (Right(fs), idata) => fs.opendir(ctx, idata.ino(), flags),
528
529
530
0 commit comments