Skip to contentSkip to conversation

mount (new): Using -a, exits with 64.

DISCUSSION Gerardo Exequiel Pozzi 2 participants 2 messages Jan 19, 2012 Util-Linux package

lore
Share & tools
lore
#0 lore raw

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)
Signature · 2 lines
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1
maintainer
#1 lore raw
Quoted 2 lines · Gerardo Exequiel Pozzi

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.

Quoted 4 lines
# 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

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com