Description of problem: ><fs> list-partitions /dev/vda1 /dev/vda2 /dev/vdb1 /dev/vdc1 /dev/vdd1 /dev/vde1 /dev/vdf1 /dev/vdg1 /dev/vdh1 /dev/vdi1 /dev/vdj1 /dev/vdk1 /dev/vdl1 /dev/vdm1 /dev/vdn1 /dev/vdo1 /dev/vdp1 /dev/vdq1 /dev/vdr1 /dev/vds1 /dev/vdt1 ><fs> glob mkfs ext2 /dev/vd[b-t]1 mkfs should have 2 parameter(s) type 'help mkfs' for help on mkfs Version-Release number of selected component (if applicable): libguestfs 1.5.16 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
glob uses guestfs_glob_expand which only works for paths: http://libguestfs.org/guestfs.3.html#guestfs_glob_expand We should add a glob-expand-device call which can expand device names, then modify the guestfish 'glob' command to use it as necessary.
Patch series posted on the upstream mailing list: https://www.redhat.com/archives/libguestfs/2012-May/msg00004.html
Fixed in 1.17.39.