src/storage/blobfs/test/unit/format-test.cc
// After formatting a filesystem with block size valid block size N, mounting on
// a device with an invalid block size should fail.
After formatting a filesystem with block size valid block size N, mounting on
a device with an invalid block size should fail.
After formatting a filesystem with block size valid block size N mounting on a device with an invalid block size should fail .
TEST(FormatFilesystemTest, CreateBlobfsFailureOnUnalignedBlockSize) {
  const uint64_t kBlockCount = 1 << 20;
  const uint32_t kBlockSize = 512;
  auto device = std::make_unique<FakeBlockDevice>(kBlockCount, kBlockSize);
  ASSERT_EQ(FormatFilesystem(device.get()), ZX_OK);
  device->SetBlockSize(kBlockSize + 1);
  ASSERT_EQ(ZX_ERR_IO, CheckMountability(std::move(device)));
}
TEST ( FormatFilesystemTest , CreateBlobfsFailureOnUnalignedBlockSize ) { const uint64_t kBlockCount = 1 << 20 ; const uint32_t kBlockSize = 512 ; auto device = std :: make_unique < FakeBlockDevice > ( kBlockCount , kBlockSize ) ; ASSERT_EQ ( FormatFilesystem ( device . get ( ) ) , ZX_OK ) ; device -> SetBlockSize ( kBlockSize + 1 ) ; ASSERT_EQ ( ZX_ERR_IO , CheckMountability ( std :: move ( device ) ) ) ; }
After formatting a filesystem with block size valid block size N, mounting on
a device with an invalid block size should fail.
After formatting a filesystem with block size valid block size N mounting on a device with an invalid block size should fail .