mirror of
https://git.proxmox.com/git/proxmox
synced 2025-11-02 20:52:56 +00:00
sys: derive Clone and Debug for mount_info::Entry and MountInfo
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
bd4a6c5b8b
commit
20fe5e1781
@ -84,6 +84,7 @@ impl Tag {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Entry {
|
||||
/// unique identifier of the mount (may be reused after being unmounted)
|
||||
pub id: MountId,
|
||||
@ -163,6 +164,7 @@ impl Entry {
|
||||
|
||||
// TODO: Add some structure to this? Eg. sort by parent/child relation? Make a tree?
|
||||
/// Mount info found in `/proc/PID/mountinfo`.
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct MountInfo {
|
||||
entries: BTreeMap<MountId, Entry>,
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user