Whamcloud - gitweb
ext2fs: check if Lustre filesystem is mounted
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 13 Apr 2012 08:16:24 +0000 (02:16 -0600)
committerAndreas Dilger <andreas.dilger@intel.com>
Thu, 25 Apr 2013 07:06:27 +0000 (01:06 -0600)
commitf6ae8af01207d61ba5bf1e734c1749a9febdf592
tree3374c638c249b4b4c91e01984529051ca33220fc
parent3e089bf837ef4ed13dee57629d1b26c2ab1838f9
ext2fs: check if Lustre filesystem is mounted

Add a check to ext2fs_check_mount_point() to loo in /proc/fs/lustre/*
to see if Lustre is mounted, since st_rdev of the mountpoint does not
match st_rdev of the block device itself, which confuses libext2fs.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
lib/ext2fs/ismounted.c