From owner-freebsd-bugs@freebsd.org Wed Feb 27 08:44:33 2019 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2DEFE1515BFA for ; Wed, 27 Feb 2019 08:44:33 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (mx-int.allbsd.org [IPv6:2001:2f0:104:e002::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.allbsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8CEEA6D523 for ; Wed, 27 Feb 2019 08:44:32 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail-d.allbsd.org ([IPv6:2409:11:a740:c00:58:65ff:fe00:b0b]) (authenticated bits=56) by mail.allbsd.org (8.15.2/8.15.2) with ESMTPSA id x1R8i0X6035150 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) (Client CN "/CN=mail.allbsd.org", Issuer "/C=US/O=Let's+20Encrypt/CN=Let's+20Encrypt+20Authority+20X3"); Wed, 27 Feb 2019 17:44:13 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from alph.d.allbsd.org ([IPv6:2409:11:a740:c00:16:ceff:fe34:2700]) by mail-d.allbsd.org (8.15.2/8.15.2) with ESMTPS id x1R8htCH087255 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 27 Feb 2019 17:43:55 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [[UNIX: localhost]]) (authenticated bits=0) by alph.d.allbsd.org (8.15.2/8.15.2) with ESMTPA id x1R8hreF087247; Wed, 27 Feb 2019 17:43:55 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Wed, 27 Feb 2019 17:43:23 +0900 (JST) Message-Id: <20190227.174323.1510582472192448193.hrs@allbsd.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 From: Hiroki Sato In-Reply-To: References: X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.8 on Emacs 25.3 Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Wed_Feb_27_17_43_23_2019_191)--" Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail.allbsd.org [IPv6:2001:2f0:104:e001:0:0:0:41]); Wed, 27 Feb 2019 17:44:21 +0900 (JST) X-Spam-Status: No, score=-94.5 required=13.0 tests=CONTENT_TYPE_PRESENT, ISO2022JP_BODY,QENCPTR1,RCVD_IN_AHBL,RCVD_IN_AHBL_PROXY, RCVD_IN_AHBL_SPAM,RDNS_NONE,SPF_SOFTFAIL,UNPARSEABLE_RELAY, URIBL_SC2_SURBL,URIBL_XS_SURBL,USER_IN_WHITELIST autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mx.allbsd.org X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2019 08:44:33 -0000 ----Security_Multipart(Wed_Feb_27_17_43_23_2019_191)-- Content-Type: Text/Plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Hi, 建博廖 wrote in : 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)----