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

[PATCH] Ensure remount requests go through isys.mount() (#678520)



If remount=True and the volume is already mounted, the mount() function
will bail.  We don't want that for remount requests since remount
doesn't change the mount count.
---
 isys/isys.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/isys/isys.py b/isys/isys.py
index 808dbbc..84ed857 100755
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -128,7 +128,7 @@ def mount(device, location, fstype = "ext2", readOnly = False,
     # will have to deal with the exception.
     # We note whether or not we created a node so we can clean up later.
 
-    if mountCount.has_key(location) and mountCount[location] > 0:
+    if mountCount.has_key(location) and mountCount[location] > 0 and not remount:
 	mountCount[location] = mountCount[location] + 1
 	return
 
-- 
1.7.1


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