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) { |
176
|
0 |
0 |
if (callaurpc(hostp, RQUOTAPROG, EXT_RQUOTAVERS, RQUOTAPROC_GETQUOTA, |
181
|
0 |
0 |
if (kind == 0) { |
189
|
0 |
0 |
if (callaurpc(hostp, RQUOTAPROG, RQUOTAVERS, RQUOTAPROC_GETQUOTA, |
222
|
0 |
0 |
if (gq_rslt.GQR_RQUOTA.rq_bsize >= DEV_QBSIZE) { |
237
|
0 |
0 |
if (gq_rslt.GQR_RQUOTA.rq_bsize != 0) |
252
|
0 |
0 |
if (gq_rslt.GQR_RQUOTA.rq_btimeleft == 0) |
254
|
0 |
0 |
else if (gq_rslt.GQR_RQUOTA.rq_btimeleft + 10*365*24*60*60 < (u_int)tv.tv_sec) |
259
|
0 |
0 |
if (gq_rslt.GQR_RQUOTA.rq_ftimeleft == 0) |
261
|
0 |
0 |
else if (gq_rslt.GQR_RQUOTA.rq_ftimeleft + 10*365*24*60*60 < (u_int)tv.tv_sec) |
324
|
0 |
0 |
return (xdr_int(xdrs, &rqp->rq_bsize) && |
325
|
0 |
0 |
xdr_bool(xdrs, &rqp->rq_active) && |
326
|
0 |
0 |
xdr_u_long(xdrs, (unsigned long *)&rqp->rq_bhardlimit) && |
327
|
0 |
0 |
xdr_u_long(xdrs, (unsigned long *)&rqp->rq_bsoftlimit) && |
328
|
0 |
0 |
xdr_u_long(xdrs, (unsigned long *)&rqp->rq_curblocks) && |
329
|
0 |
0 |
xdr_u_long(xdrs, (unsigned long *)&rqp->rq_fhardlimit) && |
330
|
0 |
0 |
xdr_u_long(xdrs, (unsigned long *)&rqp->rq_fsoftlimit) && |
331
|
0 |
0 |
xdr_u_long(xdrs, (unsigned long *)&rqp->rq_curfiles) && |
332
|
0 |
0 |
xdr_u_long(xdrs, (unsigned long *)&rqp->rq_btimeleft) && |
|
0 |
0 |
xdr_u_long(xdrs, (unsigned long *)&rqp->rq_btimeleft) && |
343
|
0 |
0 |
return xdr_string(xdrs, &objp->gqa_pathp, RQ_PATHLEN) && |
344
|
0 |
0 |
xdr_int(xdrs, &objp->gqa_type) && |
|
0 |
0 |
xdr_int(xdrs, &objp->gqa_type) && |
373
|
0 |
62 |
if(!strncmp(dev, "(XFS)", 5)) { |
378
|
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); |
380
|
0 |
0 |
if(!err) { |
381
|
0 |
0 |
EXTEND(SP, 8); |
437
|
52 |
10 |
if((*dev != '/') && (p = strchr(dev, ':'))) { |
|
0 |
52 |
if((*dev != '/') && (p = strchr(dev, ':'))) { |
442
|
0 |
0 |
if (!err) { |
443
|
0 |
0 |
EXTEND(SP, 8); |
554
|
0 |
62 |
if(!err) { |
555
|
0 |
0 |
EXTEND(SP, 8); |
582
|
0 |
0 |
if(timelimflag != 0) |
588
|
0 |
0 |
if(!strncmp(dev, "(XFS)", 5)) { |
602
|
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); |
809
|
31 |
0 |
if ((dev != NULL) && (!strncmp(dev, "(XFS)", 5))) { |
|
0 |
31 |
if ((dev != NULL) && (!strncmp(dev, "(XFS)", 5))) { |
868
|
0 |
0 |
if (getnfsquota(host, path, uid, kind, &rslt) == 0) { |
869
|
0 |
0 |
EXTEND(SP, 8); |
908
|
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)) { |
916
|
0 |
0 |
if (uid == -1) |
921
|
0 |
0 |
if (gid == -1) |
926
|
0 |
0 |
if (hostname == NULL) { |
928
|
0 |
0 |
} else if (strlen(hostname) < MAX_MACHINE_NAME) { |
951
|
0 |
75 |
if(mtab != NULL) endmntent(mtab); |
952
|
0 |
75 |
if((mtab = setmntent(MOUNTED, "r")) == NULL) |
1012
|
1136 |
0 |
if(mtab != NULL) { |
1014
|
1129 |
7 |
if(mntp != NULL) { |
1015
|
0 |
1129 |
EXTEND(SP, 4); |
1132
|
75 |
0 |
if(mtab != NULL) { |
1189
|
0 |
93 |
if (quota_rpc_strerror != NULL) |
1194
|
93 |
0 |
if((errno == EINVAL) || (errno == ENOTTY) || (errno == ENOENT) || (errno == ENOSYS)) |
|
93 |
0 |
if((errno == EINVAL) || (errno == ENOTTY) || (errno == ENOENT) || (errno == ENOSYS)) |
|
93 |
0 |
if((errno == EINVAL) || (errno == ENOTTY) || (errno == ENOENT) || (errno == ENOSYS)) |
|
0 |
93 |
if((errno == EINVAL) || (errno == ENOTTY) || (errno == ENOENT) || (errno == ENOSYS)) |
1196
|
0 |
93 |
else if(errno == ENODEV) |
1198
|
93 |
0 |
else if(errno == EPERM) |
1200
|
0 |
0 |
else if(errno == EACCES) |
1202
|
0 |
0 |
else if(errno == ESRCH) |
1208
|
0 |
0 |
else if(errno == EUSERS) |