fish: Show device mapper device in tab completion (RHBZ#688062).
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 12 Jul 2011 12:31:42 +0000 (13:31 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 12 Jul 2011 17:44:45 +0000 (18:44 +0100)
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

fish/destpaths.c

index 5ed93ec..3c90517 100644 (file)
@@ -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] == '/') {