summaryrefslogtreecommitdiffstats
path: root/storage/formats/disklabel.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-11-12 15:18:08 -0600
committerDavid Lehman <dlehman@redhat.com>2009-11-12 15:37:42 -0600
commit4e65b68c709924d3548d187ad0784996cdbb55f4 (patch)
tree138f880af7b73fde276391c8e320fde759478d62 /storage/formats/disklabel.py
parent6c7464c0974f690a3fe511ad9cecce569a4de61d (diff)
downloadanaconda-4e65b68c709924d3548d187ad0784996cdbb55f4.tar.gz
anaconda-4e65b68c709924d3548d187ad0784996cdbb55f4.tar.xz
anaconda-4e65b68c709924d3548d187ad0784996cdbb55f4.zip
Log calls to DiskLabel's commit and commitToDisk methods.
Diffstat (limited to 'storage/formats/disklabel.py')
-rw-r--r--storage/formats/disklabel.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/storage/formats/disklabel.py b/storage/formats/disklabel.py
index 5b156f642..faf04f4cd 100644
--- a/storage/formats/disklabel.py
+++ b/storage/formats/disklabel.py
@@ -199,6 +199,8 @@ class DiskLabel(DeviceFormat):
def commit(self):
""" Commit the current partition table to disk and notify the OS. """
+ log_method_call(self, device=self.device,
+ numparts=len(self.partitions))
try:
self.partedDisk.commit()
except parted.DiskException as msg:
@@ -208,6 +210,8 @@ class DiskLabel(DeviceFormat):
def commitToDisk(self):
""" Commit the current partition table to disk. """
+ log_method_call(self, device=self.device,
+ numparts=len(self.partitions))
try:
self.partedDisk.commitToDevice()
except parted.DiskException as msg: