Home
last modified time | relevance | path

Searched refs:qf (Results 1 – 25 of 34) sorted by relevance

12

/freebsd-src/lib/libutil/
H A Dquotafile.c115 struct quotafile *qf; in quota_open() local
122 if ((qf = calloc(1, sizeof(*qf))) == NULL) in quota_open()
124 qf->fd = -1; in quota_open()
125 qf->quotatype = quotatype; in quota_open()
126 strlcpy(qf->fsname, fs->fs_file, sizeof(qf->fsname)); in quota_open()
127 if (stat(qf->fsname, &st) != 0) in quota_open()
129 qf->dev = st.st_dev; in quota_open()
137 serrno = hasquota(fs, quotatype, qf->qfname, in quota_open()
138 sizeof(qf->qfname)); in quota_open()
140 if (quotactl(qf->fsname, qcmd, 0, &qf->wordsize) == 0) in quota_open()
[all …]
/freebsd-src/usr.sbin/quotaon/
H A Dquotaon.c143 struct quotafile *qf; in quotaonoff() local
145 if ((qf = quota_open(fs, type, O_RDONLY)) == NULL) in quotaonoff()
148 if (quota_off(qf) != 0) { in quotaonoff()
149 warn("%s", quota_fsname(qf)); in quotaonoff()
153 printf("%s: quotas turned off\n", quota_fsname(qf)); in quotaonoff()
154 quota_close(qf); in quotaonoff()
157 if (quota_on(qf) != 0) { in quotaonoff()
158 warn("using %s on %s", quota_qfname(qf), quota_fsname(qf)); in quotaonoff()
163 quota_fsname(qf), qfextension[type], quota_qfname(qf)); in quotaonoff()
164 quota_close(qf); in quotaonoff()
/freebsd-src/usr.sbin/ctladm/tests/
H A Dport.sh86 atf_check -o save:portlist.txt ctladm portlist -qf ioctl
130 atf_check -o save:portlist.txt ctladm portlist -qf iscsi
197 atf_check -o save:portlist.txt ctladm portlist -qf ioctl
221 atf_check -o save:portlist.txt ctladm portlist -qf ioctl
223 atf_check -o match:"^$portnum *NO" ctladm portlist -qf ioctl
242 atf_check -o save:portlist.txt ctladm portlist -qf ioctl
245 atf_check -o match:"^$portnum *YES" ctladm portlist -qf ioctl
266 atf_check -o save:portlist.txt ctladm portlist -qf ioctl
270 if ctladm portlist -qf ioctl | egrep -q "^${portnum} .*10001 *10002"; then
271 ctladm portlist -qf ioctl
[all …]
/freebsd-src/crypto/openssh/regress/
H A Dkeygen-knownhosts.sh160 ${SSHKEYGEN} -qf $OBJ/kh.invalid -R host-a 2>/dev/null
165 ${SSHKEYGEN} -qf $OBJ/kh.hosts -R host-a 2>/dev/null
171 ${SSHKEYGEN} -qf $OBJ/kh.hosts -R host-c 2>/dev/null
177 ${SSHKEYGEN} -qf $OBJ/kh.hosts -R host-d 2>/dev/null
183 ${SSHKEYGEN} -qf $OBJ/kh.hosts -R host-e.blahblah 2>/dev/null
189 ${SSHKEYGEN} -qf $OBJ/kh.hosts -R host-h 2>/dev/null
195 ${SSHKEYGEN} -qf $OBJ/kh.invalid -H 2>/dev/null && fail "hash invalid succeeded"
200 ${SSHKEYGEN} -qf $OBJ/kh.hosts -H 2>/dev/null || fail "hash failed"
219 ${SSHKEYGEN} -qf $OBJ/kh.hashed -R host-a 2>/dev/null
220 ${SSHKEYGEN} -qf $OBJ/kh.hashed -F host-a && fail "found key after hashed remove"
/freebsd-src/contrib/sendmail/contrib/
H A Dbounce-resender.pl141 $qf = "qf$ident";
144 open(MSGHDR,">$qf") || die "Can't write to $qf: $!\n";
146 chmod(0600, $qf, $df);
220 print "$myname: Header without message! Line $lineno qf $qf\n";
/freebsd-src/libexec/rpc.rquotad/
H A Drquotad.c277 struct quotafile *qf; in getfsquota() local
300 qf = quota_open(&fst, type, O_RDONLY); in getfsquota()
304 qf); in getfsquota()
305 if (qf == NULL) in getfsquota()
308 rv = quota_read(qf, dqblk, id) == 0; in getfsquota()
309 quota_close(qf); in getfsquota()
/freebsd-src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/projectquota/
H A Dprojectspace_003_pos.ksh71 log_must user_run $PUSER mkfiles $PRJDIR1/qf $((prj_cnt1 - 1))
72 log_must user_run $PUSER mkfiles $PRJDIR2/qf $((prj_cnt2 - 1))
93 log_must chattr -p $PRJID2 $PRJDIR1/qf*
H A Dprojectspace_004_pos.ksh65 log_must user_run $PUSER mkfile 50m $PRJDIR/qf
H A Dprojectspace_002_pos.ksh65 log_must user_run $PUSER mkfile 50m $PRJDIR/qf
H A Dprojectquota_006_pos.ksh67 log_must user_run $PUSER mkfile 100m $PRJDIR/qf
H A Dprojectspace_001_pos.ksh72 log_must user_run $PUSER mkfile 50m $PRJDIR/qf
H A Dprojectquota_003_pos.ksh67 log_must user_run $PUSER mkfile $file_size $PRJDIR/qf
H A Dprojectquota_001_pos.ksh68 log_must user_run $PUSER mkfile $PQUOTA_LIMIT $PRJDIR/qf
/freebsd-src/usr.sbin/repquota/
H A Drepquota.c189 struct quotafile *qf; in repquota() local
194 if ((qf = quota_open(fs, type, O_RDONLY)) == NULL) { in repquota()
213 maxid = quota_maxid(qf); in repquota()
215 if (quota_read(qf, &dqbuf, id) != 0) in repquota()
246 quota_close(qf); in repquota()
/freebsd-src/sbin/quotacheck/
H A Dquotacheck.c419 update(const char *fsname, struct quotafile *qf, int type)
431 lastid = quota_maxid(qf); in update()
433 if (quota_read(qf, &dqbuf, id) < 0) in update()
450 (void) quota_write_usage(qf, &dqbuf, id); in update()
472 (void) quota_write_usage(qf, &dqbuf, fup->fu_id); in update()
483 stat(quota_qfname(qf), &sb) == 0 && in update()
485 truncate(quota_qfname(qf), in update()
423 update(const char * fsname,struct quotafile * qf,int type) update() argument
/freebsd-src/usr.sbin/edquota/
H A Dedquota.c77 struct quotafile *qf; member
359 struct quotafile *qf; in getprivs() local
372 if ((qf = quota_open(fs, quotatype, O_CREAT|O_RDWR)) == NULL) { in getprivs()
379 qup->qf = qf; in getprivs()
381 if (quota_read(qf, &qup->dqblk, id) == -1) { in getprivs()
409 if (quota_write_limits(qup->qf, &qup->dqblk, id) == -1) in putprivs()
926 quota_close(qup->qf); in freeprivs()
/freebsd-src/sys/contrib/openzfs/config/
H A Dtgz.am15 arch=`$(RPM) -qp $${name}-kmod-$${version}.src.rpm --qf %{arch} | tail -1`; \
23 arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
H A Ddeb.am37 arch=`$(RPM) -qp $${name}-kmod-$${version}.src.rpm --qf %{arch} | tail -1`; \
47 arch=`$(RPM) -qp $${name}-dkms-$${version}.src.rpm --qf %{arch} | tail -1`; \
56 arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
/freebsd-src/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/dtraceUtil/
H A Dtst.ZeroFunctionProbes.d.ksh62 -qf read'{printf("I am done"); exit(0);}'
/freebsd-src/contrib/sendmail/src/
H A Dqueue.c364 char qf[MAXPATHLEN]; local
915 (void) sm_strlcpy(qf, queuename(e, ANYQFL_LETTER),
916 sizeof(qf));
917 if (rename(tf, qf) < 0)
919 tf, qf, (long) geteuid());
964 SYNC_DIR(qf, true);
974 sm_syslog(LOG_DEBUG, e->e_id, "queueup %s", qf);
2569 char qf[MAXPATHLEN]; local
2717 (void) sm_strlcpyn(qf, sizeof(qf), 3, qd, "/", d->d_name);
2718 if (stat(qf, &sbuf) < 0)
[all …]
/freebsd-src/usr.bin/quota/
H A Dquota.c546 struct quotafile *qf; in getufsquota() local
548 if ((qf = quota_open(fs, quotatype, O_RDONLY)) == NULL) in getufsquota()
550 if (quota_read(qf, &qup->dqblk, id) != 0) in getufsquota()
552 quota_close(qf); in getufsquota()
/freebsd-src/tools/test/stress2/misc/
H A Dpoll.sh50 while pgrep -qf poll.py; do pkill -f poll.py; done
/freebsd-src/crypto/openssl/test/certs/
H A Dalt1-key.pem17 qf+iVoba2Y9NTBdxBht2whSaYweU9kxmeNZvnCu95B8HeRGE69Dxb7IWwpsaxoaf
/freebsd-src/tests/sys/cddl/zfs/tests/userquota/
H A Duserquota.cfg38 export QFILE=$TESTDIR/qf.${TESTCASE_ID}
/freebsd-src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/userquota/
H A Duserquota.cfg42 export QFILE=$TESTDIR/qf

12