/reactos/base/services/nfsd/ |
H A D | nfs41_superblock.c | 103 superblock->fsid.major, superblock->fsid.minor); in get_superblock_attrs() 153 superblock->fsid.major, superblock->fsid.minor, in get_superblock_attrs() 154 superblock->maxread, superblock->maxwrite, in get_superblock_attrs() 155 superblock->layout_types, superblock->cansettime, in get_superblock_attrs() 156 superblock->time_delta.seconds, superblock->time_delta.nseconds, in get_superblock_attrs() 157 superblock->aclsupport, superblock->link_support, in get_superblock_attrs() 158 superblock->symlink_support, superblock->case_preserving, in get_superblock_attrs() 189 superblock->case_preserving, superblock->case_insensitive, in nfs41_superblock_fs_attributes() 250 file->fh.superblock = parent->superblock; in nfs41_superblock_for_fh() 260 if (superblock) { in nfs41_superblock_for_fh() [all …]
|
H A D | volume.c | 67 nfs41_superblock *superblock = state->file.fh.superblock; in get_volume_size_info() local 70 AcquireSRWLockShared(&superblock->lock); in get_volume_size_info() 73 info.space_total = superblock->space_total; in get_volume_size_info() 74 info.space_avail = superblock->space_avail; in get_volume_size_info() 75 info.space_free = superblock->space_free; in get_volume_size_info() 81 ReleaseSRWLockShared(&superblock->lock); in get_volume_size_info() 97 AcquireSRWLockExclusive(&superblock->lock); in get_volume_size_info() 98 superblock->space_total = info.space_total; in get_volume_size_info() 99 superblock->space_avail = info.space_avail; in get_volume_size_info() 100 superblock->space_free = info.space_free; in get_volume_size_info() [all …]
|
H A D | nfs41.h | 449 IN const nfs41_superblock *superblock, in nfs41_superblock_getattr_mask() argument 452 memcpy(attrs, &superblock->default_getattr, sizeof(bitmap4)); in nfs41_superblock_getattr_mask() 455 IN const nfs41_superblock *superblock, in nfs41_superblock_supported_attrs() argument 458 bitmap_intersect(attrs, &superblock->supported_attrs); in nfs41_superblock_supported_attrs() 461 IN const nfs41_superblock *superblock, in nfs41_superblock_supported_attrs_exclcreat() argument 464 bitmap_intersect(attrs, &superblock->suppattr_exclcreat); in nfs41_superblock_supported_attrs_exclcreat() 469 IN const nfs41_superblock *superblock, 473 IN nfs41_superblock *superblock);
|
H A D | setattr.c | 62 nfs41_superblock *superblock = state->file.fh.superblock; in handle_nfs41_setattr() local 94 if (superblock->cansettime) { in handle_nfs41_setattr() 97 info.time_delta = &superblock->time_delta; in handle_nfs41_setattr() 130 nfs41_superblock_supported_attrs(superblock, &info.attrmask); in handle_nfs41_setattr() 310 if (state->parent.fh.superblock != dst_dir.fh.superblock) { in handle_nfs41_rename() 445 if (state->file.fh.superblock != dst_dir.fh.superblock) { in handle_nfs41_link()
|
H A D | nfs41_ops.c | 469 parent->fh.superblock, &createattrs->attrmask); in nfs41_open() 473 parent->fh.superblock, &createattrs->attrmask); in nfs41_open() 510 file->fh.superblock = parent->fh.superblock; in nfs41_open() 521 nfs41_superblock_space_changed(file->fh.superblock); in nfs41_open() 605 file->fh.superblock = parent->fh.superblock; in nfs41_create() 622 nfs41_superblock_space_changed(file->fh.superblock); in nfs41_create() 769 nfs41_superblock_space_changed(file->fh.superblock); in nfs41_write() 899 nfs41_superblock_space_changed(file->fh.superblock); in nfs41_commit() 1242 nfs41_superblock_space_changed(parent->fh.superblock); in nfs41_remove() 1992 layout->filehandles.arr[i].fh.superblock = file->fh.superblock; in pnfs_rpc_layoutget() [all …]
|
H A D | util.c | 89 return (uint32_t)min(fh->superblock->maxread, maxresponse - READ_OVERHEAD); in max_read_size() 97 return (uint32_t)min(fh->superblock->maxwrite, maxrequest - WRITE_OVERHEAD); in max_write_size() 359 dst->superblock = src->superblock; in fh_copy()
|
H A D | delegation.c | 383 if (lhs->superblock != rhs->superblock) return -1; in deleg_file_cmp() 446 nfs41_superblock *superblock = deleg->file.fh.superblock; in delegation_truncate() local 454 info->time_delta = &superblock->time_delta; in delegation_truncate() 457 nfs41_superblock_supported_attrs(superblock, &info->attrmask); in delegation_truncate()
|
/reactos/drivers/filesystems/btrfs/ |
H A D | read.c | 109 switch (Vcb->superblock.csum_type) { in get_tree_checksum() 129 switch (Vcb->superblock.csum_type) { in check_tree_checksum() 183 switch (Vcb->superblock.csum_type) { in get_sector_csum() 203 switch (Vcb->superblock.csum_type) { in check_sector_csum() 784 do_xor(t2, t2 + Vcb->superblock.node_size, Vcb->superblock.node_size); in read_data_raid5() 872 … do_xor(sector, sector + Vcb->superblock.sector_size, Vcb->superblock.sector_size); in read_data_raid5() 1152 …do_xor(sector + (stripe * Vcb->superblock.node_size), sector + (j * Vcb->superblock.node_size), Vc… in read_data_raid6() 1156 … RtlCopyMemory(buf, sector + (stripe * Vcb->superblock.node_size), Vcb->superblock.node_size); in read_data_raid6() 1165 … sector + (stripe * Vcb->superblock.node_size), Vcb->superblock.node_size); in read_data_raid6() 1215 …RtlCopyMemory(buf, sector + (ci->num_stripes * Vcb->superblock.node_size), Vcb->superblock.node_si… in read_data_raid6() [all …]
|
H A D | scrub.c | 970 pos += Vcb->superblock.sector_size; in scrub_extent_raid0() 983 pos += Vcb->superblock.node_size; in scrub_extent_raid0() 1145 … Vcb->superblock.sector_size) != Vcb->superblock.sector_size) { in scrub_extent_raid10() 1162 … Vcb->superblock.node_size) != Vcb->superblock.node_size) { in scrub_extent_raid10() 1824 Vcb->superblock.sector_size); in scrub_raid5_stripe() 1841 Vcb->superblock.node_size); in scrub_raid5_stripe() 1861 Vcb->superblock.sector_size); in scrub_raid5_stripe() 2048 Vcb->superblock.sector_size); in scrub_raid6_stripe() 2077 …len = RtlCheckBit(&context->is_tree, bad_off1) ? Vcb->superblock.node_size : Vcb->superblock.secto… in scrub_raid6_stripe() 2872 if (size < Vcb->superblock.sector_size) { in scrub_chunk_raid56() [all …]
|
H A D | btrfs.c | 1182 …lNumber = Vcb->superblock.uuid.uuid[12] << 24 | Vcb->superblock.uuid.uuid[13] << 16 | Vcb->superbl… 2884 superblock* sb; 2934 RtlCopyMemory(&Vcb->superblock, sb, sizeof(superblock)); 3925 ULONG n = Vcb->superblock.n; 3944 ci = (CHUNK_ITEM*)&Vcb->superblock.sys_chunk_array[Vcb->superblock.n - n]; 4261 superblock* sb; 4316 superblock* sb; 4627 Vcb->superblock.metadata_uuid = Vcb->superblock.uuid; 4824 …(!(Vcb->superblock.compat_ro_flags & BTRFS_COMPAT_RO_FLAGS_FREE_SPACE_CACHE) && Vcb->superblock.ge… 5113 superblock* sb; [all …]
|
H A D | flushthread.c | 1807 switch (Vcb->superblock.csum_type) { in calc_tree_checksum() 2238 ULONG sblen = (ULONG)sector_align(sizeof(superblock), Vcb->superblock.sector_size); in write_superblock() 2239 superblock* sb; in write_superblock() 2249 RtlCopyMemory(sb, &Vcb->superblock, sizeof(superblock)); in write_superblock() 2251 if (sblen > sizeof(superblock)) in write_superblock() 2252 RtlZeroMemory((uint8_t*)sb + sizeof(superblock), sblen - sizeof(superblock)); in write_superblock() 2353 …RtlCopyMemory(&Vcb->superblock.backup[i], &Vcb->superblock.backup[i+1], sizeof(superblock_backup)); in write_superblocks() 4303 Vcb->superblock.bytes_used += c->used; in create_chunk() 5509 ULONG sblen = (ULONG)sector_align(sizeof(superblock), Vcb->superblock.sector_size); in add_trim_entry_avoid_sb() 7803 Vcb->superblock.cache_generation = Vcb->superblock.generation; in do_write2() [all …]
|
H A D | reparse.c | 260 …fcb->inode_item.generation = fcb->Vcb->superblock.generation; // so we don't confuse btrfs send on… in set_symlink() 286 fcb->inode_item.transid = fcb->Vcb->superblock.generation; in set_symlink() 295 fcb->subvol->root_item.ctransid = fcb->Vcb->superblock.generation; in set_symlink() 387 fcb->inode_item.transid = fcb->Vcb->superblock.generation; in set_reparse_point2() 399 fcb->subvol->root_item.ctransid = fcb->Vcb->superblock.generation; in set_reparse_point2() 566 fileref->fcb->inode_item.transid = fileref->fcb->Vcb->superblock.generation; in delete_reparse_point() 585 fileref->fcb->subvol->root_item.ctransid = fcb->Vcb->superblock.generation; in delete_reparse_point() 605 fcb->inode_item.transid = fcb->Vcb->superblock.generation; in delete_reparse_point() 617 fcb->subvol->root_item.ctransid = fcb->Vcb->superblock.generation; in delete_reparse_point() 638 fcb->inode_item.transid = fcb->Vcb->superblock.generation; in delete_reparse_point() [all …]
|
H A D | calcthread.c | 56 cj2->in = (uint8_t*)cj2->in + Vcb->superblock.sector_size; in calc_thread_main() 75 *(uint32_t*)dest = ~calc_crc32c(0xffffffff, src, Vcb->superblock.sector_size); in calc_thread_main() 79 *(uint64_t*)dest = XXH64(src, Vcb->superblock.sector_size, 0); in calc_thread_main() 83 calc_sha256(dest, src, Vcb->superblock.sector_size); in calc_thread_main() 87 blake2b(dest, BLAKE2_HASH_SIZE, src, Vcb->superblock.sector_size); in calc_thread_main() 149 switch (Vcb->superblock.csum_type) { in do_calc_job()
|
H A D | fsctl.c | 133 c->used += Vcb->superblock.node_size; in snapshot_tree_copy() 142 th->generation = Vcb->superblock.generation; in snapshot_tree_copy() 143 th->fs_uuid = Vcb->superblock.metadata_uuid; in snapshot_tree_copy() 2640 superblock* sb; in is_device_part_of_mounted_btrfs_raid() 2644 …to_read = devobj->SectorSize == 0 ? sizeof(superblock) : (ULONG)sector_align(sizeof(superblock), d… in is_device_part_of_mounted_btrfs_raid() 2950 dev->devitem.fs_uuid = Vcb->superblock.uuid; in add_device() 3099 Vcb->superblock.num_devices++; in add_device() 3100 Vcb->superblock.total_bytes += size; in add_device() 4834 Vcb->superblock.total_bytes -= delta; in resize_device() 4880 Vcb->superblock.total_bytes += delta; in resize_device() [all …]
|
H A D | free-space.c | 268 len = Vcb->superblock.sector_size * 8; in load_free_space_bitmap() 605 off = sector_align(off, Vcb->superblock.sector_size); in load_stored_free_space_cache() 631 off = sector_align(off, Vcb->superblock.sector_size); in load_stored_free_space_cache() 894 …if (Vcb->superblock.compat_ro_flags & BTRFS_COMPAT_RO_FLAGS_FREE_SPACE_CACHE && Vcb->superblock.co… in load_free_space_cache() 901 } else if (Vcb->superblock.generation - 1 == Vcb->superblock.cache_generation) { in load_free_space_cache() 1744 off = sector_align(off, Vcb->superblock.sector_size); in update_chunk_cache() 1758 c->cache->inode_item.generation = Vcb->superblock.generation; in update_chunk_cache() 1759 c->cache->inode_item.transid = Vcb->superblock.generation; in update_chunk_cache() 1795 fsi->generation = Vcb->superblock.generation; in update_chunk_cache() 1802 *cachegen = Vcb->superblock.generation; in update_chunk_cache() [all …]
|
H A D | compress.c | 891 …if (!(fcb->Vcb->superblock.incompat_flags & BTRFS_INCOMPAT_FLAGS_COMPRESS_ZSTD) && fcb->prop_compr… in write_compressed() 893 …else if (fcb->Vcb->superblock.incompat_flags & BTRFS_INCOMPAT_FLAGS_COMPRESS_ZSTD && fcb->prop_com… in write_compressed() 895 …else if (!(fcb->Vcb->superblock.incompat_flags & BTRFS_INCOMPAT_FLAGS_COMPRESS_LZO) && fcb->prop_c… in write_compressed() 897 …else if (fcb->Vcb->superblock.incompat_flags & BTRFS_INCOMPAT_FLAGS_COMPRESS_LZO && fcb->prop_comp… in write_compressed() 959 if (parts[i].cj->space_left >= fcb->Vcb->superblock.sector_size) { in write_compressed() 964 fcb->Vcb->superblock.incompat_flags |= BTRFS_INCOMPAT_FLAGS_COMPRESS_LZO; in write_compressed() 966 fcb->Vcb->superblock.incompat_flags |= BTRFS_INCOMPAT_FLAGS_COMPRESS_ZSTD; in write_compressed() 968 if ((parts[i].outlen & (fcb->Vcb->superblock.sector_size - 1)) != 0) { in write_compressed() 969 …nsigned int newlen = (unsigned int)sector_align(parts[i].outlen, fcb->Vcb->superblock.sector_size); in write_compressed() 977 … parts[i].outlen = (unsigned int)sector_align(parts[i].inlen, fcb->Vcb->superblock.sector_size); in write_compressed() [all …]
|
H A D | balance.c | 107 c->used -= Vcb->superblock.node_size; 748 newchunk->used += Vcb->superblock.node_size; 768 c2->used += Vcb->superblock.node_size; 804 newchunk->used += Vcb->superblock.node_size; 1035 tw->length = Vcb->superblock.node_size; 2559 superblock* sb; in remove_superblocks() 2562 sb = ExAllocatePoolWithTag(PagedPool, sizeof(superblock), ALLOC_TAG); in remove_superblocks() 2568 RtlZeroMemory(sb, sizeof(superblock)); in remove_superblocks() 2650 Vcb->superblock.num_devices--; 2651 Vcb->superblock.total_bytes -= dev->devitem.num_bytes; [all …]
|
H A D | devctrl.c | 36 RtlCopyMemory(&msg->StableGuid, &Vcb->superblock.uuid, sizeof(GUID)); in mountdev_query_stable_guid() 89 RtlCopyMemory(&bfs->uuid, &Vcb->superblock.uuid, sizeof(BTRFS_UUID)); in query_filesystems() 93 bfs->num_devices = (uint32_t)Vcb->superblock.num_devices; in query_filesystems()
|
H A D | extent-tree.c | 255 if ((uint16_t)(inline_len + 1 + extlen) > Vcb->superblock.node_size >> 2) { in construct_extent_item() 273 ei->generation = Vcb->superblock.generation; in construct_extent_item() 500 ei->generation = Vcb->superblock.generation; in increase_extent_refcount() 504 if (is_tree && !(Vcb->superblock.incompat_flags & BTRFS_INCOMPAT_FLAGS_SKINNY_METADATA)) { in increase_extent_refcount() 514 if (Vcb->superblock.incompat_flags & BTRFS_INCOMPAT_FLAGS_SKINNY_METADATA && is_tree) in increase_extent_refcount() 684 max_extent_item_size = (Vcb->superblock.node_size >> 4) - sizeof(leaf_node); in increase_extent_refcount() 916 if (is_tree && Vcb->superblock.incompat_flags & BTRFS_INCOMPAT_FLAGS_SKINNY_METADATA) { in decrease_extent_refcount() 1667 …if (Vcb->superblock.incompat_flags & BTRFS_INCOMPAT_FLAGS_SKINNY_METADATA && tp.item->key.obj_id =… in get_extent_refcount() 1851 …if (Vcb->superblock.incompat_flags & BTRFS_INCOMPAT_FLAGS_SKINNY_METADATA && tp.item->key.obj_id =… in get_extent_flags() 1892 …if (Vcb->superblock.incompat_flags & BTRFS_INCOMPAT_FLAGS_SKINNY_METADATA && tp.item->key.obj_id =… in update_extent_flags() [all …]
|
H A D | treefuncs.c | 70 … if ((t->header.num_items * sizeof(leaf_node)) + sizeof(tree_header) > Vcb->superblock.node_size) { in load_tree() 91 if (ln[i].size + sizeof(tree_header) + sizeof(leaf_node) > Vcb->superblock.node_size) { in load_tree() 113 …if ((t->header.num_items * sizeof(internal_node)) + sizeof(tree_header) > Vcb->superblock.node_siz… in load_tree() 227 buf = ExAllocatePoolWithTag(PagedPool, Vcb->superblock.node_size, ALLOC_TAG); in do_load_tree() 233 Status = read_data(Vcb, th->address, Vcb->superblock.node_size, NULL, true, buf, NULL, in do_load_tree() 1000 t->header.generation = Vcb->superblock.generation; 1039 gen = tp->tree->Vcb->superblock.generation; 1327 … uint16_t maxlen = (uint16_t)(Vcb->superblock.node_size - sizeof(tree_header) - sizeof(leaf_node)); in handle_batch_collision() 1445 if (Vcb->superblock.incompat_flags & BTRFS_INCOMPAT_FLAGS_EXTENDED_IREF) { in handle_batch_collision() 1706 if (Vcb->superblock.incompat_flags & BTRFS_INCOMPAT_FLAGS_EXTENDED_IREF) { in handle_batch_collision() [all …]
|
H A D | write.c | 417 max_stripes = (uint16_t)min(0xffff, Vcb->superblock.num_devices); in alloc_chunk() 429 max_stripes = (uint16_t)min(0xffff, Vcb->superblock.num_devices); in alloc_chunk() 611 Vcb->superblock.chunk_root_generation = Vcb->superblock.generation; in alloc_chunk() 664 Vcb->superblock.incompat_flags |= BTRFS_INCOMPAT_FLAGS_RAID56; in alloc_chunk() 2845 ed->generation = Vcb->superblock.generation; in insert_extent_chunk() 3286 ed->generation = fcb->Vcb->superblock.generation; in truncate_file() 3431 ed->generation = fcb->Vcb->superblock.generation; in extend_file() 3535 ed->generation = fcb->Vcb->superblock.generation; in extend_file() 4431 ed2->generation = fcb->Vcb->superblock.generation; in write_file2() 4515 origii->transid = Vcb->superblock.generation; in write_file2() [all …]
|
H A D | dirctrl.c | 349 … fbdi->AllocationSize.QuadPart = sector_align(ii.st_size, fcb->Vcb->superblock.sector_size); in query_dir_item() 389 … fdi->AllocationSize.QuadPart = sector_align(ii.st_size, fcb->Vcb->superblock.sector_size); in query_dir_item() 427 … ffdi->AllocationSize.QuadPart = sector_align(ii.st_size, fcb->Vcb->superblock.sector_size); in query_dir_item() 466 … fibdi->AllocationSize.QuadPart = sector_align(ii.st_size, fcb->Vcb->superblock.sector_size); in query_dir_item() 507 … fifdi->AllocationSize.QuadPart = sector_align(ii.st_size, fcb->Vcb->superblock.sector_size); in query_dir_item() 552 … fiedi->AllocationSize.QuadPart = sector_align(ii.st_size, fcb->Vcb->superblock.sector_size); in query_dir_item() 595 … fiebdi->AllocationSize.QuadPart = sector_align(ii.st_size, fcb->Vcb->superblock.sector_size); in query_dir_item()
|
/reactos/sdk/lib/fslib/btrfslib/ |
H A D | btrfslib.c | 732 static void calc_superblock_checksum(superblock* sb) { 735 …*(uint32_t*)sb = ~calc_crc32c(0xffffffff, (uint8_t*)&sb->uuid, (ULONG)sizeof(superblock) - sizeof(… 739 *(uint64_t*)sb = XXH64(&sb->uuid, sizeof(superblock) - sizeof(sb->checksum), 0); 743 calc_sha256((uint8_t*)sb, &sb->uuid, sizeof(superblock) - sizeof(sb->checksum)); 747 … blake2b((uint8_t*)sb, BLAKE2_HASH_SIZE, &sb->uuid, sizeof(superblock) - sizeof(sb->checksum)); 758 superblock* sb; 1165 static bool check_superblock_checksum(superblock* sb) { 1174 uint64_t hash = XXH64(&sb->uuid, sizeof(superblock) - sizeof(sb->checksum), 0); 1182 calc_sha256(hash, &sb->uuid, sizeof(superblock) - sizeof(sb->checksum)); 1190 blake2b(hash, sizeof(hash), &sb->uuid, sizeof(superblock) - sizeof(sb->checksum)); [all …]
|
/reactos/modules/rosapps/applications/sysutils/mkdosfs/ |
H A D | mkdosfs-ygg-0.3b.lsm | 7 sector/superblock format of DOS 3.3+ as well as
|
H A D | ChangeLog | 8 (superblock) format of DOS 3.3+, with support for volume ID's and
|