This commit is contained in:
sxyazi 2025-09-17 08:29:22 +08:00
parent f734147120
commit d51b2ded11
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ pub struct Cha {
pub btime: Option<SystemTime>,
pub ctime: Option<SystemTime>,
pub mtime: Option<SystemTime>,
pub dev: libc::dev_t,
pub dev: u64,
pub uid: u32,
pub gid: u32,
pub nlink: u64,

View file

@ -5,7 +5,7 @@ pub struct Partition {
pub src: OsString,
pub dist: Option<PathBuf>,
#[cfg(unix)]
pub rdev: Option<libc::dev_t>,
pub rdev: Option<u64>,
pub label: Option<OsString>,
pub fstype: Option<OsString>,
pub capacity: u64,

View file

@ -27,7 +27,7 @@ impl Deref for Partitions {
impl Partitions {
#[cfg(unix)]
pub fn by_dev(&self, dev: libc::dev_t) -> Option<&Partition> {
pub fn by_dev(&self, dev: u64) -> Option<&Partition> {
self.inner.iter().find(|p| p.rdev == Some(dev))
}