Bug 1378100

Summary: fix swapon discard option parsing
Product: Red Hat Enterprise Linux 7 Reporter: Karel Zak <kzak>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED ERRATA QA Contact: Radka Brychtova <rskvaril>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.4CC: bblaskov, kzak, rskvaril
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: util-linux-2.23.2-36.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 21:41:11 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: 1380361    

Description Karel Zak 2016-09-21 13:33:35 UTC
Description of problem:

The current swapon code does not work as expected if the options string contains anything else behind "discard=<flag>", for example

  discard=pages,pri=1

enables discard, but does not set "pages" flag. For more details see upstream commit message:

https://github.com/karelzak/util-linux/commit/07332bfa1ec122a251194a62f91319841121d5aa

... yeah, brown-paper-bag bug.

Comment 9 errata-xmlrpc 2017-08-01 21:41:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2186