Branch Coverage

Quota.xs
Criterion Covered Total %
branch 0 124 0.0


line true false branch
95 0 0 if (hp == NULL)
108 0 0 if (!quota_rpc_cfg.use_tcp) {
117 0 0 if (client == NULL)
123 0 0 if ((quota_rpc_auth.uid != -1) && (quota_rpc_auth.gid != -1)) {
0 0 if ((quota_rpc_auth.uid != -1) && (quota_rpc_auth.gid != -1)) {
140 0 0 if (client->cl_auth) {
177 0 0 if (callaurpc(hostp, RQUOTAPROG, RQUOTAVERS, RQUOTAPROC_GETQUOTA,
202 0 0 if (gq_rslt.GQR_RQUOTA.rq_bsize >= DEV_QBSIZE) {
229 0 0 if (gq_rslt.GQR_RQUOTA.rq_btimeleft == 0)
231 0 0 else if (gq_rslt.GQR_RQUOTA.rq_btimeleft + 10*365*24*60*60 < tv.tv_sec)
236 0 0 if (gq_rslt.GQR_RQUOTA.rq_ftimeleft == 0)
238 0 0 else if (gq_rslt.GQR_RQUOTA.rq_ftimeleft + 10*365*24*60*60 < tv.tv_sec)
243 0 0 if((gq_rslt.GQR_RQUOTA.rq_bhardlimit == 0) &&
0 0 if((gq_rslt.GQR_RQUOTA.rq_bhardlimit == 0) &&
244 0 0 (gq_rslt.GQR_RQUOTA.rq_bsoftlimit == 0) &&
245 0 0 (gq_rslt.GQR_RQUOTA.rq_fhardlimit == 0) &&
299 0 0 return (xdr_int(xdrs, &rqp->rq_bsize) &&
300 0 0 xdr_bool(xdrs, &rqp->rq_active) &&
301 0 0 xdr_u_long(xdrs, (unsigned long *)&rqp->rq_bhardlimit) &&
302 0 0 xdr_u_long(xdrs, (unsigned long *)&rqp->rq_bsoftlimit) &&
303 0 0 xdr_u_long(xdrs, (unsigned long *)&rqp->rq_curblocks) &&
304 0 0 xdr_u_long(xdrs, (unsigned long *)&rqp->rq_fhardlimit) &&
305 0 0 xdr_u_long(xdrs, (unsigned long *)&rqp->rq_fsoftlimit) &&
306 0 0 xdr_u_long(xdrs, (unsigned long *)&rqp->rq_curfiles) &&
307 0 0 xdr_u_long(xdrs, (unsigned long *)&rqp->rq_btimeleft) &&
0 0 xdr_u_long(xdrs, (unsigned long *)&rqp->rq_btimeleft) &&
345 0 0 if(!strncmp(dev, "(XFS)", 5)) {
350 0 0 err = quotactl(QCMD(Q_XGETQUOTA, ((kind == 2) ? XQM_PRJQUOTA : ((kind == 1) ? XQM_GRPQUOTA : XQM_USRQUOTA))), dev+5, uid, CADR &xfs_dqblk);
0 0 err = quotactl(QCMD(Q_XGETQUOTA, ((kind == 2) ? XQM_PRJQUOTA : ((kind == 1) ? XQM_GRPQUOTA : XQM_USRQUOTA))), dev+5, uid, CADR &xfs_dqblk);
352 0 0 if(!err) {
353 0 0 EXTEND(SP, 8);
409 0 0 if((*dev != '/') && (p = strchr(dev, ':'))) {
0 0 if((*dev != '/') && (p = strchr(dev, ':'))) {
414 0 0 if (!err) {
415 0 0 EXTEND(SP, 8);
514 0 0 if(!err) {
515 0 0 EXTEND(SP, 8);
553 0 0 if(timelimflag != 0) timelimflag = 1;
555 0 0 if(!strncmp(dev, "(XFS)", 5)) {
569 0 0 RETVAL = quotactl(QCMD(Q_XSETQLIM, ((kind == 2) ? XQM_PRJQUOTA : ((kind == 1) ? XQM_GRPQUOTA : XQM_USRQUOTA))), dev+5, uid, CADR &xfs_dqblk);
0 0 RETVAL = quotactl(QCMD(Q_XSETQLIM, ((kind == 2) ? XQM_PRJQUOTA : ((kind == 1) ? XQM_GRPQUOTA : XQM_USRQUOTA))), dev+5, uid, CADR &xfs_dqblk);
755 0 0 if ((dev != NULL) && (!strncmp(dev, "(XFS)", 5))) {
0 0 if ((dev != NULL) && (!strncmp(dev, "(XFS)", 5))) {
758 0 0 if (!quotactl(QCMD(Q_XGETQSTAT, USRQUOTA), dev+5, 0, CADR &fsq_stat)) {
759 0 0 if (fsq_stat.qs_flags & (XFS_QUOTA_UDQ_ACCT | XFS_QUOTA_GDQ_ACCT))
761 0 0 else if ( (strcmp(dev+5, "/") == 0) &&
0 0 else if ( (strcmp(dev+5, "/") == 0) &&
829 0 0 if (getnfsquota(host, path, uid, kind, &rslt) == 0) {
830 0 0 EXTEND(SP, 8);
867 0 0 if ((uid == -1) && (gid == -1) && (hostname==NULL)) {
0 0 if ((uid == -1) && (gid == -1) && (hostname==NULL)) {
0 0 if ((uid == -1) && (gid == -1) && (hostname==NULL)) {
875 0 0 if (uid == -1)
880 0 0 if (gid == -1)
885 0 0 if (hostname == NULL) {
887 0 0 } else if (strlen(hostname) < MAX_MACHINE_NAME) {
907 0 0 if(mtab != NULL) endmntent(mtab);
908 0 0 if((mtab = setmntent(MOUNTED, "r")) == NULL)
965 0 0 if(mtab != NULL) {
967 0 0 if(mntp != NULL) {
968 0 0 EXTEND(SP, 4);
1090 0 0 if(mtab != NULL) {