Mikael Djurfeldt writes: > We could, in addition to "stat", provide "statfs" (on systems that provide > it). > > The test could then first test for the presence of "statfs" and then check > if the filesystem is ext4. Here's what I've done in Debian for now after double-checking the test on a few filesystems: