Skip to content

Commit bd064dd

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

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/fs/fuse.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub(crate) mod ops {
6262
#![allow(clippy::type_complexity)]
6363
use alloc::boxed::Box;
6464
use alloc::ffi::CString;
65-
65+
use fuse_abi::linux;
6666
use fuse_abi::linux::*;
6767

6868
use super::Cmd;
@@ -284,18 +284,18 @@ pub(crate) mod ops {
284284
bitflags! {
285285
#[derive(Debug, Copy, Clone, Default)]
286286
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;
287+
const FATTR_MODE = linux::FATTR_MODE;
288+
const FATTR_UID = linux::FATTR_UID;
289+
const FATTR_GID = linux::FATTR_GID;
290+
const FATTR_SIZE = linux::FATTR_SIZE;
291+
const FATTR_ATIME = linux::FATTR_ATIME;
292+
const FATTR_MTIME = linux::FATTR_MTIME;
293+
const FATTR_FH = linux::FATTR_FH;
294+
const FATTR_ATIME_NOW = linux::FATTR_ATIME_NOW;
295+
const FATTR_MTIME_NOW = linux::FATTR_MTIME_NOW;
296+
const FATTR_LOCKOWNER = linux::FATTR_LOCKOWNER;
297+
const FATTR_CTIME = linux::FATTR_CTIME;
298+
const FATTR_KILL_SUIDGID = linux::FATTR_KILL_SUIDGID;
299299
}
300300
}
301301

0 commit comments

Comments
 (0)