Whamcloud - gitweb
LU-7003 utils: must quote the value of the context option
[fs/lustre-release.git] / lustre / utils / mount_utils_ldiskfs.c
index 1ce4aa1..54b62fe 100644 (file)
@@ -553,8 +553,9 @@ static void append_unique(char *buf, char *prefix, char *key, char *val,
 
                strscat(buf, key, maxbuflen);
                if (val != NULL) {
-                       strscat(buf, "=", maxbuflen);
+                       strscat(buf, "=\"", maxbuflen);
                        strscat(buf, val, maxbuflen);
+                       strscat(buf, "\"", maxbuflen);
                }
        }
 }