[Bug 234413] quotactl() returns wrong error

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Dec 28 11:35:20 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234413

--- Comment #3 from Emrion <kmachine at free.fr> ---
Reading the man page of quotactl(), I came to the conclusion that it shouldn't
return ENOENT nor ENOTSUP (EOPNOTSUPP) but rather EINVAL error in the case the
file system isn't ufs. ENOTSUP seems reserved when the kernel has no support
for quota. And kern.features.ufs_quota is enabled both in 11.2 and 12.0 generic
kernels.

[EINVAL]                The cmd argument or the command type is invalid.  In
                        Q_GETQUOTASIZE, Q_GETQUOTA, Q_SETQUOTA, and Q_SETUSE,
                        quotas are not currently enabled for this file system.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list