prt("%lu punch\tfrom 0x%x to 0x%x, (0x%x bytes)\n", testcalls,
offset, offset+length, length);
}
- if ((ret = rbd_discard(image, offset, length)) < 0) {
+ if ((ret = rbd_discard(image, (unsigned long long) offset,
+ (unsigned long long) length)) < 0) {
prt("%punch hole: %x to %x\n", offset, length);
prterrcode("do_punch_hole: discard", ret);
report_failure(161);
// copyup of 0-len nonexistent object should create new 0-len object
ioctx.remove(oid);
ASSERT_EQ(0, copyup(&ioctx, oid, inbl));
- size_t size;
+ uint64_t size;
ASSERT_EQ(0, ioctx.stat(oid, &size, NULL));
ASSERT_EQ(0U, size);
assert(written == (ssize_t)len);
}
-void aio_discard_test_data(rbd_image_t image, uint64_t off, size_t len)
+void aio_discard_test_data(rbd_image_t image, uint64_t off, uint64_t len)
{
rbd_completion_t comp;
rbd_aio_create_completion(NULL, (rbd_callback_t) simple_write_cb, &comp);