]> git.ipfire.org Git - thirdparty/util-linux.git/commit
swapon: share get_swap_prober() with swaplabel to print uuid and label
authorSami Kerola <kerolasa@iki.fi>
Tue, 1 Jul 2014 20:40:04 +0000 (21:40 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 22 Jul 2014 10:17:20 +0000 (12:17 +0200)
commit5db57cfc469b45ada0162a64d627ce25a3d2431f
tree23d67c74e1555511670244087243e5d8faf86a2e
parentbd86cb1679a3faf7e901d845ff79f57f8b809703
swapon: share get_swap_prober() with swaplabel to print uuid and label

The swapon(8) listing was almost complete, apart from label and uuid.
This change moves the code from swaplabel(8) to shared scope to be used
for printouts in other swap commands, such as swapon.

Adding this feature to lsblk(8) was a consideration, but lsblk is not
interested of swapfiles, so the swapon seems like a better option to add
this information.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
disk-utils/Makemodule.am
disk-utils/swaplabel.c
sys-utils/Makemodule.am
sys-utils/swapon-common.c
sys-utils/swapon-common.h
sys-utils/swapon.c