" and export path:%s", s->fsconf.fsdev_id, s->ctx.fs_root);
#ifdef CONFIG_MARU
char *path = get_canonical_path(s->ctx.fs_root);
- maru_register_exit_msg(MARU_EXIT_UNKNOWN, "Failed to find the file sharing path."
- " Check if the path is correct or not.\n\n%s", path);
-
+ maru_register_exit_msg(MARU_EXIT_UNKNOWN,
+ "Virtio-9p Failed to initialize fs-driver with id: %s"
+ " and export path: %s", s->fsconf.fsdev_id, path);
g_free(path);
#endif
goto out;
if (s->ops->name_to_path(&s->ctx, NULL, "/", &path) < 0) {
#else
if (s->ops->name_to_path(&s->ctx, NULL, "\\", &path) < 0) {
-#endif
+#endif /* CONFIG_WIN32 */
#else
if (s->ops->name_to_path(&s->ctx, NULL, "/", &path) < 0) {
-#endif
+#endif /* CONFIG_MARU */
error_setg(errp,
"error in converting name to path %s", strerror(errno));
goto out;
}
if (s->ops->lstat(&s->ctx, &path, &stat)) {
error_setg(errp, "share path %s does not exist", fse->path);
+#ifdef CONFIG_MARU
+ char *path = get_canonical_path(fse->path);
+ maru_register_exit_msg(MARU_EXIT_UNKNOWN,
+ "share path %s does not exist", path);
+ g_free(path);
+#endif
goto out;
} else if (!S_ISDIR(stat.st_mode)) {
error_setg(errp, "share path %s is not a directory", fse->path);
+#ifdef CONFIG_MARU
+ char *path = get_canonical_path(fse->path);
+ maru_register_exit_msg(MARU_EXIT_UNKNOWN,
+ "share path %s is not a directory", path);
+ g_free(path);
+#endif
goto out;
}
v9fs_path_free(&path);