mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
f734147120
commit
d51b2ded11
3 changed files with 3 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ pub struct Cha {
|
||||||
pub btime: Option<SystemTime>,
|
pub btime: Option<SystemTime>,
|
||||||
pub ctime: Option<SystemTime>,
|
pub ctime: Option<SystemTime>,
|
||||||
pub mtime: Option<SystemTime>,
|
pub mtime: Option<SystemTime>,
|
||||||
pub dev: libc::dev_t,
|
pub dev: u64,
|
||||||
pub uid: u32,
|
pub uid: u32,
|
||||||
pub gid: u32,
|
pub gid: u32,
|
||||||
pub nlink: u64,
|
pub nlink: u64,
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ pub struct Partition {
|
||||||
pub src: OsString,
|
pub src: OsString,
|
||||||
pub dist: Option<PathBuf>,
|
pub dist: Option<PathBuf>,
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
pub rdev: Option<libc::dev_t>,
|
pub rdev: Option<u64>,
|
||||||
pub label: Option<OsString>,
|
pub label: Option<OsString>,
|
||||||
pub fstype: Option<OsString>,
|
pub fstype: Option<OsString>,
|
||||||
pub capacity: u64,
|
pub capacity: u64,
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ impl Deref for Partitions {
|
||||||
|
|
||||||
impl Partitions {
|
impl Partitions {
|
||||||
#[cfg(unix)]
|
#[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))
|
self.inner.iter().find(|p| p.rdev == Some(dev))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue