]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't include the file system ID in the output of `mount -v' if it
authorIan Dowse <iedowse@FreeBSD.org>
Fri, 5 Dec 2003 09:36:56 +0000 (09:36 +0000)
committerIan Dowse <iedowse@FreeBSD.org>
Fri, 5 Dec 2003 09:36:56 +0000 (09:36 +0000)
commit05779418cd12f1edec6fd65c49cd1ef94592e679
tree3c31e6609e99d96dc8b6d4578f3129a4d9ffc00a
parent85b366ad69d301de23ec0c6823dce9c3e525b60d
Don't include the file system ID in the output of `mount -v' if it
is all zeros. The kernel now consistently zeroes FSIDs for non-root
users, so there's no point in printing these.

Also fix a number of compiler warnings, including two real bugs:
- a bracket placement bug caused `mount -t ufs localhost:/foo /mnt'
  to override the `-t ufs' specification and use mount_nfs.
- an unitialised variable was used instead of _PATH_SYSPATH when
  warning that the mount_* program cound not be found.

Submitted by: Rudolf Cejka <cejkar@fit.vutbr.cz> (FSID part)
Approved by: re (scottl)
sbin/mount/mount.c