HomeFreeBSD

Change ZFS quotas to return EINVAL when not present (matches man page).

Description

Change ZFS quotas to return EINVAL when not present (matches man page).

UFS will return EINVAL when quotas are not enabled on a filesystem; ZFS'
equivalent involves not having quotas (there is not way to enable or disable
quotas as such). My initial implementation had it return ENOENT, but
quotactl(2) indicates EINVAL is more appropriate.

MFC after: 2 weeks
Approved by: mav
Reviewed by: markj
Reported by: Emrion <kmachine@free.fr>
Sponsored by: iXsystems Inc
PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234413

Details

Provenance
sefAuthored on
Reviewer
markj
Parents
rS342927: MFC r342769, r342775:
Branches
Unknown
Tags
Unknown