line |
true |
false |
branch |
94
|
0 |
0 |
if (hp == NULL) { |
109
|
0 |
0 |
if (!quota_rpc_cfg.use_tcp) { |
118
|
0 |
0 |
if (client == NULL) { |
119
|
0 |
0 |
if (rpc_createerr.cf_stat != RPC_SUCCESS) |
129
|
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)) { |
146
|
0 |
0 |
if (client->cl_auth) { |
152
|
0 |
0 |
if (clnt_stat != RPC_SUCCESS) { |
188
|
0 |
0 |
if (callaurpc(hostp, RQUOTAPROG, RQUOTAVERS, RQUOTAPROC_GETQUOTA, |
213
|
0 |
0 |
if (gq_rslt.GQR_RQUOTA.rq_bsize >= DEV_QBSIZE) { |
228
|
0 |
0 |
if (gq_rslt.GQR_RQUOTA.rq_bsize != 0) |
243
|
0 |
0 |
if (gq_rslt.GQR_RQUOTA.rq_btimeleft == 0) |
245
|
0 |
0 |
else if (gq_rslt.GQR_RQUOTA.rq_btimeleft + 10*365*24*60*60 < tv.tv_sec) |
250
|
0 |
0 |
if (gq_rslt.GQR_RQUOTA.rq_ftimeleft == 0) |
252
|
0 |
0 |
else if (gq_rslt.GQR_RQUOTA.rq_ftimeleft + 10*365*24*60*60 < tv.tv_sec) |
315
|
0 |
0 |
return (xdr_int(xdrs, &rqp->rq_bsize) && |
316
|
0 |
0 |
xdr_bool(xdrs, &rqp->rq_active) && |
317
|
0 |
0 |
xdr_u_long(xdrs, (unsigned long *)&rqp->rq_bhardlimit) && |
318
|
0 |
0 |
xdr_u_long(xdrs, (unsigned long *)&rqp->rq_bsoftlimit) && |
319
|
0 |
0 |
xdr_u_long(xdrs, (unsigned long *)&rqp->rq_curblocks) && |
320
|
0 |
0 |
xdr_u_long(xdrs, (unsigned long *)&rqp->rq_fhardlimit) && |
321
|
0 |
0 |
xdr_u_long(xdrs, (unsigned long *)&rqp->rq_fsoftlimit) && |
322
|
0 |
0 |
xdr_u_long(xdrs, (unsigned long *)&rqp->rq_curfiles) && |
323
|
0 |
0 |
xdr_u_long(xdrs, (unsigned long *)&rqp->rq_btimeleft) && |
|
0 |
0 |
xdr_u_long(xdrs, (unsigned long *)&rqp->rq_btimeleft) && |
364
|
0 |
0 |
if(!strncmp(dev, "(XFS)", 5)) { |
369
|
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); |
371
|
0 |
0 |
if(!err) { |
372
|
0 |
0 |
EXTEND(SP, 8); |
428
|
0 |
0 |
if((*dev != '/') && (p = strchr(dev, ':'))) { |
|
0 |
0 |
if((*dev != '/') && (p = strchr(dev, ':'))) { |
433
|
0 |
0 |
if (!err) { |
434
|
0 |
0 |
EXTEND(SP, 8); |
533
|
0 |
0 |
if(!err) { |
534
|
0 |
0 |
EXTEND(SP, 8); |
572
|
0 |
0 |
if(timelimflag != 0) |
578
|
0 |
0 |
if(!strncmp(dev, "(XFS)", 5)) { |
592
|
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); |
781
|
0 |
0 |
if ((dev != NULL) && (!strncmp(dev, "(XFS)", 5))) { |
|
0 |
0 |
if ((dev != NULL) && (!strncmp(dev, "(XFS)", 5))) { |
782
|
0 |
0 |
if (quotactl(QCMD(Q_XQUOTASYNC, XQM_USRQUOTA), dev+5, 0, NULL) != 0) |
843
|
0 |
0 |
if (getnfsquota(host, path, uid, kind, &rslt) == 0) { |
844
|
0 |
0 |
EXTEND(SP, 8); |
883
|
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)) { |
891
|
0 |
0 |
if (uid == -1) |
896
|
0 |
0 |
if (gid == -1) |
901
|
0 |
0 |
if (hostname == NULL) { |
903
|
0 |
0 |
} else if (strlen(hostname) < MAX_MACHINE_NAME) { |
926
|
0 |
0 |
if(mtab != NULL) endmntent(mtab); |
927
|
0 |
0 |
if((mtab = setmntent(MOUNTED, "r")) == NULL) |
987
|
0 |
0 |
if(mtab != NULL) { |
989
|
0 |
0 |
if(mntp != NULL) { |
990
|
0 |
0 |
EXTEND(SP, 4); |
1115
|
0 |
0 |
if(mtab != NULL) { |
1172
|
0 |
0 |
if (quota_rpc_strerror != NULL) |
1177
|
0 |
0 |
if((errno == EINVAL) || (errno == ENOTTY) || (errno == ENOENT) || (errno == ENOSYS)) |
|
0 |
0 |
if((errno == EINVAL) || (errno == ENOTTY) || (errno == ENOENT) || (errno == ENOSYS)) |
|
0 |
0 |
if((errno == EINVAL) || (errno == ENOTTY) || (errno == ENOENT) || (errno == ENOSYS)) |
|
0 |
0 |
if((errno == EINVAL) || (errno == ENOTTY) || (errno == ENOENT) || (errno == ENOSYS)) |
1179
|
0 |
0 |
else if(errno == ENODEV) |
1181
|
0 |
0 |
else if(errno == EPERM) |
1183
|
0 |
0 |
else if(errno == EACCES) |
1185
|
0 |
0 |
else if(errno == ESRCH) |
1191
|
0 |
0 |
else if(errno == EUSERS) |