aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/md
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2015-08-13 13:20:29 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2015-08-13 13:20:29 +0000
commitec170744a7f35d8e1431467153a87d5c2de6f51c (patch)
tree2d7be57cf169a688b3901774d8e62eb44915e22b /sys/dev/md
parent0aedf4e812bcdc5f6bcd5f5bb3960e6be169755c (diff)
Notes
Diffstat (limited to 'sys/dev/md')
-rw-r--r--sys/dev/md/md.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index a82d81d1142e..046ef2a258ac 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -89,6 +89,7 @@
#include <sys/vnode.h>
#include <geom/geom.h>
+#include <geom/geom_int.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
@@ -1660,9 +1661,11 @@ g_md_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp,
"read-only");
sbuf_printf(sb, "%s<type>%s</type>\n", indent,
type);
- if (mp->type == MD_VNODE && mp->vnode != NULL)
- sbuf_printf(sb, "%s<file>%s</file>\n",
- indent, mp->file);
+ if (mp->type == MD_VNODE && mp->vnode != NULL) {
+ sbuf_printf(sb, "%s<file>", indent);
+ g_conf_printf_escaped(sb, "%s", mp->file);
+ sbuf_printf(sb, "</file>\n");
+ }
}
}
}