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()
194 int sectorsize, int alignment, unsigned long long *size) in write_cow_header() argument
247 header->sectorsize = htonl(sectorsize); in write_cow_header()
315 *sectorsize_out = header->v1.sectorsize; in read_cow_header()
328 *sectorsize_out = ntohl(header->v2.sectorsize); in read_cow_header()
342 *sectorsize_out = ntohl(header->v3.sectorsize); in read_cow_header()
373 *sectorsize_out = ntohl(header->v3_b.sectorsize); in read_cow_header()
399 int init_cow_file(int fd, char *cow_file, char *backing_file, int sectorsize, in init_cow_file() argument
407 err = write_cow_header(cow_file, fd, backing_file, sectorsize, in init_cow_file()
413 cow_sizes(COW_VERSION, size, sectorsize, alignment, *bitmap_offset_out, in init_cow_file()