/openbmc/qemu/tests/qemu-iotests/ |
H A D | 031.out | 12 cluster_bits 16 40 cluster_bits 16 68 cluster_bits 16 103 cluster_bits 16 136 cluster_bits 16 169 cluster_bits 16
|
H A D | 163 | 51 1 << (h.cluster_bits*2 - entry_size)) 61 cluster = fd.read(1 << h.cluster_bits) 71 reftable = fd.read(h.refcount_table_clusters << h.cluster_bits)
|
H A D | 061.out | 12 cluster_bits 16 36 cluster_bits 16 70 cluster_bits 16 94 cluster_bits 16 126 cluster_bits 16 155 cluster_bits 16 181 cluster_bits 16 205 cluster_bits 16 231 cluster_bits 16 250 cluster_bits 16 [all …]
|
H A D | 303.out | 33 cluster_bits 16 116 "cluster_bits": 16,
|
/openbmc/linux/fs/ntfs3/ |
H A D | fsntfs.c | 1131 u8 cluster_bits = sbi->cluster_bits; in ntfs_sb_write_run() local 1168 lbo = ((u64)lcn << cluster_bits); in ntfs_sb_write_run() 1179 u8 cluster_bits = sbi->cluster_bits; in ntfs_bread_run() local 1197 u8 cluster_bits = sbi->cluster_bits; in ntfs_read_run_nb() local 1326 u8 cluster_bits = sbi->cluster_bits; in ntfs_get_bh() local 1506 u8 cluster_bits = sbi->cluster_bits; in ntfs_bio_pages() local 1523 vcn = vbo >> cluster_bits; in ntfs_bio_pages() 1601 u8 cluster_bits = sbi->cluster_bits; in ntfs_bio_fill_1() local 1630 lbo = (u64)lcn << cluster_bits; in ntfs_bio_fill_1() 1631 len = (u64)clen << cluster_bits; in ntfs_bio_fill_1() [all …]
|
H A D | attrib.c | 407 u8 cluster_bits = sbi->cluster_bits; in attr_set_size() local 457 old_alen = old_alloc >> cluster_bits; in attr_set_size() 888 u8 cluster_bits; in attr_data_get_block() local 912 cluster_bits = sbi->cluster_bits; in attr_data_get_block() 1347 u8 cluster_bits = sbi->cluster_bits; in attr_load_runs_range() local 1914 vcn = vbo >> sbi->cluster_bits; in attr_collapse_range() 1915 len = bytes >> sbi->cluster_bits; in attr_collapse_range() 2176 vcn = vbo >> sbi->cluster_bits; in attr_punch_hole() 2177 len = bytes >> sbi->cluster_bits; in attr_punch_hole() 2376 vcn = vbo >> sbi->cluster_bits; in attr_insert_range() [all …]
|
H A D | super.c | 878 u8 cluster_bits; in ntfs_init_from_boot() local 929 sbi->cluster_bits = cluster_bits = blksize_bits(sbi->cluster_size); in ntfs_init_from_boot() 946 record_size = (u32)boot->record_size << cluster_bits; in ntfs_init_from_boot() 1012 sbi->mft.lbo = mlcn << cluster_bits; in ntfs_init_from_boot() 1013 sbi->mft.lbo2 = mlcn2 << cluster_bits; in ntfs_init_from_boot() 1051 clusters = sbi->volume.size >> cluster_bits; in ntfs_init_from_boot() 1091 sbi->maxbytes = (clusters << cluster_bits) - 1; in ntfs_init_from_boot() 1094 if (clusters >= (1ull << (64 - cluster_bits))) in ntfs_init_from_boot() 1101 sb->s_maxbytes = 0xFFFFFFFFull << cluster_bits; in ntfs_init_from_boot() 1671 lbo = (u64)lcn << sbi->cluster_bits; in ntfs_discard() [all …]
|
H A D | file.c | 123 bits = sbi->cluster_bits; in ntfs_extend_initialized_size() 289 CLST vcn = from >> sbi->cluster_bits; in ntfs_file_mmap() 579 u8 cluster_bits = sbi->cluster_bits; in ntfs_fallocate() local 586 (to_alloc >> cluster_bits) > in ntfs_fallocate() 607 CLST vcn = vbo >> cluster_bits; in ntfs_fallocate() 857 u8 frame_bits = NTFS_LZNT_CUNIT + sbi->cluster_bits; in ntfs_compress_write() 902 frame_vbo + ((u64)clen << sbi->cluster_bits); in ntfs_compress_write()
|
H A D | frecord.c | 530 u8 cluster_bits = sbi->cluster_bits; in ni_repack() 549 cluster_bits; in ni_repack() 1910 u8 cluster_bits = sbi->cluster_bits; in ni_fiemap() local 1914 CLST vcn = vbo >> cluster_bits; in ni_fiemap() 2004 vbo = (u64)vcn << cluster_bits; in ni_fiemap() 2024 vbo = (u64)vcn << cluster_bits; in ni_fiemap() 2025 bytes = (u64)clen << cluster_bits; in ni_fiemap() 2026 lbo = (u64)lcn << cluster_bits; in ni_fiemap() 2113 frame_bits = NTFS_LZNT_CUNIT + sbi->cluster_bits; in ni_readpage_cmpr() 2453 u8 cluster_bits = sbi->cluster_bits; in ni_read_frame() local [all …]
|
H A D | bitmap.c | 505 u8 cluster_bits = sbi->cluster_bits; in wnd_rescan() local 545 if (!run_lookup_entry(&wnd->run, vbo >> cluster_bits, in wnd_rescan() 551 lbo = ((u64)lcn << cluster_bits) + off; in wnd_rescan() 552 len = ((u64)clen << cluster_bits) - off; in wnd_rescan() 692 if (!run_lookup_entry(&wnd->run, vbo >> sbi->cluster_bits, &lcn, &clen, in wnd_map() 697 lbo = ((u64)lcn << sbi->cluster_bits) + (vbo & sbi->cluster_mask); in wnd_map() 1502 range->len = (u64)done << sbi->cluster_bits; in ntfs_trim_fs()
|
H A D | inode.c | 59 t64 = sbi->mft.lbo >> sbi->cluster_bits; in ntfs_read_mft() 560 u8 cluster_bits = sbi->cluster_bits; in ntfs_get_block_vbo() local 583 vcn = vbo >> cluster_bits; in ntfs_get_block_vbo() 595 bytes = ((u64)len << cluster_bits) - off; in ntfs_get_block_vbo() 609 lbo = ((u64)lcn << cluster_bits) + off; in ntfs_get_block_vbo()
|
H A D | index.c | 210 CLST vcn = off >> sbi->cluster_bits; in bmp_buf_get() 390 vcn = vbo >> sbi->cluster_bits; in scan_nres_bitmap() 912 if (t32 != root->index_block_clst << sbi->cluster_bits) in indx_init() 915 indx->vbn2vbo_bits = sbi->cluster_bits; in indx_init() 1440 CLST len = alloc_size >> sbi->cluster_bits; in indx_create_allocate()
|
/openbmc/qemu/block/ |
H A D | qcow.c | 63 uint8_t cluster_bits; member 73 int cluster_bits; member 166 if (header.cluster_bits < 9 || header.cluster_bits > 16) { in qcow_open() 233 s->cluster_bits = header.cluster_bits; in qcow_open() 234 s->cluster_size = 1 << s->cluster_bits; in qcow_open() 241 shift = s->cluster_bits + s->l2_bits; in qcow_open() 371 l1_index = offset >> (s->l2_bits + s->cluster_bits); in get_cluster_offset() 436 l2_index = (offset >> s->cluster_bits) & (s->l2_size - 1); in get_cluster_offset() 604 csize = cluster_offset >> (63 - s->cluster_bits); in decompress_cluster() 875 header.cluster_bits = 12; /* 4 KB clusters */ in qcow_co_create() [all …]
|
H A D | qcow2-refcount.c | 402 int block_index = (new_block >> s->cluster_bits) & in alloc_refcount_block() 843 int64_t cluster_index = cluster_offset >> s->cluster_bits; in update_refcount() 996 s->free_cluster_index - 1 > (max >> s->cluster_bits)) in alloc_clusters_noref() 1006 return (s->free_cluster_index - nb_clusters) << s->cluster_bits; in alloc_clusters_noref() 1046 cluster_index = offset >> s->cluster_bits; in qcow2_alloc_clusters_at() 1356 cluster_index = offset >> s->cluster_bits; in qcow2_update_snapshot_refcount() 1562 k = cluster_offset >> s->cluster_bits; in qcow2_inc_refcounts_imrt() 1983 ret = qcow2_get_refcount(bs, l2_offset >> s->cluster_bits, in check_oflag_copied() 2097 cluster = offset >> s->cluster_bits; in check_refblocks() 2348 ret = update_refcount(bs, i << s->cluster_bits, 1, in compare_refcounts() [all …]
|
H A D | qcow2.h | 159 uint32_t cluster_bits; member 328 int cluster_bits; member 673 return (size + (s->cluster_size - 1)) >> s->cluster_bits; in size_to_clusters() 683 int shift = s->cluster_bits + s->l2_bits; in size_to_l1() 689 return offset >> (s->l2_bits + s->cluster_bits); in offset_to_l1_index() 694 return (offset >> s->cluster_bits) & (s->l2_size - 1); in offset_to_l2_index() 699 return (offset >> s->cluster_bits) & (s->l2_slice_size - 1); in offset_to_l2_slice_index() 709 return (int64_t)s->l1_vm_state_index << (s->cluster_bits + s->l2_bits); in qcow2_vm_state_offset() 829 return offset >> (s->refcount_block_bits + s->cluster_bits); in offset_to_reftable_index()
|
H A D | qcow2-cluster.c | 607 << s->cluster_bits; in qcow2_get_host_offset() 1068 m->nb_clusters << s->cluster_bits); in qcow2_alloc_cluster_link_l2() 1070 uint64_t offset = cluster_offset + ((uint64_t)i << s->cluster_bits); in qcow2_alloc_cluster_link_l2() 1093 written_from = MAX(written_from, i << s->cluster_bits); in qcow2_alloc_cluster_link_l2() 1094 written_to = MIN(written_to, (i + 1) << s->cluster_bits); in qcow2_alloc_cluster_link_l2() 1134 m->nb_clusters << s->cluster_bits, in qcow2_alloc_cluster_abort() 1183 unsigned write_from = MAX(cow_start_to, i << s->cluster_bits); in calculate_l2_meta() 1184 unsigned write_to = MIN(cow_end_from, (i + 1) << s->cluster_bits); in calculate_l2_meta() 1736 int avail_bytes = nb_clusters << s->cluster_bits; in handle_alloc() 2298 ret = qcow2_get_refcount(bs, l2_offset >> s->cluster_bits, in expand_zero_clusters_in_l1() [all …]
|
H A D | qcow2.c | 1341 header.cluster_bits = be32_to_cpu(header.cluster_bits); in qcow2_do_open() 1365 if (header.cluster_bits < MIN_CLUSTER_BITS || in qcow2_do_open() 1366 header.cluster_bits > MAX_CLUSTER_BITS) { in qcow2_do_open() 1368 header.cluster_bits); in qcow2_do_open() 1373 s->cluster_bits = header.cluster_bits; in qcow2_do_open() 1374 s->cluster_size = 1 << s->cluster_bits; in qcow2_do_open() 1426 ext_end = 1 << header.cluster_bits; in qcow2_do_open() 2944 .cluster_bits = cpu_to_be32(s->cluster_bits), in qcow2_update_header() 3406 int cluster_bits = ctz32(cluster_size); in validate_cluster_size() local 3407 if (cluster_bits < MIN_CLUSTER_BITS || cluster_bits > MAX_CLUSTER_BITS || in validate_cluster_size() [all …]
|
/openbmc/qemu/tests/image-fuzzer/qcow2/ |
H A D | layout.py | 96 cluster_bits, self.image_size = self._size_params() 97 self.cluster_size = 1 << cluster_bits 108 self.create_header(cluster_bits, backing_file_name) 121 def create_header(self, cluster_bits, backing_file_name=None): argument 128 ['>I', 20, cluster_bits, 'cluster_bits'], 528 cluster_bits = random.randrange(9, 21) 529 cluster_size = 1 << cluster_bits 531 return (cluster_bits, img_size)
|
H A D | fuzz.py | 182 def cluster_bits(current): function
|
/openbmc/linux/fs/fat/ |
H A D | misc.c | 160 if (new_fclus != (inode->i_blocks >> (sbi->cluster_bits - 9))) { in fat_chain_add() 163 (llu)(inode->i_blocks >> (sbi->cluster_bits - 9))); in fat_chain_add() 166 inode->i_blocks += nr_cluster << (sbi->cluster_bits - 9); in fat_chain_add()
|
H A D | file.c | 288 sbi->cluster_bits; in fat_fallocate() 373 inode->i_blocks = skip << (MSDOS_SB(sb)->cluster_bits - 9); in fat_free() 392 nr_clusters = (offset + (cluster_size - 1)) >> sbi->cluster_bits; in fat_truncate_blocks()
|
H A D | cache.c | 229 const int limit = sb->s_maxbytes >> sbi->cluster_bits; in fat_get_cluster() 318 cluster = sector >> (sbi->cluster_bits - sb->s_blocksize_bits); in fat_get_mapped_cluster()
|
H A D | fatent.c | 779 ent_start = max_t(u64, range->start>>sbi->cluster_bits, FAT_START_ENT); in fat_trim_fs() 780 ent_end = ent_start + (range->len >> sbi->cluster_bits) - 1; in fat_trim_fs() 781 minlen = range->minlen >> sbi->cluster_bits; in fat_trim_fs() 845 range->len = trimmed << sbi->cluster_bits; in fat_trim_fs()
|
H A D | dir.c | 1215 *nr_cluster = (size + (sbi->cluster_size - 1)) >> sbi->cluster_bits; in fat_add_new_entries() 1392 dir->i_size += nr_cluster << sbi->cluster_bits; in fat_add_entries() 1393 MSDOS_I(dir)->mmu_private += nr_cluster << sbi->cluster_bits; in fat_add_entries()
|
/openbmc/linux/fs/ocfs2/ |
H A D | ocfs2_trace.h | 1713 unsigned long long system_dir, int cluster_bits), 1714 TP_ARGS(label, uuid_str, root_dir, system_dir, cluster_bits), 1720 __field(int, cluster_bits) 1727 __entry->cluster_bits = cluster_bits; 1730 __entry->root_dir, __entry->system_dir, __entry->cluster_bits)
|