error_setg(errp, "Virtio-9p Failed to initialize fs-driver with id:%s"
" and export path:%s", s->fsconf.fsdev_id, s->ctx.fs_root);
#ifdef CONFIG_MARU
- char *path = get_canonical_path(s->ctx.fs_root);
+ gchar *canonical_path = get_canonical_path(s->ctx.fs_root);
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);
+ " and export path: %s", s->fsconf.fsdev_id, canonical_path);
+ g_free(canonical_path);
#endif
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);
+ gchar *canonical_path = get_canonical_path(fse->path);
maru_register_exit_msg(MARU_EXIT_UNKNOWN,
- "share path %s does not exist", path);
- g_free(path);
+ "share path %s does not exist", canonical_path);
+ g_free(canonical_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);
+ gchar *canonical_path = get_canonical_path(fse->path);
maru_register_exit_msg(MARU_EXIT_UNKNOWN,
- "share path %s is not a directory", path);
- g_free(path);
+ "share path %s is not a directory", canonical_path);
+ g_free(canonical_path);
#endif
goto out;
}