[Bug 234413] quotactl() returns wrong error

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jan 10 16:40:53 UTC 2019


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

--- Comment #10 from Mark Johnston <markj at FreeBSD.org> ---
(In reply to topical from comment #9)
I don't think it makes sense to return EOPNOTSUPP when Q_GETQUOTA fails because
no quota is configured.  UFS already uses EINVAL in this case, and it is in
fact documented (earlier I claimed it wasn't):

     [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.

We should simply modify ZFS to match the documentation.

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


More information about the freebsd-bugs mailing list