Lines Matching refs:blocksize

43 static int check_zero_block(char *buf, int blocksize)  in check_zero_block()  argument
46 int left = blocksize; in check_zero_block()
70 buf = malloc(fs->blocksize * BUF_BLOCKS); in ext2fs_image_inode_write()
95 if (check_zero_block(cp, fs->blocksize)) { in ext2fs_image_inode_write()
99 cp += fs->blocksize; in ext2fs_image_inode_write()
100 r = lseek(fd, fs->blocksize, SEEK_CUR); in ext2fs_image_inode_write()
109 if (check_zero_block(cp + d*fs->blocksize, fs->blocksize)) in ext2fs_image_inode_write()
113 actual = write(fd, cp, fs->blocksize * d); in ext2fs_image_inode_write()
118 if (actual != (ssize_t) (fs->blocksize * d)) { in ext2fs_image_inode_write()
124 cp += fs->blocksize * d; in ext2fs_image_inode_write()
148 buf = malloc(fs->blocksize * BUF_BLOCKS); in ext2fs_image_inode_read()
163 actual = read(fd, buf, fs->blocksize * c); in ext2fs_image_inode_read()
168 if (actual != (ssize_t) (fs->blocksize * c)) { in ext2fs_image_inode_read()
197 buf = malloc(fs->blocksize); in ext2fs_image_super_write()
204 memset(buf, 0, fs->blocksize); in ext2fs_image_super_write()
206 actual = write(fd, buf, fs->blocksize); in ext2fs_image_super_write()
211 if (actual != (ssize_t) fs->blocksize) { in ext2fs_image_super_write()
220 actual = write(fd, cp, fs->blocksize * fs->desc_blocks); in ext2fs_image_super_write()
225 if (actual != (ssize_t) (fs->blocksize * fs->desc_blocks)) { in ext2fs_image_super_write()
247 size = fs->blocksize * (fs->group_desc_count + 1); in ext2fs_image_super_read()
270 memcpy(fs->group_desc, buf + fs->blocksize, in ext2fs_image_super_read()
271 fs->blocksize * fs->group_desc_count); in ext2fs_image_super_read()
335 size = total_size % fs->blocksize; in ext2fs_image_bitmap_write()
338 size = fs->blocksize - size; in ext2fs_image_bitmap_write()