util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mount (new): Using -a, exits with 64.
@ 2012-01-19 20:52 Gerardo Exequiel Pozzi
  2012-01-19 23:17 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Gerardo Exequiel Pozzi @ 2012-01-19 20:52 UTC (permalink / raw)
  To: util-linux

Hello

Using new mount, when run with -a and some mounting is performed, mount 
retuns 64 instead of 0.

Example:

# mkdir /mnt/coco
# echo "coco /mnt/coco tmpfs defaults 0 0" >> /etc/fstab
# mount -a ; echo $?
64
# mount | tail -1
coco on /mnt/coco type tmpfs (rw,relatime)
# umount  /mnt/coco
# mount /mnt/coco ; echo $?
0
# mount --version
mount from util-linux 2.21-rc1 (libmount 2.21.0)

-- 
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mount (new): Using -a, exits with 64.
  2012-01-19 20:52 mount (new): Using -a, exits with 64 Gerardo Exequiel Pozzi
@ 2012-01-19 23:17 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2012-01-19 23:17 UTC (permalink / raw)
  To: Gerardo Exequiel Pozzi; +Cc: util-linux

On Thu, Jan 19, 2012 at 05:52:07PM -0300, Gerardo Exequiel Pozzi wrote:
> Using new mount, when run with -a and some mounting is performed, mount
> retuns 64 instead of 0.

Ah.. I know that umount exit codes and error messages are not ready,
but I forgot to check mount -a, so thanks. I will add this to my TODO
list for -rc2.

> # mkdir /mnt/coco
> # echo "coco /mnt/coco tmpfs defaults 0 0" >> /etc/fstab
> # mount -a ; echo $?
> 64

Anyway, this seems correct, man mount:

    64     some mount succeeded

this used by mount -a.

    Karel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-19 23:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-19 20:52 mount (new): Using -a, exits with 64 Gerardo Exequiel Pozzi
2012-01-19 23:17 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).