From: Stanislav Brabec <sbrabec@suse.cz>
To: util-linux@vger.kernel.org
Subject: mount: "nofail" and already mounted devices?
Date: Wed, 08 Jan 2014 18:55:41 +0100 [thread overview]
Message-ID: <1389203741.8841.31.camel@oct.suse.cz> (raw)
Attempting to mount of already mounted devices is a common situation in
many scripts. There is no easy way to detect it in the current mount
implementation.
One of our users complains that this situation is not covered by
"nofail" mount option. ("nofail" does exactly what the documentation
describes and nothing more.)
Would be acceptable a patch that adds "already mounted" to "nofail"?
If not, what would be the best way of enabling this feature for mounting
a single device? (It already exists in mount, but it is usable only with
"mount -a".)
- Add another mount option, e. g. mountednofail or mountedok
- Make possible to use "-a" with further arguments.
- Add new option, e. g. "-A".
and/or
- New result code, e. g. 33 instead of 32. (As it can not suppress the
error message, it is well usable only as an addition to above.)
--
Best Regards / S pozdravem,
Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: sbrabec@suse.cz
Lihovarská 1060/12 tel: +49 911 7405384547
190 00 Praha 9 fax: +420 284 084 001
Czech Republic http://www.suse.cz/
PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76
next reply other threads:[~2014-01-08 17:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-08 17:55 Stanislav Brabec [this message]
2014-01-09 10:02 ` mount: "nofail" and already mounted devices? Karel Zak
2014-01-09 15:51 ` Stanislav Brabec
2014-01-09 16:21 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1389203741.8841.31.camel@oct.suse.cz \
--to=sbrabec@suse.cz \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox