Interface NativeFileSystem
-
public interface NativeFileSystemNative file system API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetFileSystemBlockSize(int fd)intgetFileSystemBlockSize(Path path)longgetSparseFileSize(int fd)voidpunchHole(int fd, long off, long len)
-
-
-
Method Detail
-
getFileSystemBlockSize
int getFileSystemBlockSize(Path path)
- Parameters:
path- Path.- Returns:
- File system block size in bytes.
-
getFileSystemBlockSize
int getFileSystemBlockSize(int fd)
- Parameters:
fd- Native file descriptor.- Returns:
- File system block size in bytes.
-
punchHole
void punchHole(int fd, long off, long len)- Parameters:
fd- Native file descriptor.off- Offset of the hole.len- Length of the hole.
-
getSparseFileSize
long getSparseFileSize(int fd)
- Parameters:
fd- Native file descriptor.- Returns:
- Approximate system dependent size of the sparse file.
-
-