1
1
mirror of https://github.com/mgree/ffs.git synced 2024-09-11 11:15:48 +03:00

always autounmount

This commit is contained in:
Michael Greenberg 2021-06-24 10:15:40 -04:00
parent 4aff907523
commit a02d674ae5

View File

@ -33,11 +33,6 @@ fn main() {
.long("debug") .long("debug")
.short("d") .short("d")
) )
.arg(
Arg::with_name("AUTOUNMOUNT")
.help("Automatically unmount the filesystem when the mounting process exits")
.long("autounmount"),
)
.arg( .arg(
Arg::with_name("UID") Arg::with_name("UID")
.help("Sets the user id of the generated filesystem (defaults to current effective user id)") .help("Sets the user id of the generated filesystem (defaults to current effective user id)")
@ -90,7 +85,7 @@ fn main() {
) )
.arg( .arg(
Arg::with_name("NOOUTPUT") Arg::with_name("NOOUTPUT")
.help("Disables output") .help("Disables output of filesystem (normally on stdout)")
.long("no-output") .long("no-output")
.overrides_with("OUTPUT") .overrides_with("OUTPUT")
) )
@ -397,10 +392,10 @@ fn main() {
// DONE PARSING // DONE PARSING
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////
let mut options = vec![MountOption::FSName(format!("{}", config.input))]; let mut options = vec![
if args.is_present("AUTOUNMOUNT") { MountOption::AutoUnmount,
options.push(MountOption::AutoUnmount); MountOption::FSName(format!("{}", config.input)),
} ];
if config.read_only { if config.read_only {
options.push(MountOption::RO); options.push(MountOption::RO);
} }