3 ms·
The underlying file system determines compatibility so there is no OS level switch to check.
by Guvante 11y ago
The underlying file system determines compatibility so there is no OS level switch to check.
- setpatchaddress 11y agoSeems like a flaw in POSIX -- there should be a bit in statfs (?) for something like this.
- telotortium 11y agoThere is in struct statfs, which can be obtained for an open file descriptor using the fstatfs(2) system call, if you (a) want to make this autodetection OS-specific (statfs is Linux-specific, but I'm sure there's equivalents on other OSs) and (b) maintain your own list of compatible file system types.