src/storage/blobfs/test/unit/format-test.cc
// Blobfs cannot be formatted on devices that have block sizes larger than the
// blobfs block size itself.
Blobfs cannot be formatted on devices that have block sizes larger than the
blobfs block size itself.
Blobfs cannot be formatted on devices that have block sizes larger than the blobfs block size itself .
TEST(FormatFilesystemTest, FormatNonFVMDeviceWithTooLargeBlockSize) {
  const uint64_t kBlockCount = 1 << 20;
  const uint32_t kBlockSize = kBlobfsBlockSize * 2;
  auto device = std::make_unique<FakeBlockDevice>(kBlockCount, kBlockSize);
  ASSERT_EQ(ZX_ERR_IO_INVALID, FormatFilesystem(device.get()));
  ASSERT_EQ(ZX_ERR_IO, CheckMountability(std::move(device)));
}
TEST ( FormatFilesystemTest , FormatNonFVMDeviceWithTooLargeBlockSize ) { const uint64_t kBlockCount = 1 << 20 ; const uint32_t kBlockSize = kBlobfsBlockSize * 2 ; auto device = std :: make_unique < FakeBlockDevice > ( kBlockCount , kBlockSize ) ; ASSERT_EQ ( ZX_ERR_IO_INVALID , FormatFilesystem ( device . get ( ) ) ) ; ASSERT_EQ ( ZX_ERR_IO , CheckMountability ( std :: move ( device ) ) ) ; }
Blobfs cannot be formatted on devices that have block sizes larger than the
blobfs block size itself.
Blobfs cannot be formatted on devices that have block sizes larger than the blobfs block size itself .