mount: "nofail" and already mounted devices?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx
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

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux