From: Karel Zak <kzak@redhat.com>
To: Stanislav Brabec <sbrabec@suse.cz>
Cc: util-linux@vger.kernel.org
Subject: Re: mount: "nofail" and already mounted devices?
Date: Thu, 9 Jan 2014 17:21:18 +0100 [thread overview]
Message-ID: <20140109162118.GE7516@x2.net.home> (raw)
In-Reply-To: <1389282714.8841.109.camel@oct.suse.cz>
On Thu, Jan 09, 2014 at 04:51:54PM +0100, Stanislav Brabec wrote:
> Karel Zak wrote:
> The new behavior could simplify common situation and also prevent a
> race:
> if the device is not yet mounted
> mount it
> do the work
It would be enough to add extra return code for EBUSY (which is
probably a good idea for all scenarios).
> > > - Make possible to use "-a" with further arguments.
> >
> > mount -a /foo /bar [...]
> >
> > Right?
>
> Well, it sounds interesting as well, but I was thinking about
> (conflicting):
> mount -a /dev/device /mountpoint
It's new feature, so we can be pretty strict about it
mount -a [<mountpoint> ..]
and do not support "mount -a <source> <target>". If you need
something more advanced then you have to compose a script.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
prev parent reply other threads:[~2014-01-09 16:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-08 17:55 mount: "nofail" and already mounted devices? Stanislav Brabec
2014-01-09 10:02 ` Karel Zak
2014-01-09 15:51 ` Stanislav Brabec
2014-01-09 16:21 ` Karel Zak [this message]
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=20140109162118.GE7516@x2.net.home \
--to=kzak@redhat.com \
--cc=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