Ok thanks for the info. From the XML output it looks like none of the virtual devices have got any size data. The XPATH expression that the code uses is:
_xpath_storage_bytes = """\
sum(//node[@class='volume']/size[@units='bytes'])
div 1024 div 1024
"""
So I'm not sure how it gets the first disk with that. This looks more like a bug in lshw to me, what do you think?
Ok thanks for the info. From the XML output it looks like none of the virtual devices have got any size data. The XPATH expression that the code uses is:
_xpath_ storage_ bytes = """\ //node[ @class= 'volume' ]/size[ @units= 'bytes' ])
sum(
div 1024 div 1024
"""
So I'm not sure how it gets the first disk with that. This looks more like a bug in lshw to me, what do you think?