Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
Lustre 2.3.0, Lustre 2.4.0
-
4403
Description
some distros (like Fedora 16) link /etc/mtab to /proc/mounts. In such distros, mount.lustre cannot update mtab otherwise we false alarm user with errors.
Attachments
Issue Links
- is duplicated by
-
LU-2168 mount.lustre: addmntent: Invalid argument:
-
- Resolved
-
Would add that this patch doesn't work on recent fedora as systemd creates /etc/mtab as a symlink to ../proc/self/mounts which doesn't match the check for it starting with /proc/.
$ readlink /etc/mtab
../proc/self/mounts
A simple hack would be to switch to strstr to see if the symlink contains /proc/ anywhere in it or, to be 100% correct, use realpath to fully get the canonical absolute path.
$ realpath /etc/mtab
/proc/19506/mounts
Cheers! -Tyson