No way to retrieve file system block sizes?
I think there's currently no way to retrieve the underlying native file system block size for a given file, at least not without resorting to jni or Runtime.exec()
For a most convenient solution it could be implemented as a method (eg. getFSBlockSize()) in java.io.File, although I understand it may not be a frequently used property and it could carry some innecesary overhead. Other alternatives could be java.nio.file.FileSystem, java.nio.file.FileStore or even as a property in java.nio.file.attribute.FileStoreSpaceAttributeView.