serial = guestfs__send_sync (g, GUESTFS_PROC_MOUNT,
(xdrproc_t) xdr_guestfs_mount_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_mount");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_MOUNT, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_SYNC, NULL, NULL);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_sync");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_SYNC, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_TOUCH,
(xdrproc_t) xdr_guestfs_touch_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_touch");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_TOUCH, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_CAT,
(xdrproc_t) xdr_guestfs_cat_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_cat");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_CAT, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.content; /* caller will free */
}
serial = guestfs__send_sync (g, GUESTFS_PROC_LL,
(xdrproc_t) xdr_guestfs_ll_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_ll");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_LL, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.listing; /* caller will free */
}
serial = guestfs__send_sync (g, GUESTFS_PROC_LS,
(xdrproc_t) xdr_guestfs_ls_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_ls");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_LS, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this, but we need to add a NULL entry */
ctx.ret.listing.listing_val =
safe_realloc (g, ctx.ret.listing.listing_val,
serial = guestfs__send_sync (g, GUESTFS_PROC_LIST_DEVICES, NULL, NULL);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_list_devices");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_LIST_DEVICES, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this, but we need to add a NULL entry */
ctx.ret.devices.devices_val =
safe_realloc (g, ctx.ret.devices.devices_val,
serial = guestfs__send_sync (g, GUESTFS_PROC_LIST_PARTITIONS, NULL, NULL);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_list_partitions");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_LIST_PARTITIONS, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this, but we need to add a NULL entry */
ctx.ret.partitions.partitions_val =
safe_realloc (g, ctx.ret.partitions.partitions_val,
serial = guestfs__send_sync (g, GUESTFS_PROC_PVS, NULL, NULL);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_pvs");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_PVS, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this, but we need to add a NULL entry */
ctx.ret.physvols.physvols_val =
safe_realloc (g, ctx.ret.physvols.physvols_val,
serial = guestfs__send_sync (g, GUESTFS_PROC_VGS, NULL, NULL);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_vgs");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_VGS, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this, but we need to add a NULL entry */
ctx.ret.volgroups.volgroups_val =
safe_realloc (g, ctx.ret.volgroups.volgroups_val,
serial = guestfs__send_sync (g, GUESTFS_PROC_LVS, NULL, NULL);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_lvs");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_LVS, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this, but we need to add a NULL entry */
ctx.ret.logvols.logvols_val =
safe_realloc (g, ctx.ret.logvols.logvols_val,
serial = guestfs__send_sync (g, GUESTFS_PROC_PVS_FULL, NULL, NULL);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_pvs_full");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_PVS_FULL, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this */
return safe_memdup (g, &ctx.ret.physvols, sizeof (ctx.ret.physvols));
}
serial = guestfs__send_sync (g, GUESTFS_PROC_VGS_FULL, NULL, NULL);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_vgs_full");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_VGS_FULL, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this */
return safe_memdup (g, &ctx.ret.volgroups, sizeof (ctx.ret.volgroups));
}
serial = guestfs__send_sync (g, GUESTFS_PROC_LVS_FULL, NULL, NULL);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_lvs_full");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_LVS_FULL, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this */
return safe_memdup (g, &ctx.ret.logvols, sizeof (ctx.ret.logvols));
}
serial = guestfs__send_sync (g, GUESTFS_PROC_READ_LINES,
(xdrproc_t) xdr_guestfs_read_lines_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_read_lines");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_READ_LINES, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this, but we need to add a NULL entry */
ctx.ret.lines.lines_val =
safe_realloc (g, ctx.ret.lines.lines_val,
serial = guestfs__send_sync (g, GUESTFS_PROC_AUG_INIT,
(xdrproc_t) xdr_guestfs_aug_init_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_aug_init");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_AUG_INIT, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_AUG_CLOSE, NULL, NULL);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_aug_close");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_AUG_CLOSE, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_AUG_DEFVAR,
(xdrproc_t) xdr_guestfs_aug_defvar_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_aug_defvar");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_AUG_DEFVAR, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.nrnodes;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_AUG_DEFNODE,
(xdrproc_t) xdr_guestfs_aug_defnode_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_aug_defnode");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_AUG_DEFNODE, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller with free this */
return safe_memdup (g, &ctx.ret, sizeof (ctx.ret));
}
serial = guestfs__send_sync (g, GUESTFS_PROC_AUG_GET,
(xdrproc_t) xdr_guestfs_aug_get_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_aug_get");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_AUG_GET, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.val; /* caller will free */
}
serial = guestfs__send_sync (g, GUESTFS_PROC_AUG_SET,
(xdrproc_t) xdr_guestfs_aug_set_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_aug_set");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_AUG_SET, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_AUG_INSERT,
(xdrproc_t) xdr_guestfs_aug_insert_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_aug_insert");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_AUG_INSERT, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_AUG_RM,
(xdrproc_t) xdr_guestfs_aug_rm_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_aug_rm");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_AUG_RM, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.nrnodes;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_AUG_MV,
(xdrproc_t) xdr_guestfs_aug_mv_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_aug_mv");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_AUG_MV, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_AUG_MATCH,
(xdrproc_t) xdr_guestfs_aug_match_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_aug_match");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_AUG_MATCH, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this, but we need to add a NULL entry */
ctx.ret.matches.matches_val =
safe_realloc (g, ctx.ret.matches.matches_val,
serial = guestfs__send_sync (g, GUESTFS_PROC_AUG_SAVE, NULL, NULL);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_aug_save");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_AUG_SAVE, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_AUG_LOAD, NULL, NULL);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_aug_load");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_AUG_LOAD, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_AUG_LS,
(xdrproc_t) xdr_guestfs_aug_ls_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_aug_ls");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_AUG_LS, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this, but we need to add a NULL entry */
ctx.ret.matches.matches_val =
safe_realloc (g, ctx.ret.matches.matches_val,
serial = guestfs__send_sync (g, GUESTFS_PROC_RM,
(xdrproc_t) xdr_guestfs_rm_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_rm");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_RM, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_RMDIR,
(xdrproc_t) xdr_guestfs_rmdir_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_rmdir");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_RMDIR, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_RM_RF,
(xdrproc_t) xdr_guestfs_rm_rf_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_rm_rf");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_RM_RF, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_MKDIR,
(xdrproc_t) xdr_guestfs_mkdir_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_mkdir");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_MKDIR, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_MKDIR_P,
(xdrproc_t) xdr_guestfs_mkdir_p_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_mkdir_p");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_MKDIR_P, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_CHMOD,
(xdrproc_t) xdr_guestfs_chmod_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_chmod");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_CHMOD, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_CHOWN,
(xdrproc_t) xdr_guestfs_chown_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_chown");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_CHOWN, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_EXISTS,
(xdrproc_t) xdr_guestfs_exists_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_exists");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_EXISTS, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.existsflag;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_IS_FILE,
(xdrproc_t) xdr_guestfs_is_file_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_is_file");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_IS_FILE, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.fileflag;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_IS_DIR,
(xdrproc_t) xdr_guestfs_is_dir_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_is_dir");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_IS_DIR, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.dirflag;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_PVCREATE,
(xdrproc_t) xdr_guestfs_pvcreate_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_pvcreate");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_PVCREATE, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_VGCREATE,
(xdrproc_t) xdr_guestfs_vgcreate_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_vgcreate");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_VGCREATE, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_LVCREATE,
(xdrproc_t) xdr_guestfs_lvcreate_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_lvcreate");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_LVCREATE, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_MKFS,
(xdrproc_t) xdr_guestfs_mkfs_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_mkfs");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_MKFS, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_SFDISK,
(xdrproc_t) xdr_guestfs_sfdisk_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_sfdisk");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_SFDISK, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_WRITE_FILE,
(xdrproc_t) xdr_guestfs_write_file_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_write_file");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_WRITE_FILE, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_UMOUNT,
(xdrproc_t) xdr_guestfs_umount_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_umount");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_UMOUNT, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_MOUNTS, NULL, NULL);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_mounts");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_MOUNTS, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this, but we need to add a NULL entry */
ctx.ret.devices.devices_val =
safe_realloc (g, ctx.ret.devices.devices_val,
serial = guestfs__send_sync (g, GUESTFS_PROC_UMOUNT_ALL, NULL, NULL);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_umount_all");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_UMOUNT_ALL, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_LVM_REMOVE_ALL, NULL, NULL);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_lvm_remove_all");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_LVM_REMOVE_ALL, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_FILE,
(xdrproc_t) xdr_guestfs_file_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_file");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_FILE, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.description; /* caller will free */
}
serial = guestfs__send_sync (g, GUESTFS_PROC_COMMAND,
(xdrproc_t) xdr_guestfs_command_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_command");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_COMMAND, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.output; /* caller will free */
}
serial = guestfs__send_sync (g, GUESTFS_PROC_COMMAND_LINES,
(xdrproc_t) xdr_guestfs_command_lines_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_command_lines");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_COMMAND_LINES, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this, but we need to add a NULL entry */
ctx.ret.lines.lines_val =
safe_realloc (g, ctx.ret.lines.lines_val,
serial = guestfs__send_sync (g, GUESTFS_PROC_STAT,
(xdrproc_t) xdr_guestfs_stat_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_stat");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_STAT, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this */
return safe_memdup (g, &ctx.ret.statbuf, sizeof (ctx.ret.statbuf));
}
serial = guestfs__send_sync (g, GUESTFS_PROC_LSTAT,
(xdrproc_t) xdr_guestfs_lstat_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_lstat");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_LSTAT, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this */
return safe_memdup (g, &ctx.ret.statbuf, sizeof (ctx.ret.statbuf));
}
serial = guestfs__send_sync (g, GUESTFS_PROC_STATVFS,
(xdrproc_t) xdr_guestfs_statvfs_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_statvfs");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_STATVFS, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this */
return safe_memdup (g, &ctx.ret.statbuf, sizeof (ctx.ret.statbuf));
}
serial = guestfs__send_sync (g, GUESTFS_PROC_TUNE2FS_L,
(xdrproc_t) xdr_guestfs_tune2fs_l_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_tune2fs_l");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_TUNE2FS_L, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this, but we need to add a NULL entry */
ctx.ret.superblock.superblock_val =
safe_realloc (g, ctx.ret.superblock.superblock_val,
serial = guestfs__send_sync (g, GUESTFS_PROC_BLOCKDEV_SETRO,
(xdrproc_t) xdr_guestfs_blockdev_setro_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_blockdev_setro");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_BLOCKDEV_SETRO, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_BLOCKDEV_SETRW,
(xdrproc_t) xdr_guestfs_blockdev_setrw_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_blockdev_setrw");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_BLOCKDEV_SETRW, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_BLOCKDEV_GETRO,
(xdrproc_t) xdr_guestfs_blockdev_getro_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_blockdev_getro");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_BLOCKDEV_GETRO, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.ro;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_BLOCKDEV_GETSS,
(xdrproc_t) xdr_guestfs_blockdev_getss_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_blockdev_getss");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_BLOCKDEV_GETSS, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.sectorsize;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_BLOCKDEV_GETBSZ,
(xdrproc_t) xdr_guestfs_blockdev_getbsz_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_blockdev_getbsz");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_BLOCKDEV_GETBSZ, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.blocksize;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_BLOCKDEV_SETBSZ,
(xdrproc_t) xdr_guestfs_blockdev_setbsz_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_blockdev_setbsz");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_BLOCKDEV_SETBSZ, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_BLOCKDEV_GETSZ,
(xdrproc_t) xdr_guestfs_blockdev_getsz_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_blockdev_getsz");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_BLOCKDEV_GETSZ, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.sizeinsectors;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_BLOCKDEV_GETSIZE64,
(xdrproc_t) xdr_guestfs_blockdev_getsize64_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_blockdev_getsize64");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_BLOCKDEV_GETSIZE64, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.sizeinbytes;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_BLOCKDEV_FLUSHBUFS,
(xdrproc_t) xdr_guestfs_blockdev_flushbufs_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_blockdev_flushbufs");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_BLOCKDEV_FLUSHBUFS, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_BLOCKDEV_REREADPT,
(xdrproc_t) xdr_guestfs_blockdev_rereadpt_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_blockdev_rereadpt");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_BLOCKDEV_REREADPT, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_UPLOAD,
(xdrproc_t) xdr_guestfs_upload_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
r = guestfs__send_file_sync (g, filename);
if (r == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (r == -2) /* daemon cancelled */
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_upload");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_UPLOAD, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_DOWNLOAD,
(xdrproc_t) xdr_guestfs_download_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_download");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_DOWNLOAD, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (guestfs__receive_file_sync (g, filename) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_CHECKSUM,
(xdrproc_t) xdr_guestfs_checksum_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_checksum");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_CHECKSUM, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.checksum; /* caller will free */
}
serial = guestfs__send_sync (g, GUESTFS_PROC_TAR_IN,
(xdrproc_t) xdr_guestfs_tar_in_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
r = guestfs__send_file_sync (g, tarfile);
if (r == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (r == -2) /* daemon cancelled */
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_tar_in");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_TAR_IN, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_TAR_OUT,
(xdrproc_t) xdr_guestfs_tar_out_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_tar_out");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_TAR_OUT, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (guestfs__receive_file_sync (g, tarfile) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_TGZ_IN,
(xdrproc_t) xdr_guestfs_tgz_in_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
r = guestfs__send_file_sync (g, tarball);
if (r == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (r == -2) /* daemon cancelled */
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_tgz_in");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_TGZ_IN, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_TGZ_OUT,
(xdrproc_t) xdr_guestfs_tgz_out_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_tgz_out");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_TGZ_OUT, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (guestfs__receive_file_sync (g, tarball) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_MOUNT_RO,
(xdrproc_t) xdr_guestfs_mount_ro_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_mount_ro");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_MOUNT_RO, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_MOUNT_OPTIONS,
(xdrproc_t) xdr_guestfs_mount_options_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_mount_options");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_MOUNT_OPTIONS, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_MOUNT_VFS,
(xdrproc_t) xdr_guestfs_mount_vfs_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_mount_vfs");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_MOUNT_VFS, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_DEBUG,
(xdrproc_t) xdr_guestfs_debug_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_debug");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_DEBUG, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.result; /* caller will free */
}
serial = guestfs__send_sync (g, GUESTFS_PROC_LVREMOVE,
(xdrproc_t) xdr_guestfs_lvremove_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_lvremove");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_LVREMOVE, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_VGREMOVE,
(xdrproc_t) xdr_guestfs_vgremove_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_vgremove");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_VGREMOVE, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_PVREMOVE,
(xdrproc_t) xdr_guestfs_pvremove_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_pvremove");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_PVREMOVE, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_SET_E2LABEL,
(xdrproc_t) xdr_guestfs_set_e2label_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_set_e2label");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_SET_E2LABEL, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_GET_E2LABEL,
(xdrproc_t) xdr_guestfs_get_e2label_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_get_e2label");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_GET_E2LABEL, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.label; /* caller will free */
}
serial = guestfs__send_sync (g, GUESTFS_PROC_SET_E2UUID,
(xdrproc_t) xdr_guestfs_set_e2uuid_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_set_e2uuid");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_SET_E2UUID, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_GET_E2UUID,
(xdrproc_t) xdr_guestfs_get_e2uuid_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_get_e2uuid");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_GET_E2UUID, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.uuid; /* caller will free */
}
serial = guestfs__send_sync (g, GUESTFS_PROC_FSCK,
(xdrproc_t) xdr_guestfs_fsck_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_fsck");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_FSCK, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.status;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_ZERO,
(xdrproc_t) xdr_guestfs_zero_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_zero");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_ZERO, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_GRUB_INSTALL,
(xdrproc_t) xdr_guestfs_grub_install_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_grub_install");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_GRUB_INSTALL, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_CP,
(xdrproc_t) xdr_guestfs_cp_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_cp");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_CP, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_CP_A,
(xdrproc_t) xdr_guestfs_cp_a_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_cp_a");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_CP_A, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_MV,
(xdrproc_t) xdr_guestfs_mv_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_mv");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_MV, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_DROP_CACHES,
(xdrproc_t) xdr_guestfs_drop_caches_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_drop_caches");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_DROP_CACHES, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_DMESG, NULL, NULL);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_dmesg");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_DMESG, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.kmsgs; /* caller will free */
}
serial = guestfs__send_sync (g, GUESTFS_PROC_PING_DAEMON, NULL, NULL);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_ping_daemon");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_PING_DAEMON, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return 0;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_EQUAL,
(xdrproc_t) xdr_guestfs_equal_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_equal");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_EQUAL, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return -1;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.equality;
}
serial = guestfs__send_sync (g, GUESTFS_PROC_STRINGS,
(xdrproc_t) xdr_guestfs_strings_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_strings");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_STRINGS, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this, but we need to add a NULL entry */
ctx.ret.stringsout.stringsout_val =
safe_realloc (g, ctx.ret.stringsout.stringsout_val,
serial = guestfs__send_sync (g, GUESTFS_PROC_STRINGS_E,
(xdrproc_t) xdr_guestfs_strings_e_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_strings_e");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_STRINGS_E, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
/* caller will free this, but we need to add a NULL entry */
ctx.ret.stringsout.stringsout_val =
safe_realloc (g, ctx.ret.stringsout.stringsout_val,
serial = guestfs__send_sync (g, GUESTFS_PROC_HEXDUMP,
(xdrproc_t) xdr_guestfs_hexdump_args, (char *) &args);
if (serial == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
guestfs_set_reply_callback (g, NULL, NULL);
if (ctx.cb_sequence != 1) {
error (g, "%s reply failed, see earlier error messages", "guestfs_hexdump");
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (check_reply_header (g, &ctx.hdr, GUESTFS_PROC_HEXDUMP, serial) == -1) {
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
if (ctx.hdr.status == GUESTFS_STATUS_ERROR) {
error (g, "%s", ctx.err.error_message);
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return NULL;
}
- guestfs_set_ready (g);
+ guestfs_end_busy (g);
return ctx.ret.dump; /* caller will free */
}