[Bug 234413] quotactl() returns wrong error
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jan 9 18:55:03 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234413
--- Comment #6 from Mark Johnston <markj at FreeBSD.org> ---
(In reply to Emrion from comment #5)
I was wondering specifically which quotactl() operation was returning ENOENT.
It's a bit more clear now; we have the following in zfs_getquota():
146 if (quotaobj == 0 || zfsvfs->z_replay) {
147 error = ENOENT;
148 goto done;
149 }
whereas UFS does:
1302 dqvp = ump->um_quotas[type];
1303 if (dqvp == NULLVP || (ump->um_qflags[type] & QTF_CLOSING)) {
1304 *dqp = NODQUOT;
1305 UFS_UNLOCK(ump);
1306 return (EINVAL);
1307 }
This use of EINVAL isn't documented in the man page. Linux's quotactl()
doesn't document it either, but I presume that it always returns EINVAL in this
case.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list