Branch Coverage

linuxapi.c
Criterion Covered Total %
branch 11 72 15.2


line true false branch
129 1 0 if (stat("/proc/sys/fs/quota", &st) == 0) {
142 0 0 if (sigaction(SIGSEGV, &sig, &oldsig) < 0) {
146 0 0 if (quotactl(QCMD(Q_V2_GETSTATS, 0), NULL, 0, (void *)&v2_stats) >= 0) {
149 0 0 else if (errno != ENOSYS && errno != ENOTSUP) {
0 0 else if (errno != ENOSYS && errno != ENOTSUP) {
157 0 0 if (quotactl(QCMD(Q_V1_GETSTATS, 0), NULL, 0, tmp))
159 0 0 if (quotactl(QCMD(Q_V1_GETQUOTA, 0), "/dev/null", 0, tmp))
165 0 0 if (err_stat == 0 && err_quota == EINVAL) {
0 0 if (err_stat == 0 && err_quota == EINVAL) {
179 0 0 if ((qf = fopen("/proc/fs/quota", "r"))) {
180 0 0 if (fscanf(qf, "Version %u", &vers_no) == 1) {
181 0 0 if ( (vers_no == (6*10000 + 5*100 + 0)) ||
0 0 if ( (vers_no == (6*10000 + 5*100 + 0)) ||
189 0 0 if (sigaction(SIGSEGV, &oldsig, NULL) < 0) {
196 0 1 if (kernel_iface == IFACE_UNSET)
213 0 62 if (kernel_iface == IFACE_UNSET)
216 62 0 if (kernel_iface == IFACE_GENERIC)
220 31 31 ret = quotactl(QCMD(Q_V3_GETQUOTA, (isgrp ? GRPQUOTA : USRQUOTA)),
222 0 62 if (ret == 0)
234 0 0 else if (kernel_iface == IFACE_VFSV0)
238 0 0 ret = quotactl(QCMD(Q_V2_GETQUOTA, (isgrp ? GRPQUOTA : USRQUOTA)),
240 0 0 if (ret == 0)
256 0 0 ret = quotactl(QCMD(Q_V1_GETQUOTA, (isgrp ? GRPQUOTA : USRQUOTA)),
258 0 0 if (ret == 0)
281 0 0 if (kernel_iface == IFACE_UNSET)
284 0 0 if (kernel_iface == IFACE_GENERIC)
298 0 0 ret = quotactl (QCMD(Q_V3_SETQUOTA, (isgrp ? GRPQUOTA : USRQUOTA)),
301 0 0 else if (kernel_iface == IFACE_VFSV0)
314 0 0 ret = quotactl (QCMD(Q_V2_SETQLIM, (isgrp ? GRPQUOTA : USRQUOTA)),
330 0 0 ret = quotactl (QCMD(Q_V1_SETQLIM, (isgrp ? GRPQUOTA : USRQUOTA)),
344 1 30 if (kernel_iface == IFACE_UNSET)
347 31 0 if (kernel_iface == IFACE_GENERIC)
349 0 31 ret = quotactl (QCMD(Q_V3_SYNC, (isgrp ? GRPQUOTA : USRQUOTA)), dev, 0, NULL);
351 0 0 else if (kernel_iface == IFACE_VFSV0)
353 0 0 ret = quotactl (QCMD(Q_V2_SYNC, (isgrp ? GRPQUOTA : USRQUOTA)), dev, 0, NULL);
357 0 0 ret = quotactl (QCMD(Q_V1_SYNC, (isgrp ? GRPQUOTA : USRQUOTA)), dev, 0, NULL);