Most people know stat for file details. With -f it describes the filesystem that holds the path instead, and that answers a few questions df doesn’t.
stat -f /srv
You get the filesystem type, the block size, the total and free blocks, and the total and free inodes. In a container, stat -f /tmp shows type overlayfs, a block size of 4096 and the inode counts.
The block size explains why a 10 byte file takes 4K of space: every file uses at least one block. Millions of tiny files on a filesystem with large blocks waste a lot. The free inode count tells you whether you can still create files at all, the same as df -i but for one path.
With -c you pick just the values you want, which I find easy to use in a script:
stat -f -c '%T block=%S free_inodes=%d' /srv
%T is the type in readable form, %S the fundamental block size and %d the free inodes. The man page lists the others.
Some filesystems report numbers that aren’t very meaningful. Btrfs and ZFS create inodes as needed, so their inode totals can look odd or change. And on macOS, stat -f means something else entirely: it’s the format option there, so this only works with GNU stat.
Further reading: stat(1) manual page