Exemple #1
0
static int write_sig_msg(struct manio *manio, struct blk *blk)
{
	struct iobuf wbuf;
	if(!manio->fzp && manio_open_next_fpath(manio)) return -1;
	blk_to_iobuf_sig_and_savepath(blk, &wbuf);
	if(iobuf_send_msg_fzp(&wbuf, manio->fzp)) return -1;
	return check_sig_count(manio, blk);
}
Exemple #2
0
static int write_sig_msg(struct manio *manio, const char *msg)
{
	if(!manio->fzp && manio_open_next_fpath(manio)) return -1;
	if(send_msg_fzp(manio->fzp, CMD_SIG, msg, strlen(msg))) return -1;
	return check_sig_count(manio, msg);
}