Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:block

49 	unsigned long block;
51 void (*read_blk)(unsigned long block, int count, errcode_t err);
52 void (*write_blk)(unsigned long block, int count, errcode_t err);
54 void (*write_byte)(unsigned long block, int count, errcode_t err);
55 void (*read_blk64)(unsigned long long block, int count, errcode_t err);
56 void (*write_blk64)(unsigned long long block, int count, errcode_t err);
62 static errcode_t test_read_blk(io_channel channel, unsigned long block,
64 static errcode_t test_write_blk(io_channel channel, unsigned long block,
66 static errcode_t test_read_blk64(io_channel channel, unsigned long long block,
68 static errcode_t test_write_blk64(io_channel channel, unsigned long long block,
102 (unsigned long block, int count, errcode_t err) = 0;
104 (unsigned long block, int count, errcode_t err) = 0;
106 (unsigned long long block, int count, errcode_t err) = 0;
108 (unsigned long long block, int count, errcode_t err) = 0;
112 (unsigned long block, int count, errcode_t err) = 0;
126 unsigned long block, const void *buf)
136 fprintf(f, "Contents of block %lu, checksum %08lu: \n", block, cksum);
144 static void test_abort(io_channel channel, unsigned long block)
153 fprintf(f, "Aborting due to I/O to block %lu\n", block);
236 data->block = 0;
238 data->block = strtoul(value, NULL, 0);
306 static errcode_t test_read_blk(io_channel channel, unsigned long block,
317 retval = io_channel_read_blk(data->real, block, count, buf);
319 data->read_blk(block, count, retval);
323 block, count, retval ? error_message(retval) : "OK");
324 if (data->block && data->block == block) {
326 test_dump_block(channel, data, block, buf);
328 test_abort(channel, block);
333 static errcode_t test_write_blk(io_channel channel, unsigned long block,
344 retval = io_channel_write_blk(data->real, block, count, buf);
346 data->write_blk(block, count, retval);
350 block, count, retval ? error_message(retval) : "OK");
351 if (data->block && data->block == block) {
353 test_dump_block(channel, data, block, buf);
355 test_abort(channel, block);
360 static errcode_t test_read_blk64(io_channel channel, unsigned long long block,
371 retval = io_channel_read_blk64(data->real, block, count, buf);
373 data->read_blk64(block, count, retval);
377 block, count, retval ? error_message(retval) : "OK");
378 if (data->block && data->block == block) {
380 test_dump_block(channel, data, block, buf);
382 test_abort(channel, block);
387 static errcode_t test_write_blk64(io_channel channel, unsigned long long block,
398 retval = io_channel_write_blk64(data->real, block, count, buf);
400 data->write_blk64(block, count, retval);
404 block, count, retval ? error_message(retval) : "OK");
405 if (data->block && data->block == block) {
407 test_dump_block(channel, data, block, buf);
409 test_abort(channel, block);