HomeClusterLabs Projects

Med: Strip trailing slashes from device names in /proc/mounts

Description

Med: Strip trailing slashes from device names in /proc/mounts

Entries for CIFS mounts can sometimes contain trailing slashes
in the device field in /proc/mounts.

For example:
$ mount
192.168.122.1/test on /mnt type cifs (rw)
$ grep test /proc/mounts
192.168.122.1/test/ /mnt cifs ...

This patch strips trailing slashes from device names when
reading the contents of /proc/mounts.

Resolves: rhbz#848642
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>

Details

Provenance
Ryan McCabe <rmccabe@redhat.com>Authored on Oct 12 2012, 11:28 PM
Parents
rR5f082fb622cf: Merge pull request #150 from ryan-mccabe/master
Branches
Unknown
Tags
Unknown

Event Timeline