Lines Matching refs:sectorsize
29 __s32 sectorsize; member
48 __s32 sectorsize; member
91 __u32 sectorsize; member
103 __u32 sectorsize; member
125 void cow_sizes(int version, __u64 size, int sectorsize, int align, in cow_sizes() argument
130 *bitmap_len_out = (size + sectorsize - 1) / (8 * sectorsize); in cow_sizes()
133 *data_offset_out = (*data_offset_out + sectorsize - 1) / in cow_sizes()
134 sectorsize; in cow_sizes()
135 *data_offset_out *= sectorsize; in cow_sizes()
138 *bitmap_len_out = DIV_ROUND(size, sectorsize); in cow_sizes()
198 int sectorsize, int alignment, unsigned long long *size) in write_cow_header() argument
251 header->sectorsize = htobe32(sectorsize); in write_cow_header()
319 *sectorsize_out = header->v1.sectorsize; in read_cow_header()
332 *sectorsize_out = be32toh(header->v2.sectorsize); in read_cow_header()
346 *sectorsize_out = be32toh(header->v3.sectorsize); in read_cow_header()
377 *sectorsize_out = be32toh(header->v3_b.sectorsize); in read_cow_header()
403 int init_cow_file(int fd, char *cow_file, char *backing_file, int sectorsize, in init_cow_file() argument
411 err = write_cow_header(cow_file, fd, backing_file, sectorsize, in init_cow_file()
417 cow_sizes(COW_VERSION, size, sectorsize, alignment, *bitmap_offset_out, in init_cow_file()