The following test case fails for some reason.
@Test
void test() throws IOException {
var blockSize = 1 << 12;
var configuration = Configuration.unix().toBuilder().setBlockSize(blockSize).build();
var fs = Jimfs.newFileSystem(configuration);
var path = fs.getPath("/home/test/test.txt");
var store = Files.getFileStore(path);
assertThat(store.getBlockSize()).isEqualTo(blockSize);
}
I'm explicitly setting the block size, but I get an IOException when the test case is run:
java.lang.UnsupportedOperationException
at java.base/java.nio.file.FileStore.getBlockSize(FileStore.java:158)
...
I would expect the store to return the block size instead.