Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2019 11:19:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 234413] quotactl() returns wrong error
Message-ID:  <bug-234413-227-c7ee2QYzlR@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-234413-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-234413-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

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

topical <topical@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |topical@gmx.net

--- Comment #9 from topical <topical@gmx.net> ---
Samba logs an error according to

  if (errno != ENOTSUP && errno != EINVAL) 

So, to avoid excessive logging, it would be nice to replace the error code with
either ENOTSUP or EINVAL. IMHO it makes more sense to use ENOTSUP but this code
is not documented in quotactl(2) at all. For UFS compatibility, we should use
EINVAL but according to man page, this error code is not applicable. 

I suggest to use ENOTSUP if there is no zfs quota.

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


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234413-227-c7ee2QYzlR>