Lines Matching refs:glfs

63     struct glfs *glfs;  member
71 struct glfs *glfs; member
416 static struct glfs *qemu_gluster_glfs_init(BlockdevOptionsGluster *gconf, in qemu_gluster_glfs_init()
419 struct glfs *glfs; in qemu_gluster_glfs_init() local
425 glfs = glfs_find_preopened(gconf->volume); in qemu_gluster_glfs_init()
426 if (glfs) { in qemu_gluster_glfs_init()
427 return glfs; in qemu_gluster_glfs_init()
430 glfs = glfs_new(gconf->volume); in qemu_gluster_glfs_init()
431 if (!glfs) { in qemu_gluster_glfs_init()
435 glfs_set_preopened(gconf->volume, glfs); in qemu_gluster_glfs_init()
440 ret = glfs_set_volfile_server(glfs, "unix", in qemu_gluster_glfs_init()
451 ret = glfs_set_volfile_server(glfs, "tcp", in qemu_gluster_glfs_init()
466 ret = glfs_set_logging(glfs, gconf->logfile, gconf->debug); in qemu_gluster_glfs_init()
471 ret = glfs_init(glfs); in qemu_gluster_glfs_init()
495 return glfs; in qemu_gluster_glfs_init()
498 if (glfs) { in qemu_gluster_glfs_init()
500 glfs_clear_preopened(glfs); in qemu_gluster_glfs_init()
715 static struct glfs *qemu_gluster_init(BlockdevOptionsGluster *gconf, in qemu_gluster_init()
831 s->glfs = qemu_gluster_init(gconf, filename, options, errp); in qemu_gluster_open()
832 if (!s->glfs) { in qemu_gluster_open()
844 ret = glfs_set_xlator_option(s->glfs, "*-write-behind", in qemu_gluster_open()
856 s->fd = glfs_open(s->glfs, gconf->path, open_flags); in qemu_gluster_open()
865 s->fd = glfs_open(s->glfs, gconf->path, open_flags); in qemu_gluster_open()
884 glfs_clear_preopened(s->glfs); in qemu_gluster_open()
924 reop_s->glfs = qemu_gluster_init(gconf, state->bs->exact_filename, NULL, in qemu_gluster_reopen_prepare()
927 reop_s->glfs = qemu_gluster_init(gconf, NULL, state->options, errp); in qemu_gluster_reopen_prepare()
929 if (reop_s->glfs == NULL) { in qemu_gluster_reopen_prepare()
935 ret = glfs_set_xlator_option(reop_s->glfs, "*-write-behind", in qemu_gluster_reopen_prepare()
944 reop_s->fd = glfs_open(reop_s->glfs, gconf->path, open_flags); in qemu_gluster_reopen_prepare()
968 glfs_clear_preopened(s->glfs); in qemu_gluster_reopen_commit()
972 s->glfs = reop_s->glfs; in qemu_gluster_reopen_commit()
993 glfs_clear_preopened(reop_s->glfs); in qemu_gluster_reopen_abort()
1086 struct glfs *glfs; in qemu_gluster_co_create() local
1092 glfs = qemu_gluster_glfs_init(opts->location, errp); in qemu_gluster_co_create()
1093 if (!glfs) { in qemu_gluster_co_create()
1098 fd = glfs_creat(glfs, opts->location->path, in qemu_gluster_co_create()
1113 glfs_clear_preopened(glfs); in qemu_gluster_co_create()
1247 glfs_clear_preopened(s->glfs); in qemu_gluster_close()