Can Java be used to access the FIEMAP or at least inode information to apply this technique in Java software?
Maybe there are libraries that will do that. Or if not, project panama will make it easier to just call the relevant libc function.
Actually this is what fclones does, because it needs other metadata of the file as well (e.g. its length). I've found fetching metadata is lot faster than reading anything from a file, so most of the gains of this optimization are still there.
long ino = (Long)Files.getAttribute(file, "unix:ino");