Bug 639986

Summary: virt-df --csv does not properly quote " in libvirt domain names
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: 2011-07-14 19:17:50 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-10-04 13:40:19 UTC
Description of problem:

I have a domain called " (double quote).  When I use
virt-df --csv, the output is not properly quoted:

$ sudo virt-df --csv \"
Virtual Machine,Filesystem,1K-blocks,Used,Available,Use%
""","/dev/sda1",31725,396,29691,1.2%

Note that the first field should be """"

Version-Release number of selected component (if applicable):

libguestfs-tools-1.5.21-1.fc14.3.x86_64

Comment 1 Richard W.M. Jones 2010-10-16 13:37:44 UTC
Set target to fix this in upstream libguestfs 1.6.

Comment 2 Richard W.M. Jones 2010-10-18 13:21:13 UTC
Proposed fix posted upstream:
https://www.redhat.com/archives/libguestfs/2010-October/msg00032.html