mirror of
https://github.com/mgree/ffs.git
synced 2024-08-16 14:50:35 +03:00
always autounmount
This commit is contained in:
parent
4aff907523
commit
a02d674ae5
15
src/main.rs
15
src/main.rs
@ -33,11 +33,6 @@ fn main() {
|
||||
.long("debug")
|
||||
.short("d")
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("AUTOUNMOUNT")
|
||||
.help("Automatically unmount the filesystem when the mounting process exits")
|
||||
.long("autounmount"),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("UID")
|
||||
.help("Sets the user id of the generated filesystem (defaults to current effective user id)")
|
||||
@ -90,7 +85,7 @@ fn main() {
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("NOOUTPUT")
|
||||
.help("Disables output")
|
||||
.help("Disables output of filesystem (normally on stdout)")
|
||||
.long("no-output")
|
||||
.overrides_with("OUTPUT")
|
||||
)
|
||||
@ -397,10 +392,10 @@ fn main() {
|
||||
// DONE PARSING
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
let mut options = vec![MountOption::FSName(format!("{}", config.input))];
|
||||
if args.is_present("AUTOUNMOUNT") {
|
||||
options.push(MountOption::AutoUnmount);
|
||||
}
|
||||
let mut options = vec![
|
||||
MountOption::AutoUnmount,
|
||||
MountOption::FSName(format!("{}", config.input)),
|
||||
];
|
||||
if config.read_only {
|
||||
options.push(MountOption::RO);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user