Struct libmount::Remount
[−]
[src]
pub struct Remount { /* fields omitted */ }
A remount definition
Usually it is used to change mount flags for a mounted filesystem. Especially to make a readonly filesystem writable or vice versa.
Methods
impl Remount
[src]
fn new<A: AsRef<Path>>(path: A) -> Remount
fn bind(self, flag: bool) -> Remount
Set bind flag Note: remount readonly doesn't work without MS_BIND flag inside unpriviledged user namespaces
fn readonly(self, flag: bool) -> Remount
Set readonly flag
fn nodev(self, flag: bool) -> Remount
Set nodev flag
fn noexec(self, flag: bool) -> Remount
Set noexec flag
fn nosuid(self, flag: bool) -> Remount
Set nosuid flag
fn noatime(self, flag: bool) -> Remount
Set noatime flag
fn nodiratime(self, flag: bool) -> Remount
Set nodiratime flag
fn relatime(self, flag: bool) -> Remount
Set relatime flag
fn strictatime(self, flag: bool) -> Remount
Set strictatime flag
fn dirsync(self, flag: bool) -> Remount
Set dirsync flag
fn synchronous(self, flag: bool) -> Remount
Set synchronous flag
fn mandlock(self, flag: bool) -> Remount
Set mandlock flag
fn bare_remount(self) -> Result<(), OSError>
Execute a remount
fn remount(self) -> Result<(), Error>
Execute a remount and explain the error immediately
Trait Implementations
impl Debug for Remount
[src]
impl Clone for Remount
[src]
fn clone(&self) -> Remount
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more