Bug 1378100 - fix swapon discard option parsing
Summary: fix swapon discard option parsing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: util-linux
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Karel Zak
QA Contact: Radka Brychtova
URL:
Whiteboard:
Depends On:
Blocks: 1380361
TreeView+ depends on / blocked
 
Reported: 2016-09-21 13:33 UTC by Karel Zak
Modified: 2017-08-01 21:41 UTC (History)
3 users (show)

Fixed In Version: util-linux-2.23.2-36.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 21:41:11 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2186 0 normal SHIPPED_LIVE util-linux bug fix and enhancement update 2017-08-01 18:41:36 UTC

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


Note You need to log in before you can comment on or make changes to this bug.