Whamcloud - gitweb
LU-1833 util: don't update mtab if linked to /proc
authorPeng Tao <tao.peng@emc.com>
Wed, 5 Sep 2012 10:36:05 +0000 (18:36 +0800)
committerOleg Drokin <green@whamcloud.com>
Sun, 7 Oct 2012 04:54:20 +0000 (00:54 -0400)
commitf1b513eba1f67e16a0d15da3ad83e07b4572f8de
tree90d08c03af4e3d5865fbc5d95b0de32fc6dae273
parent0fab620a699d839ef497b2ba74f194ac5efb0c71
LU-1833 util: don't update mtab if linked to /proc

Some distros may link /etc/mtab to /proc/mounts, or
/proc/self/mounts.  In such case, we don't need to
update mtab. Otherwise we false alart user with
"
mount.lustre: addmntent: Invalid argument:
"

Signed-off-by: Peng Tao <tao.peng@emc.com>
Change-Id: I2e3e213e4ee3bc177865c4ca7435a7eecd274b46
Reviewed-on: http://review.whamcloud.com/3881
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/mount_utils.c