• Home
  • Raw
  • Download

Lines Matching refs:block_size

351 static int do_read (int dev, unsigned char * buffer, int try, int block_size,  in do_read()  argument
362 set_o_direct(dev, buffer, try * block_size, in do_read()
363 ((ext2_loff_t) current_block) * block_size); in do_read()
369 if (ext2fs_llseek (dev, (ext2_loff_t) current_block * block_size, in do_read()
370 SEEK_SET) != (ext2_loff_t) current_block * block_size) in do_read()
376 got = read (dev, buffer, try * block_size); in do_read()
383 got /= block_size; in do_read()
427 static int do_write(int dev, unsigned char * buffer, int try, int block_size, in do_write() argument
435 set_o_direct(dev, buffer, try * block_size, in do_write()
436 ((ext2_loff_t) current_block) * block_size); in do_write()
442 if (ext2fs_llseek (dev, (ext2_loff_t) current_block * block_size, in do_write()
443 SEEK_SET) != (ext2_loff_t) current_block * block_size) in do_write()
447 got = write (dev, buffer, try * block_size); in do_write()
452 got /= block_size; in do_write()
473 int block_size, blk_t first_block, in test_ro() argument
497 blkbuf = allocate_buffer((blocks_at_once + 1) * block_size); in test_ro()
499 blkbuf = allocate_buffer(blocks_at_once * block_size); in test_ro()
514 pattern_fill(blkbuf + blocks_at_once * block_size, in test_ro()
515 t_patts[0], block_size); in test_ro()
545 got = do_read (dev, blkbuf, try, block_size, currently_testing); in test_ro()
551 if (memcmp (blkbuf+i*block_size, in test_ro()
552 blkbuf+blocks_at_once*block_size, in test_ro()
553 block_size)) in test_ro()
586 int block_size, blk_t first_block, in test_rw() argument
599 buffer = allocate_buffer(2 * blocks_at_once * block_size); in test_rw()
600 read_buffer = buffer + blocks_at_once * block_size; in test_rw()
626 blocks_at_once * block_size); in test_rw()
642 got = do_write(dev, buffer, try, block_size, in test_rw()
684 got = do_read (dev, read_buffer, try, block_size, in test_rw()
700 if (memcmp(read_buffer + i * block_size, in test_rw()
701 buffer + i * block_size, in test_rw()
702 block_size)) in test_rw()
726 int block_size, blk_t first_block, in test_nd() argument
758 blkbuf = allocate_buffer(3 * blocks_at_once * block_size); in test_nd()
767 test_base = blkbuf + (blocks_at_once * block_size); in test_nd()
768 read_base = blkbuf + (2 * blocks_at_once * block_size); in test_nd()
792 block_size, test_record[i].block); in test_nd()
793 save_ptr += test_record[i].num * block_size; in test_nd()
811 blocks_at_once * block_size); in test_nd()
842 got = do_read (dev, save_ptr, try, block_size, in test_nd()
866 written = do_write (dev, test_ptr, got, block_size, in test_nd()
875 save_ptr += got * block_size; in test_nd()
876 test_ptr += got * block_size; in test_nd()
930 block_size, currently_testing); in test_nd()
935 if (memcmp (test_ptr+i*block_size, in test_nd()
936 read_ptr+i*block_size, block_size)) in test_nd()
945 block_size, currently_testing); in test_nd()
946 save_ptr += got * block_size; in test_nd()
949 test_ptr += got * block_size; in test_nd()
950 read_ptr += got * block_size; in test_nd()
1040 int block_size = 1024; in main() local
1084 block_size = parse_uint(optarg, "block size"); in main()
1183 block_size, in main()
1312 bb_count = test_func(dev, last_block, block_size, in main()