You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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.
The text was updated successfully, but these errors were encountered:
The following test case fails for some reason.
I'm explicitly setting the block size, but I get an
IOException
when the test case is run:I would expect the store to return the block size instead.
The text was updated successfully, but these errors were encountered: