Date: Wed, 27 Feb 2019 17:43:23 +0900 (JST) From: Hiroki Sato <hrs@FreeBSD.org> To: jbliao@cs.nctu.edu.tw Cc: freebsd-bugs@freebsd.org, bsdta@cs.nctu.edu.tw Subject: Re: Quota on FreeBSD 12.0 is not working with NetApp Message-ID: <20190227.174323.1510582472192448193.hrs@allbsd.org> In-Reply-To: <CAJrFLc2fY_JjQkxJxKfD-AooSeqfPG=nvso_TNN9UBP4PusOHw@mail.gmail.com> References: <CAJrFLc2fY_JjQkxJxKfD-AooSeqfPG=nvso_TNN9UBP4PusOHw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Wed_Feb_27_17_43_23_2019_191)-- Content-Type: Text/Plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Hi, 建博廖 <jbliao@cs.nctu.edu.tw> wrote in <CAJrFLc2fY_JjQkxJxKfD-AooSeqfPG=nvso_TNN9UBP4PusOHw@mail.gmail.com>: jb> Hi all, jb> jb> We meet a quota problem with NetApp after upgraded system from FreeBSD-11.2 jb> to FreeBSD-12.0. jb> The quota command in FreeBSD-12.0 returned nothing on any NetApp mount jb> point which works good in FreeBSD-11.2. So we trace the rpc.rquotad packet jb> with tcpdump, and found that the difference is quota of FreeBSD-11.2 sent jb> request of rquota-v1 and FreeBSD-12.0 sent request of rquota-v2. Then we jb> trace the code of quota which is located in jb> '/usr/src/usr.bin/quota/quota.c' to find is there any way to send only jb> rquota-v1 request or resend rquota-v1 request after failure of rquota-v2 jb> request. We found that quota will try rquota-v1 if the v2 request return jb> "Program Version Mismatch", but NetApp seems have a non-standard behavior jb> that would response "Program Not Registered" and leads quota exit without jb> re-trying v1 request. jb> jb> Link below is the issue of libtirpc on Linux caused by the same jb> non-standard behavior: jb> https://sourceforge.net/p/libtirpc/mailman/message/36337416/ jb> jb> We patch one line code and it works on our environment for temporary. The jb> diff output of our patch is attached in the letter. jb> jb> We wonder if this patch can be merged into FreeBSD-12.0, or is there any jb> solution can force quota to use rquota v1 (add an option for this, maybe?) jb> Because NetApp does not want to fix this behavior since 2008, we want to jb> find some solution from FreeBSD. Can you submit a PR via https://bugs.freebsd.org/bugzilla/ to prevent it from being forgotten? I had the same version-mismatch issue recently and considering a fix on FreeBSD side. -- Hiroki ----Security_Multipart(Wed_Feb_27_17_43_23_2019_191)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iEYEABECAAYFAlx2TasACgkQTyzT2CeTzy1rCACgujzCUhJU9v14IVttuLJ52UYQ XjYAoIsYthmdcNfYT4G+gSToiL7qQJxR =8Yt2 -----END PGP SIGNATURE----- ----Security_Multipart(Wed_Feb_27_17_43_23_2019_191)----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190227.174323.1510582472192448193.hrs>