Closed rhvgoyal closed 7 years ago
@rhatdan PTAL
LGTM
@rhatdan I think --target has some problems on rhel. It lists a mount point even if --target does not match. So we can't rely on --mountpoint or --target options in rhel.
For example,
[root@vm6-rhel7 ~]# findmnt --source /dev/mapper/rhel-home --target /home1 -n /home /dev/mapper/rhel-home xfs rw,relatime,seclabel,attr2,inode64,noquota
Above --target is home1 which does not match home still findmnt lists the mountpoint. In fedora that does not happen. So it is a bug in findmnt I think.
I guess that must have been the reason we did not use --target to begin with in original implementation.
LGTM
@rh-atomic-bot r+ 337ae8b
:hourglass: Testing commit 337ae8b with merge 3729c68...
:sunny: Test successful - status-redhatci Approved by: rhvgoyal Pushing 3729c68096446cd9c3c3f845d78f81e89677ce79 to master...
Old findmnt utility (on rhel/centos) does not support new option --mountpoint and tests fail there.
Signed-off-by: Vivek Goyal vgoyal@redhat.com