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

[PATCH] Be more careful about identifying NFS fstab entries.



---
 storage/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index 557deec..b159630 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1342,7 +1342,7 @@ class FSSet(object):
         elif devspec.startswith("/dev/loop"):
             # FIXME: create devices.LoopDevice
             log.warning("completely ignoring your loop mount")
-        elif ":" in devspec:
+        elif ":" in devspec and fstype.startswith("nfs"):
             # NFS -- preserve but otherwise ignore
             device = NFSDevice(devspec,
                                format=getFormat(fstype,
-- 
1.6.0.6


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