"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xlators/mgmt/glusterd/src/glusterd-scrub-svc.c" between
glusterfs-9.2.tar.gz and glusterfs-9.3.tar.gz

About: GlusterFS is a network/cluster filesystem. The storage server (or each in a cluster) runs glusterfsd and the clients use mount command or glusterfs client to mount the exported filesystem. Release series 9.x (latest version).

glusterd-scrub-svc.c  (glusterfs-9.2):glusterd-scrub-svc.c  (glusterfs-9.3)
skipping to change at line 25 skipping to change at line 25
#include "glusterd-volgen.h" #include "glusterd-volgen.h"
#include "glusterd-scrub-svc.h" #include "glusterd-scrub-svc.h"
#include "glusterd-svc-helper.h" #include "glusterd-svc-helper.h"
char *scrub_svc_name = "scrub"; char *scrub_svc_name = "scrub";
void void
glusterd_scrubsvc_build(glusterd_svc_t *svc) glusterd_scrubsvc_build(glusterd_svc_t *svc)
{ {
svc->manager = glusterd_scrubsvc_manager; svc->manager = glusterd_scrubsvc_manager;
svc->start = glusterd_scrubsvc_start; svc->start = glusterd_genericsvc_start;
svc->stop = glusterd_scrubsvc_stop; svc->stop = glusterd_scrubsvc_stop;
} }
int int
glusterd_scrubsvc_init(glusterd_svc_t *svc) glusterd_scrubsvc_init(glusterd_svc_t *svc)
{ {
return glusterd_svc_init(svc, scrub_svc_name); return glusterd_svc_init(svc, scrub_svc_name);
} }
static int static int
skipping to change at line 114 skipping to change at line 114
out: out:
if (ret) if (ret)
gf_event(EVENT_SVC_MANAGER_FAILED, "svc_name=%s", svc->name); gf_event(EVENT_SVC_MANAGER_FAILED, "svc_name=%s", svc->name);
gf_msg_debug(THIS->name, 0, "Returning %d", ret); gf_msg_debug(THIS->name, 0, "Returning %d", ret);
return ret; return ret;
} }
int int
glusterd_scrubsvc_start(glusterd_svc_t *svc, int flags)
{
int ret = -1;
dict_t *cmdict = NULL;
cmdict = dict_new();
if (!cmdict) {
gf_smsg(THIS->name, GF_LOG_ERROR, errno, GD_MSG_DICT_CREATE_FAIL, NULL);
goto error_return;
}
ret = dict_set_str(cmdict, "cmdarg0", "--global-timer-wheel");
if (ret)
goto dealloc_dict;
ret = glusterd_svc_start(svc, flags, cmdict);
dealloc_dict:
dict_unref(cmdict);
error_return:
return ret;
}
int
glusterd_scrubsvc_stop(glusterd_svc_t *svc, int sig) glusterd_scrubsvc_stop(glusterd_svc_t *svc, int sig)
{ {
return glusterd_svc_stop(svc, sig); return glusterd_svc_stop(svc, sig);
} }
int int
glusterd_scrubsvc_reconfigure() glusterd_scrubsvc_reconfigure()
{ {
int ret = -1; int ret = -1;
xlator_t *this = NULL; xlator_t *this = NULL;
 End of changes. 2 change blocks. 
25 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)