]> git.ipfire.org Git - thirdparty/util-linux.git/commit
swapoff: swapoff swap files by LABEL and UUID
authorKarel Zak <kzak@redhat.com>
Fri, 7 Nov 2014 11:08:11 +0000 (12:08 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 7 Nov 2014 11:08:11 +0000 (12:08 +0100)
commit52f2fd9bcc9bbc2a0234114f11870d943de76652
tree689eb0c96752dd9dc70612455c8db1d11d3717b8
parentc747564764e612cbdd225701e67f0516fa3c66d4
swapoff: swapoff swap files by LABEL and UUID

 # swapon --show=NAME,UUID
 NAME                   UUID
 /dev/sda3              8d52fca3-bf48-41d6-b826-2315e518a305
 /home/fs-images/2g.img 6fa72b96-b802-441f-a31c-091d65c0212c

 # swapoff UUID=6fa72b96-b802-441f-a31c-091d65c0212c
 swapoff: cannot find the device for UUID=6fa72b96-b802-441f-a31c-091d65c0212c

Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/Makemodule.am
sys-utils/swapoff.c