• Home
  • Raw
  • Download

Lines Matching refs:block_size

326 static int do_read (int dev, unsigned char * buffer, int try, int block_size,  in do_read()  argument
334 set_o_direct(dev, buffer, try * block_size, current_block); in do_read()
340 if (ext2fs_llseek (dev, (ext2_loff_t) current_block * block_size, in do_read()
341 SEEK_SET) != (ext2_loff_t) current_block * block_size) in do_read()
347 got = read (dev, buffer, try * block_size); in do_read()
354 got /= block_size; in do_read()
398 static int do_write(int dev, unsigned char * buffer, int try, int block_size, in do_write() argument
403 set_o_direct(dev, buffer, try * block_size, current_block); in do_write()
409 if (ext2fs_llseek (dev, (ext2_loff_t) current_block * block_size, in do_write()
410 SEEK_SET) != (ext2_loff_t) current_block * block_size) in do_write()
414 got = write (dev, buffer, try * block_size); in do_write()
419 got /= block_size; in do_write()
435 int block_size, blk_t first_block, in test_ro() argument
458 blkbuf = allocate_buffer((blocks_at_once + 1) * block_size); in test_ro()
460 blkbuf = allocate_buffer(blocks_at_once * block_size); in test_ro()
474 pattern_fill(blkbuf + blocks_at_once * block_size, in test_ro()
475 t_patts[0], block_size); in test_ro()
506 got = do_read (dev, blkbuf, try, block_size, currently_testing); in test_ro()
512 if (memcmp (blkbuf+i*block_size, in test_ro()
513 blkbuf+blocks_at_once*block_size, in test_ro()
514 block_size)) in test_ro()
550 int block_size, blk_t first_block, in test_rw() argument
562 buffer = allocate_buffer(2 * blocks_at_once * block_size); in test_rw()
563 read_buffer = buffer + blocks_at_once * block_size; in test_rw()
588 blocks_at_once * block_size); in test_rw()
604 got = do_write(dev, buffer, try, block_size, in test_rw()
649 got = do_read (dev, read_buffer, try, block_size, in test_rw()
656 if (memcmp(read_buffer + i * block_size, in test_rw()
657 buffer + i * block_size, in test_rw()
658 block_size)) in test_rw()
691 int block_size, blk_t first_block, in test_nd() argument
721 blkbuf = allocate_buffer(3 * blocks_at_once * block_size); in test_nd()
729 test_base = blkbuf + (blocks_at_once * block_size); in test_nd()
730 read_base = blkbuf + (2 * blocks_at_once * block_size); in test_nd()
754 block_size, test_record[i].block); in test_nd()
755 save_ptr += test_record[i].num * block_size; in test_nd()
773 blocks_at_once * block_size); in test_nd()
804 got = do_read (dev, save_ptr, try, block_size, in test_nd()
821 written = do_write (dev, test_ptr, got, block_size, in test_nd()
830 save_ptr += got * block_size; in test_nd()
831 test_ptr += got * block_size; in test_nd()
875 block_size, currently_testing); in test_nd()
880 if (memcmp (test_ptr+i*block_size, in test_nd()
881 read_ptr+i*block_size, block_size)) in test_nd()
890 block_size, currently_testing); in test_nd()
891 save_ptr += got * block_size; in test_nd()
894 test_ptr += got * block_size; in test_nd()
895 read_ptr += got * block_size; in test_nd()
985 int block_size = 1024; in main() local
1027 block_size = parse_uint(optarg, "block size"); in main()
1123 block_size, in main()
1233 bb_count = test_func(dev, last_block, block_size, in main()