Bug 1191627

Summary: [RFE] rlCheckMount should be also capable of checking mount options (ro/rw)
Product: [Fedora] Fedora Reporter: Dalibor Pospíšil <dapospis>
Component: beakerlibAssignee: Martin Kyral <mkyral>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: medium    
Version: rawhideCC: azelinka, dapospis, jprokes, mkyral, ohudlick
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: beakerlib-1.13-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-16 08:47:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1191635    

Description Dalibor Pospíšil 2015-02-11 15:53:20 UTC
Description of problem:
As rlMount is able to mount using various mount options, rlCheckMount should also provide a way how to check the mountpoint is mounted in such specified way. E.g. If I do someting like rlMount -o ro X Y, the check rlCheckMount -o rw Y should return false while rlCheckMount -o ro should return true. Obviously rlCheckMount Y should return true if the mount point is mounted with any options.

Comment 1 Dalibor Pospíšil 2015-02-20 10:08:50 UTC
*** Bug 1194387 has been marked as a duplicate of this bug. ***

Comment 2 Martin Kyral 2016-05-31 14:17:38 UTC
The feature is implemented in commit:

https://git.fedorahosted.org/cgit/beakerlib.git/commit/?h=devel&id=ed6a3069bde2802ba7ad20c6c00ff858f4da104e

Comment 4 Martin Kyral 2016-06-02 13:53:51 UTC
Because rlCheckMount can check for the mount options, rlAssertMount shall be capable of asserting them:

https://git.fedorahosted.org/cgit/beakerlib.git/commit/?h=devel&id=f09f28f25095093d4e6491178588e00af3cf7101