Lines Matching refs:BLOCK_SIZE

124 	char BUG_bad_inode1_size[(INODE_SIZE1 * MINIX1_INODES_PER_BLOCK != BLOCK_SIZE) ? -1 : 1];
126 char BUG_bad_inode2_size[(INODE_SIZE2 * MINIX2_INODES_PER_BLOCK != BLOCK_SIZE) ? -1 : 1];
177 char superblock_buffer[BLOCK_SIZE];
180 char add_zone_ind_blk[BLOCK_SIZE];
181 char add_zone_dind_blk[BLOCK_SIZE];
182 IF_FEATURE_MINIX2(char add_zone_tind_blk[BLOCK_SIZE];)
183 char check_file_blk[BLOCK_SIZE];
281 #define INODE_BUFFER_SIZE (INODE_BLOCKS * BLOCK_SIZE)
470 memset(addr, 0, BLOCK_SIZE); in read_block()
473 xlseek(dev_fd, BLOCK_SIZE * nr, SEEK_SET); in read_block()
474 if (BLOCK_SIZE != full_read(dev_fd, addr, BLOCK_SIZE)) { in read_block()
478 memset(addr, 0, BLOCK_SIZE); in read_block()
495 xlseek(dev_fd, BLOCK_SIZE * nr, SEEK_SET); in write_block()
496 if (BLOCK_SIZE != full_write(dev_fd, addr, BLOCK_SIZE)) { in write_block()
510 uint16_t ind[BLOCK_SIZE >> 1]; in map_block()
541 uint32_t ind[BLOCK_SIZE >> 2]; in map_block2()
593 xlseek(dev_fd, BLOCK_SIZE, SEEK_SET); in write_superblock()
594 if (BLOCK_SIZE != full_write(dev_fd, superblock_buffer, BLOCK_SIZE)) in write_superblock()
602 if (IMAPS * BLOCK_SIZE != write(dev_fd, inode_map, IMAPS * BLOCK_SIZE)) in write_tables()
604 if (ZMAPS * BLOCK_SIZE != write(dev_fd, zone_map, ZMAPS * BLOCK_SIZE)) in write_tables()
613 char blk[BLOCK_SIZE]; in get_dirsize()
623 for (size = 16; size < BLOCK_SIZE; size <<= 1) { in get_dirsize()
635 xlseek(dev_fd, BLOCK_SIZE, SEEK_SET); in read_superblock()
636 if (BLOCK_SIZE != full_read(dev_fd, superblock_buffer, BLOCK_SIZE)) in read_superblock()
657 if (ZONESIZE != 0 || BLOCK_SIZE != 1024) in read_superblock()
659 if (IMAPS * BLOCK_SIZE * 8 < INODES + 1) in read_superblock()
661 if (ZMAPS * BLOCK_SIZE * 8 < ZONES - FIRSTZONE + 1) in read_superblock()
667 inode_map = xzalloc(IMAPS * BLOCK_SIZE); in read_tables()
668 zone_map = xzalloc(ZMAPS * BLOCK_SIZE); in read_tables()
672 if (IMAPS * BLOCK_SIZE != read(dev_fd, inode_map, IMAPS * BLOCK_SIZE)) in read_tables()
674 if (ZMAPS * BLOCK_SIZE != read(dev_fd, zone_map, ZMAPS * BLOCK_SIZE)) in read_tables()
694 BLOCK_SIZE << ZONESIZE, in read_tables()
845 for (i = 0; i < (BLOCK_SIZE >> 1); i++) in add_zone_ind()
862 for (i = 0; i < BLOCK_SIZE >> 2; i++) in add_zone_ind2()
879 for (i = 0; i < (BLOCK_SIZE >> 1); i++) in add_zone_dind()
896 for (i = 0; i < BLOCK_SIZE >> 2; i++) in add_zone_dind2()
912 for (i = 0; i < BLOCK_SIZE >> 2; i++) in add_zone_tind2()
968 block = map_block(dir, offset / BLOCK_SIZE); in check_file()
970 name = check_file_blk + (offset % BLOCK_SIZE) + 2; in check_file()
1018 block = map_block2(dir, offset / BLOCK_SIZE); in check_file2()
1020 name = check_file_blk + (offset % BLOCK_SIZE) + 2; in check_file2()
1097 char buffer[BLOCK_SIZE]; in bad_zone()
1099 xlseek(dev_fd, BLOCK_SIZE * i, SEEK_SET); in bad_zone()
1100 return (BLOCK_SIZE != full_read(dev_fd, buffer, BLOCK_SIZE)); in bad_zone()