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

Re: [PATCH 1/2] Fix a typo in action sorting for resize actions (fs vs. device). (#501000)



Looks ok,

Regards,

Hans


On 05/29/2009 09:38 PM, David Lehman wrote:
---
  storage/devicetree.py |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 3dce7be..ac297ec 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -548,7 +548,7 @@ class DeviceTree(object):
                  ret = 1
              elif a1.isResize() and a2.isResize():
                  if a1.device.path == a2.device.path:
-                    if a1.obj and a2.obj:
+                    if a1.obj == a2.obj:
                          ret = 0
                      elif a1.isFormat() and not a2.isFormat():
                          # same path, one device, one format


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