In cadvisor, we are using a special function getZfsStats for zfs (see here).
But use statfs for other filesystems.
ZFS does support statfs, why don't we use it? Is there any particular reason?
See https://github.com/zfsonlinux/zfs/blob/1b66810bad0a893031c6d49613aa83dc359bf034/module/zfs/zfs_vfsops.c#L1302-L1303
In cadvisor, we are using a special function
getZfsStatsfor zfs (see here).But use
statfsfor other filesystems.ZFS does support
statfs, why don't we use it? Is there any particular reason?See https://github.com/zfsonlinux/zfs/blob/1b66810bad0a893031c6d49613aa83dc359bf034/module/zfs/zfs_vfsops.c#L1302-L1303