public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: Patrick McLean <chutzpah@gentoo.org>
Cc: util-linux@vger.kernel.org
Subject: Re: mount: "nofail" option does not seem to work as expected
Date: Mon, 7 Apr 2014 12:12:58 +0200	[thread overview]
Message-ID: <20140407101258.GG22126@x2.net.home> (raw)
In-Reply-To: <20140324154426.0e5d2781@gentoo.org>

On Mon, Mar 24, 2014 at 03:44:26PM -0700, Patrick McLean wrote:
> First the "nofail" doesn't actually prevent "failure" when using "mount
> -a". If any filesystem fails to mount with mount -a due to the device
> not existing, even if "nofail" is specified in the mount, mount will
> exit with a status of 32. I would expect that "nofail" would imply that
> such failures would cause the exit status to be 0.
> 
> Also, it seems that the "nofail" mount option does not work at all when
> using the tag-style partition identifiers rather than udev symlinks.
> 
> Using this line in fstab:
> UUID=nonexist /mnt/nonexist1 ext4 nofail 0 1
> 
> Will produce an error message:
> # mount -av
> mount: can't find UUID=nonexist
> #
> 
> Where this line:
> /dev/disk/by-uuid/nonexist /mnt/nonexist ext4 nofail 0 1
> 
> Does not produce any error:
> # mount -av

 Excellent catch, thanks!

 Fixed and will be in v2.24.2.

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

      reply	other threads:[~2014-04-07 10:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-24 22:44 mount: "nofail" option does not seem to work as expected Patrick McLean
2014-04-07 10:12 ` 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=20140407101258.GG22126@x2.net.home \
    --to=kzak@redhat.com \
    --cc=chutzpah@gentoo.org \
    --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