check_swap
int check_swap(const char *, int);
if (check_swap(pm->diskdev, 0) > 0) {
if (check_swap(pm->diskdev, 1) < 0) {