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]
impl Remount
pub fn new<A: AsRef<Path>>(path: A) -> Remount
[src]
pub fn new<A: AsRef<Path>>(path: A) -> Remount
Create a new Remount operation
By default it doesn't modify any flags. So is basically useless, you should set some flags to make it effective.
pub fn bind(self, flag: bool) -> Remount
[src]
pub fn bind(self, flag: bool) -> Remount
Set bind flag Note: remount readonly doesn't work without MS_BIND flag inside unpriviledged user namespaces
pub fn readonly(self, flag: bool) -> Remount
[src]
pub fn readonly(self, flag: bool) -> Remount
Set readonly flag
pub fn nodev(self, flag: bool) -> Remount
[src]
pub fn nodev(self, flag: bool) -> Remount
Set nodev flag
pub fn noexec(self, flag: bool) -> Remount
[src]
pub fn noexec(self, flag: bool) -> Remount
Set noexec flag
pub fn nosuid(self, flag: bool) -> Remount
[src]
pub fn nosuid(self, flag: bool) -> Remount
Set nosuid flag
pub fn noatime(self, flag: bool) -> Remount
[src]
pub fn noatime(self, flag: bool) -> Remount
Set noatime flag
pub fn nodiratime(self, flag: bool) -> Remount
[src]
pub fn nodiratime(self, flag: bool) -> Remount
Set nodiratime flag
pub fn relatime(self, flag: bool) -> Remount
[src]
pub fn relatime(self, flag: bool) -> Remount
Set relatime flag
pub fn strictatime(self, flag: bool) -> Remount
[src]
pub fn strictatime(self, flag: bool) -> Remount
Set strictatime flag
pub fn dirsync(self, flag: bool) -> Remount
[src]
pub fn dirsync(self, flag: bool) -> Remount
Set dirsync flag
pub fn synchronous(self, flag: bool) -> Remount
[src]
pub fn synchronous(self, flag: bool) -> Remount
Set synchronous flag
pub fn mandlock(self, flag: bool) -> Remount
[src]
pub fn mandlock(self, flag: bool) -> Remount
Set mandlock flag
pub fn bare_remount(self) -> Result<(), OSError>
[src]
pub fn bare_remount(self) -> Result<(), OSError>
Execute a remount
pub fn remount(self) -> Result<(), Error>
[src]
pub fn remount(self) -> Result<(), Error>
Execute a remount and explain the error immediately
Trait Implementations
impl Debug for Remount
[src]
impl Debug for Remount
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Remount
[src]
impl Clone for Remount
fn clone(&self) -> Remount
[src]
fn clone(&self) -> Remount
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Display for Remount
[src]
impl Display for Remount