[PATCH] Log calls to DiskLabel's commit and commitToDisk methods.

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

 



---
 storage/formats/disklabel.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/storage/formats/disklabel.py b/storage/formats/disklabel.py
index 5b156f6..faf04f4 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:
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux