Change MountPoint fields to using c_ulong since that's what libmount uses

This commit is contained in:
Michael Zhang 2021-12-10 16:06:13 -06:00
parent 2c05d22434
commit dbb3eaec91
Signed by: michael
GPG key ID: BDA47A31A3C8EE6B

View file

@ -5,16 +5,17 @@ use std::io::Read;
use std::path::{Path, PathBuf};
use libmount::mountinfo::Parser;
use libc::c_ulong;
use crate::errors::Error;
use crate::utils;
#[derive(Debug)]
pub struct MountPoint {
pub mount_id: u64,
pub parent_id: u64,
pub major: u64,
pub minor: u64,
pub mount_id: c_ulong,
pub parent_id: c_ulong,
pub major: c_ulong,
pub minor: c_ulong,
pub root: PathBuf,
pub mount_point: PathBuf,
}