Bug 635971

Summary: glob mkfs ext2 /dev/vd[b-t]1 does not expand
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: mbooth, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-03 15:48:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2010-09-21 08:09:54 UTC
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:

Comment 1 Richard W.M. Jones 2010-09-21 08:45:18 UTC
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.

Comment 2 Richard W.M. Jones 2012-05-02 15:40:47 UTC
Patch series posted on the upstream mailing list:
https://www.redhat.com/archives/libguestfs/2012-May/msg00004.html

Comment 3 Richard W.M. Jones 2012-05-03 15:48:45 UTC
Fixed in 1.17.39.