summaryrefslogtreecommitdiffstats
path: root/sys-utils/swapon-common.h
Commit message (Collapse)AuthorAgeFilesLines
* swapon: split swapon-common.cKarel Zak2014-09-221-0/+25
| | | | | | | | | | | 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>
* swaplabel: move swapon-common to include directorySami Kerola2014-07-281-28/+0Star
| | | | | | | | | | This fixes the following compiler warning. disk-utils/swaplabel.c:175:2: warning: implicit declaration of function 'get_swap_prober' [-Wimplicit-function-declaration] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: share get_swap_prober() with swaplabel to print uuid and labelSami Kerola2014-07-221-0/+2
| | | | | | | | | | | | 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>
* swapon: move generic code to swapon-common.cKarel Zak2012-04-181-0/+26
This will allow to use separate binary for swapon and swapoff. Signed-off-by: Karel Zak <kzak@redhat.com>