struct xseg_request *rec;
xseg_prepare_wait(xseg, srcport);
while(1) {
- rec = xseg_receive(xseg, srcport);
+ rec = xseg_receive(xseg, srcport, 0);
if (rec) {
if (rec != expected_req) {
fprintf(stderr, "Unknown received req. Putting req.\n");
xseg_put_request(xseg, req, srcport);
return -1;
}
+ //FIXME what to do if no snap ? how do i send mapper to create a non copy up volume?
char *target = xseg_get_target(xseg, req);
strncpy(target, name, targetlen);
struct xseg_request_clone *xclone = (struct xseg_request_clone *) xseg_get_data(xseg, req);
}
char *target = xseg_get_target(xseg, req);
strncpy(target, name, targetlen);
- target[targetlen] = 0;
req->offset = 0;
req->size = req->datalen;
req->op = X_DELETE;
return -1;
}
- port = xseg_bind_port(xseg, srcport);
+ port = xseg_bind_port(xseg, srcport, NULL);
if (!port) {
fprintf(stderr, "Error binding port %u\n", srcport);
exit(-1);