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

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

 



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

_______________________________________________
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