Bug 927174 - pool-build --overwrite can not format type xfs filesystem
Summary: pool-build --overwrite can not format type xfs filesystem
Keywords:
Status: CLOSED DUPLICATE of bug 927172
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On: 927172
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-25 09:32 UTC by Huang Wenlong
Modified: 2014-07-06 19:31 UTC (History)
6 users (show)

Fixed In Version:
Clone Of: 927172
Environment:
Last Closed: 2014-04-03 10:25:01 UTC
Embargoed:


Attachments (Terms of Use)

Description Huang Wenlong 2013-03-25 09:32:51 UTC
Reproduce it with libvirt-1.0.3-1.el7.x86_64
+++ This bug was initially created as a clone of Bug #927172 +++

Description of problem:
pool-build --overwrite   can not format type xfs filesystem

Version-Release number of selected component (if applicable):
libvirt-0.10.2-18.el6_4.2.x86_64

How reproducible:
100

Steps to Reproduce:
1. prepare a fs ext3 partition
<pool type='fs'>
  <name>sda2</name>
  <source>
    <device path='/dev/sda2'/>
    <format type='xfs'/>
  </source>
  <target>
    <path>/var/lib/libvirt/images/sda2</path>
    <permissions>
      <mode>0755</mode>
      <owner>0</owner>
      <group>0</group>
    </permissions>
  </target>
</pool>

2. format sda2
#mkfs.ext3 -F /dev/sda2

3. define and build pool --overwrite
# virsh pool-define sda2-new.xml
Pool sda2 defined from sda2-new.xml

## virsh pool-build --overwrite sda2
error: Failed to build pool sda2
error: Failed to make filesystem of type 'xfs' on device '/dev/sda2': File exists


 
Actual results:
as steps

Expected results:
pool-build should succeed

Additional info:
GFS2 format also can not be formated via pool-build --overwrite

Comment 2 Ján Tomko 2014-04-03 10:25:01 UTC

*** This bug has been marked as a duplicate of bug 927172 ***


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