static zbx_mntopt_t mntopts[] = {
#if defined(MNTOPT_NAMES)
{MNT_ASYNC, "asynchronous"},
{MNT_EXPORTED, "NFS exported"},
{MNT_NOATIME, "noatime"},
{MNT_NOSYMFOLLOW, "nosymfollow"},
{MNT_QUOTA, "with quotas"},
{MNT_RDONLY, "read-only"},
{MNT_SYNCHRONOUS, "synchronous"},
{MNT_NOCLUSTERR, "noclusterr"},
{MNT_NOCLUSTERW, "noclusterw"},
{MNT_SUIDDIR, "suiddir"},
{MNT_SOFTDEP, "soft-updates"},
{MNT_SUJ, "journaled soft-updates"},
{MNT_MULTILABEL, "multilabel"},
#if defined(MNT_NFS4ACLS)
{MNT_NFS4ACLS, "nfsv4acls"},
#if defined(MNT_GJOURNAL)
{MNT_GJOURNAL, "gjournal"},
#if defined(MNT_AUTOMOUNTED)
{MNT_AUTOMOUNTED, "automounted"},
#if defined(MNT_VERIFIED)
{MNT_VERIFIED, "verified"},
#if defined(MNT_UNTRUSTED)
{MNT_UNTRUSTED, "untrusted"},
static int get_fs_size_stat(const char *fs, zbx_uint64_t *total, zbx_uint64_t *free,
zbx_uint64_t *used, double *pfree, double *pused, char **error)
#ifdef HAVE_SYS_STATVFS_H
# define ZBX_STATFS statvfs
# define ZBX_BSIZE f_frsize
# define ZBX_STATFS statfs
# define ZBX_BSIZE f_bsize
if (0 != ZBX_STATFS(fs, &s))
*error = zbx_dsprintf(NULL, "Cannot obtain filesystem information: %s", zbx_strerror(errno));
zabbix_log(LOG_LEVEL_DEBUG,"%s failed with error: %s",__func__, *error);
if (0 != ZBX_IS_TOP_BIT_SET(s.f_bavail))