Skip to content

Commit db6c38f

Browse files
committed
fuse: use constants from fuse_abi in SetAttrValidFields
1 parent 2f186bd commit db6c38f

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

src/fs/fuse.rs

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ pub(crate) mod ops {
6363
use alloc::boxed::Box;
6464
use alloc::ffi::CString;
6565

66+
use fuse_abi::linux;
6667
use fuse_abi::linux::*;
6768

6869
use super::Cmd;
@@ -284,18 +285,18 @@ pub(crate) mod ops {
284285
bitflags! {
285286
#[derive(Debug, Copy, Clone, Default)]
286287
pub struct SetAttrValidFields: u32 {
287-
const FATTR_MODE = 1 << 0;
288-
const FATTR_UID = 1 << 1;
289-
const FATTR_GID = 1 << 2;
290-
const FATTR_SIZE = 1 << 3;
291-
const FATTR_ATIME = 1 << 4;
292-
const FATTR_MTIME = 1 << 5;
293-
const FATTR_FH = 1 << 6;
294-
const FATTR_ATIME_NOW = 1 << 7;
295-
const FATTR_MTIME_NOW = 1 << 8;
296-
const FATTR_LOCKOWNER = 1 << 9;
297-
const FATTR_CTIME = 1 << 10;
298-
const FATTR_KILL_SUIDGID = 1 << 11;
288+
const FATTR_MODE = linux::FATTR_MODE;
289+
const FATTR_UID = linux::FATTR_UID;
290+
const FATTR_GID = linux::FATTR_GID;
291+
const FATTR_SIZE = linux::FATTR_SIZE;
292+
const FATTR_ATIME = linux::FATTR_ATIME;
293+
const FATTR_MTIME = linux::FATTR_MTIME;
294+
const FATTR_FH = linux::FATTR_FH;
295+
const FATTR_ATIME_NOW = linux::FATTR_ATIME_NOW;
296+
const FATTR_MTIME_NOW = linux::FATTR_MTIME_NOW;
297+
const FATTR_LOCKOWNER = linux::FATTR_LOCKOWNER;
298+
const FATTR_CTIME = linux::FATTR_CTIME;
299+
const FATTR_KILL_SUIDGID = linux::FATTR_KILL_SUIDGID;
299300
}
300301
}
301302

0 commit comments

Comments
 (0)