Hi,

建博廖 <[email protected]> wrote
  in <CAJrFLc2fY_JjQkxJxKfD-AooSeqfPG=nvso_tnn9ubp4pus...@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

Attachment: pgpf9aEjOlZlL.pgp
Description: PGP signature

Reply via email to