Re: [PATCH] fix source name attribute for gluster volumes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/27/2015 01:52 PM, Cole Robinson wrote:
> On 01/27/2015 08:10 AM, Anatoly.Belikov.wormblood@xxxxxxxxx wrote:
>> From: Anatoly Belikov <wormblood@xxxxxxxxx>
>>
>> ---
>>  virtinst/devicedisk.py | 6 +++++-
>>  1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/virtinst/devicedisk.py b/virtinst/devicedisk.py
>> index ac03716..df2befc 100644
>> --- a/virtinst/devicedisk.py
>> +++ b/virtinst/devicedisk.py
>> @@ -627,7 +627,11 @@ class VirtualDisk(VirtualDevice):
>>  
>>          path = ""
>>          if poolxml.source_name:
>> -            path += poolxml.source_name + "/"
>> +            path += poolxml.source_name
>> +            if poolxml.type == poolxml.TYPE_GLUSTER:
>> +                path += poolxml.source_path
>> +            if not path.endswith('/'):
>> +                path += "/"
>>          path += volxml.name
>>          self.source_name = path
>>          self.type = "network"
>>
> 
> Thanks for the patch. Can you describe how to reproduce this issue? If via
> virt-install, please provide the full command line and debug output, since I'd
> like to add a test case that covers this
> 
> Thanks,
> Cole

Hmm, Anatoly.Belikov.wormblood@xxxxxxxxx bounced, so trying with the address
from git

- Cole

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux