[sheepdog] [PATCH v2 1/2] sheep: teach sheep to discard unused objects
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Tue Apr 16 05:33:37 CEST 2013
At Tue, 16 Apr 2013 10:53:38 +0800,
Liu Yuan wrote:
>
>
> +static int local_discard_obj(struct request *req)
> +{
> + uint64_t oid = req->rq.obj.oid;
> + uint32_t vid = oid_to_vid(oid), zero = 0;
> + int ret, cp = get_vdi_copy_number(vid), idx = data_oid_to_idx(oid);
> +
> + sd_dprintf("%"PRIx64, oid);
> + ret = write_object(vid_to_vdi_oid(vid), (char *)&zero, sizeof(zero),
> + SD_INODE_HEADER_SIZE + sizeof(vid) * idx, 0, cp);
This causes a compile error.
CC ops.o
Built sheep
ops.c: In function ‘local_discard_obj’:
ops.c:752: error: too few arguments to function ‘write_object’
Thanks,
Kazutaka
More information about the sheepdog
mailing list