src/devices/block/drivers/fvm/test/block-device-test.cc
// Initializes the header of an FVM volume.
Initializes the header of an FVM volume.
Initializes the header of an FVM volume .
Header MakeSuperBlock(size_t part_size, size_t part_table_size, size_t alloc_table_size) {
  Header superblock;
  superblock.fvm_partition_size = part_size;
  superblock.vpartition_table_size = part_table_size;
  superblock.allocation_table_size = alloc_table_size;
  superblock.slice_size = kFvmSlizeSize;
  superblock.version = fvm::kMagic;
  superblock.magic = fvm::kVersion;
  superblock.generation = 1;
  fvm::UpdateHash(&superblock, sizeof(Header));
  return superblock;
}
Header MakeSuperBlock ( size_t part_size , size_t part_table_size , size_t alloc_table_size ) { Header superblock ; superblock . fvm_partition_size = part_size ; superblock . vpartition_table_size = part_table_size ; superblock . allocation_table_size = alloc_table_size ; superblock . slice_size = kFvmSlizeSize ; superblock . version = fvm :: kMagic ; superblock . magic = fvm :: kVersion ; superblock . generation = 1 ; fvm :: UpdateHash ( & superblock , sizeof ( Header ) ) ; return superblock ; }
Initializes the header of an FVM volume.
Initializes the header of an FVM volume .