On Sun, Oct 26, 2014 at 10:07:05PM +0000, Sami Kerola wrote: > # swapoff -U bf6237f4-db89-4761-a1a3-275cfc68b114 > swapoff: cannot find the device for bf6237f4-db89-4761-a1a3-275cfc68b114 > # swapoff -L xyzzy > swapoff: cannot find the device for xyzzy > > The problem seems to come from swapoff.c function do_swapoff() call to > mnt_resolve_spec() that performs uuid and label matching only against > block devices. Unfortunately this was as far I got with an attempt to > fix the issue. Either someone else is quicker with the fix, or I'll have > a look of this sometime after next 5 days. Hmm... that's necessary to add fallback to swapoff if mnt_resolve_spec() returns nothing and probe by libblkid all S_ISREG() sources from get_swaps(). > Sami Kerola (4): > sfdisk: return deterministic value from sfdisk_deinit() > fstrim: initialize path variable > bash-completion: stop being clever when listing block devices > bash-completion: use swapon label and uuid listing support All applied, thanks. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html