]> git.ipfire.org Git - thirdparty/util-linux.git/commit
swapon: split swapon-common.c
authorKarel Zak <kzak@redhat.com>
Mon, 22 Sep 2014 11:16:25 +0000 (13:16 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 22 Sep 2014 11:16:25 +0000 (13:16 +0200)
commit18b3e5495b2bd1d89286f452d1d2952e065dfecd
tree008f4099b0814ad1e7408b7de6572fcc804031f8
parent5ec85227ad3a8e9a8a0ddb1de8bdda30d2abea2f
swapon: split swapon-common.c

 swapon    - requires libmount and libblkid
 swapoff   - requires libmount
 swaplabel - requires libblkid

This patch add lib/swapprober.c with blkid stuff for swap. It allows
to use and link libblkid only when necessary.

Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/Makemodule.am
disk-utils/swaplabel.c
include/Makemodule.am
include/swapprober.h [new file with mode: 0644]
lib/swapprober.c [new file with mode: 0644]
sys-utils/Makemodule.am
sys-utils/swapon-common.c
sys-utils/swapon-common.h [moved from include/swapon-common.h with 90% similarity]
sys-utils/swapon.c