]> git.ipfire.org Git - thirdparty/util-linux.git/commit
zramctl: make mm_stat parser more robust
authorKarel Zak <kzak@redhat.com>
Thu, 30 Mar 2017 10:10:01 +0000 (12:10 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 30 Mar 2017 10:10:01 +0000 (12:10 +0200)
commit2546d54bd8b0ceac75d6d7e6c483479022d97509
tree4a7813ccc9f9e512c985018a9b5a696193b12953
parent9ff67eb9c88298f5e47007c56724aa102a1623ac
zramctl: make mm_stat parser more robust

Let's fallback to attribute files if mm_stat file is incomplete. It
should not happen, but I have seen RHEL7 kernel where is no
num_migrated/pages_compacted attribute...

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/zramctl.c