Bug 635971 - glob mkfs ext2 /dev/vd[b-t]1 does not expand
Summary: glob mkfs ext2 /dev/vd[b-t]1 does not expand
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-21 08:09 UTC by Richard W.M. Jones
Modified: 2012-05-03 15:48 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-05-03 15:48:45 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.