public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Patrick McLean <chutzpah@gentoo.org>
To: util-linux@vger.kernel.org
Subject: mount: "nofail" option does not seem to work as expected
Date: Mon, 24 Mar 2014 15:44:26 -0700	[thread overview]
Message-ID: <20140324154426.0e5d2781@gentoo.org> (raw)

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
#

             reply	other threads:[~2014-03-24 22:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-24 22:44 Patrick McLean [this message]
2014-04-07 10:12 ` mount: "nofail" option does not seem to work as expected 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=20140324154426.0e5d2781@gentoo.org \
    --to=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