Lines Matching full:block_size
97 "Usage: %s [-b block_size] [-i input_file] [-o output_file] [-svwnf]\n"
358 static int do_read (int dev, unsigned char * buffer, int try, int block_size,
369 set_o_direct(dev, buffer, try * block_size,
370 ((ext2_loff_t) current_block) * block_size);
376 if (ext2fs_llseek (dev, (ext2_loff_t) current_block * block_size,
377 SEEK_SET) != (ext2_loff_t) current_block * block_size)
383 got = read (dev, buffer, try * block_size);
390 got /= block_size;
434 static int do_write(int dev, unsigned char * buffer, int try, int block_size,
442 set_o_direct(dev, buffer, try * block_size,
443 ((ext2_loff_t) current_block) * block_size);
449 if (ext2fs_llseek (dev, (ext2_loff_t) current_block * block_size,
450 SEEK_SET) != (ext2_loff_t) current_block * block_size)
454 got = write (dev, buffer, try * block_size);
459 got /= block_size;
480 int block_size, blk_t first_block,
504 blkbuf = allocate_buffer((blocks_at_once + 1) * block_size);
506 blkbuf = allocate_buffer(blocks_at_once * block_size);
521 pattern_fill(blkbuf + blocks_at_once * block_size,
522 t_patts[0], block_size);
552 got = do_read (dev, blkbuf, try, block_size, currently_testing);
558 if (memcmp (blkbuf+i*block_size,
559 blkbuf+blocks_at_once*block_size,
560 block_size))
593 int block_size, blk_t first_block,
606 buffer = allocate_buffer(2 * blocks_at_once * block_size);
607 read_buffer = buffer + blocks_at_once * block_size;
633 blocks_at_once * block_size);
649 got = do_write(dev, buffer, try, block_size,
691 got = do_read (dev, read_buffer, try, block_size,
707 if (memcmp(read_buffer + i * block_size,
708 buffer + i * block_size,
709 block_size))
733 int block_size, blk_t first_block,
765 blkbuf = allocate_buffer(3 * blocks_at_once * block_size);
774 test_base = blkbuf + (blocks_at_once * block_size);
775 read_base = blkbuf + (2 * blocks_at_once * block_size);
799 block_size, test_record[i].block);
800 save_ptr += test_record[i].num * block_size;
818 blocks_at_once * block_size);
849 got = do_read (dev, save_ptr, try, block_size,
873 written = do_write (dev, test_ptr, got, block_size,
882 save_ptr += got * block_size;
883 test_ptr += got * block_size;
937 block_size, currently_testing);
942 if (memcmp (test_ptr+i*block_size,
943 read_ptr+i*block_size, block_size))
952 block_size, currently_testing);
953 save_ptr += got * block_size;
956 test_ptr += got * block_size;
957 read_ptr += got * block_size;
1047 int block_size = 1024;
1091 block_size = parse_uint(optarg, "block size");
1200 block_size,
1329 bb_count = test_func(dev, last_block, block_size,