public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] pull: couple corrections and bash completion fixes
@ 2014-10-26 22:07 Sami Kerola
  2014-10-26 22:07 ` [PATCH 1/4] sfdisk: return deterministic value from sfdisk_deinit() Sami Kerola
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Sami Kerola @ 2014-10-26 22:07 UTC (permalink / raw)
  To: util-linux; +Cc: kerolasa

Hello,

Weekends are too short.  When I were checking the bash completion for
swapoff works as expected I found the completion part works, but the
command does not, so the commit message is a little misleading; swap
files still cannot be turned off using uuids or labels.

# swapon --show=name,uuid,label
NAME                           UUID                                 LABEL
/dev/sda2                      37156738-8821-45cf-b3c2-4b884d58f08c foobar
/home/src/util-linux/test-swap bf6237f4-db89-4761-a1a3-275cfc68b114 xyzzy

# 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.

----------------------------------------------------------------
The following changes since commit 819d9a2975de6869f2ae12d551881bb9b732f2e4:

  include/debug: fix typo (2014-10-24 11:19:23 +0200)

are available in the git repository at:

  git://github.com/kerolasa/lelux-utiliteetit.git 2014wk42

for you to fetch changes up to 1502d7e71f3385f3e358dd26cd22c4cd3eb7b35e:

  bash-completion: use swapon label and uuid listing support (2014-10-26 21:09:24 +0000)
----------------------------------------------------------------
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

 bash-completion/addpart    |  4 +---
 bash-completion/blkdiscard |  4 +---
 bash-completion/blkid      |  6 +-----
 bash-completion/blockdev   |  2 +-
 bash-completion/cfdisk     |  6 +-----
 bash-completion/delpart    |  6 +-----
 bash-completion/fdisk      | 12 ++----------
 bash-completion/fsck       |  3 +--
 bash-completion/fsck.minix |  3 +--
 bash-completion/lsblk      |  3 +--
 bash-completion/mkfs       |  3 +--
 bash-completion/mkfs.bfs   |  3 +--
 bash-completion/mkfs.minix |  3 +--
 bash-completion/partx      |  6 +-----
 bash-completion/resizepart |  6 +-----
 bash-completion/sfdisk     |  6 +-----
 bash-completion/swapoff    | 22 +++-------------------
 bash-completion/swapon     |  2 +-
 bash-completion/wipefs     |  4 +---
 disk-utils/sfdisk.c        |  3 +--
 sys-utils/fstrim.c         |  2 +-
 21 files changed, 24 insertions(+), 85 deletions(-)

-- 
2.1.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-10-31  9:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-26 22:07 [PATCH 0/4] pull: couple corrections and bash completion fixes Sami Kerola
2014-10-26 22:07 ` [PATCH 1/4] sfdisk: return deterministic value from sfdisk_deinit() Sami Kerola
2014-10-26 22:07 ` [PATCH 2/4] fstrim: initialize path variable Sami Kerola
2014-10-26 22:07 ` [PATCH 3/4] bash-completion: stop being clever when listing block devices Sami Kerola
2014-10-26 22:07 ` [PATCH 4/4] bash-completion: use swapon label and uuid listing support Sami Kerola
2014-10-31  9:47 ` [PATCH 0/4] pull: couple corrections and bash completion fixes Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox