The way virt-manager is setup now is that it only reports sizes of file
backed images and a "-" with storage partitions.
This patch addresses that issue.
I'll be filing a bug for RHEL5 as soon as bugzilla comes out of
maintenance mode
Thanks
--
_|- | _ _
_\|_()|<(/__\
.----------------------------------.
( [EMAIL PROTECTED] || 919.754.4187 )
`----------------------------------'
diff -r 6815a5f94048 src/virtManager/addhardware.py
--- a/src/virtManager/addhardware.py Thu Jul 31 16:02:39 2008 -0400
+++ b/src/virtManager/addhardware.py Sat Aug 02 10:38:33 2008 -0400
@@ -277,6 +277,12 @@
return self.window.get_widget("storage-file-address").get_text()
def get_config_disk_size(self):
+ if self.window.get_widget("storage-partition").get_active():
+ partition_address = self.window.get_widget("storage-partition-address").get_text()
+ fd = open(partition_address,"rb")
+ fd.seek(0,2)
+ block_size = fd.tell() / 1024 / 1024
+ return block_size
if not self.window.get_widget("storage-file-backed").get_active():
return None
if not self.window.get_widget("storage-file-size").get_editable():
_______________________________________________
et-mgmt-tools mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/et-mgmt-tools