summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-07-12 13:31:42 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-07-12 18:44:45 +0100
commit4d4d3b2498be9dc8ab7e5f16928ac8f1874c2a58 (patch)
tree2acd0f8cd467b27ba00770c30cf0ae1f58ec254a
parentce5a8978b54f409de4347f16f7065b063cb47cf1 (diff)
downloadlibguestfs-4d4d3b2498be9dc8ab7e5f16928ac8f1874c2a58.tar.gz
libguestfs-4d4d3b2498be9dc8ab7e5f16928ac8f1874c2a58.tar.xz
libguestfs-4d4d3b2498be9dc8ab7e5f16928ac8f1874c2a58.zip
fish: Show device mapper device in tab completion (RHBZ#688062).
With this change: ><fs> luks-open /dev/vda1 lukstest Enter key or passphrase ("key"): ><fs> ll /dev/<TAB> /dev/mapper/lukstest /dev/vda /dev/vda1
-rw-r--r--fish/destpaths.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fish/destpaths.c b/fish/destpaths.c
index 5ed93ec7..3c905173 100644
--- a/fish/destpaths.c
+++ b/fish/destpaths.c
@@ -155,6 +155,9 @@ complete_dest_paths_generator (const char *text, int state)
strs = guestfs_lvs (g);
APPEND_STRS_AND_FREE;
+
+ strs = guestfs_list_dm_devices (g);
+ APPEND_STRS_AND_FREE;
}
if (len < 1 || text[0] == '/') {