Uniquely identify file in Java
问题 Im on Linux and my Java application is not intended to be portable. I'm looking for a way to identify a file uniquely in Java. I can make use of statfs syscall since the pair (f_fsid, ino) uniquely identifies a file (not only across a file system) as specified here: http://man7.org/linux/man-pages/man2/statfs.2.html The question is if it is possible extract fsid from Java directly so I can avoid writing JNI function? inode can be extracted with NIO , but how about fsid? inode and fsid comes