src/storage/blobfs/test/unit/format-test.cc
// Formatting filesystems should fail on devices which have a block size that
// does not cleanly divide the blobfs block size.
Formatting filesystems should fail on devices which have a block size that
does not cleanly divide the blobfs block size.
Formatting filesystems should fail on devices which have a block size that does not cleanly divide the blobfs block size .
TEST(FormatFilesystemTest, CannotFormatDeviceWithNonDivisorBlockSize) {
  const uint64_t kBlockCount = 1 << 20;
  uint64_t kBlockSize = 511;
  EXPECT_NE(kBlobfsBlockSize % kBlockSize, 0ul) << "Expected non-divisor block size";
  auto device = std::make_unique<FakeBlockDevice>(kBlockCount, kBlockSize);
  ASSERT_EQ(ZX_ERR_IO_INVALID, FormatFilesystem(device.get()));
}
TEST ( FormatFilesystemTest , CannotFormatDeviceWithNonDivisorBlockSize ) { const uint64_t kBlockCount = 1 << 20 ; uint64_t kBlockSize = 511 ; EXPECT_NE ( kBlobfsBlockSize % kBlockSize , 0ul ) << " " ; auto device = std :: make_unique < FakeBlockDevice > ( kBlockCount , kBlockSize ) ; ASSERT_EQ ( ZX_ERR_IO_INVALID , FormatFilesystem ( device . get ( ) ) ) ; }
Formatting filesystems should fail on devices which have a block size that
does not cleanly divide the blobfs block size.
Formatting filesystems should fail on devices which have a block size that does not cleanly divide the blobfs block size .