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
-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to