From owner-freebsd-bugs@freebsd.org Wed Feb 27 08:24:41 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 DE1271515411 for ; Wed, 27 Feb 2019 08:24:40 +0000 (UTC) (envelope-from jbliao@cs.nctu.edu.tw) Received: from tcsmailer.cs.nctu.edu.tw (tcsmailer.cs.nctu.edu.tw [140.113.235.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9B4C86CC4E for ; Wed, 27 Feb 2019 08:24:36 +0000 (UTC) (envelope-from jbliao@cs.nctu.edu.tw) Received: from tcsmailer.cs.nctu.edu.tw (localhost [127.0.0.1]) by tcsmailer.cs.nctu.edu.tw (Postfix) with ESMTP id C1E2BA964 for ; Wed, 27 Feb 2019 16:24:21 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.nctu.edu.tw; s=cs.nctu.edu.tw; t=1551255861; bh=Z8J9zhanr9jhmGRXHSZ+nCiROBZirGTo7+wbBjRfdSk=; h=From:Date:Subject:To:Cc; b=Oyw1dGDygIVtKr1M/GBzw6zAtZdtVbuF+6dDvmoIDxHLU3aQSxzbKg3n5zHEhTysg o+rbL6zdmtVVDZNN7n8Xuq7wt+M8B81PHlrqDAF2T8z3rNmkhQnMMGtCR/J3yPtaHf iw+FUDTy/b15vPr2vC7cQd0jn8JFk85Fai9vU1iU+XTqPsuTuECYvOdm5drFmiNh5F 8dGLUolK/qdrClhx2pP/I3oXvH3OFsAnjHxzVsaFvGl2LG9kkGPHezxkWgbE36toSw +GPTz2GGvXUe3Begjzwzp9pFaJyk5JdPHbiFQef8qZYLiF5l1bwQFfgwUxKMcQP+JH 1aIOWRq6FVtrolBOK5FgOaGmpYz0hXLpRMU5u+p5WrKlUa3M9GZQyQ1naJoL5DN1UV I/raqyKRYeshiR0qhLFczy8UseVCCmCuqRuTiY4ZrF5uLIPGy+1EZzuY49MvEF5VY5 lz2ijWz279iEpr2Nn/6M5IHyXFn7rUfb6a0PXysgTfFjdGz6CGVaucdqYa2NsOfMWy QTTFGQpXM2kNVtfzplatr5VigjHdtBqb2jCW574tmNv0KHam7VSBclknTwhnvUYtDG Q47szFl5bt+V/0riMoQbYlaItFLP/oWf72R7YHC+BsTMPXFpJqgPE6lWn2dDz48E/h EjTOxsKcsqfmOlwh7NJBg6lo= Received: from tcsmailer.cs.nctu.edu.tw ([127.0.0.1]) by tcsmailer.cs.nctu.edu.tw (tcsmailer.cs.nctu.edu.tw [127.0.0.1]) (amavisd-new, port 10027) with ESMTP id 69XAmk3sGiZy for ; Wed, 27 Feb 2019 16:24:21 +0800 (CST) Received: from csmailer.cs.nctu.edu.tw (csmailer.cs.nctu.edu.tw [140.113.235.130]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by tcsmailer.cs.nctu.edu.tw (Postfix) with ESMTPS id A1326A963 for ; Wed, 27 Feb 2019 16:24:21 +0800 (CST) Received: from csmailer.cs.nctu.edu.tw (localhost [127.0.0.1]) by csmailer.cs.nctu.edu.tw (Postfix) with ESMTP id 9C0181BBE6 for ; Wed, 27 Feb 2019 16:24:21 +0800 (CST) X-Virus-Scanned: amavisd-new at cs.nctu.edu.tw Received: from csmailer.cs.nctu.edu.tw ([127.0.0.1]) by csmailer.cs.nctu.edu.tw (csmailer.cs.nctu.edu.tw [127.0.0.1]) (amavisd-new, port 10027) with ESMTP id Y50z2eLyFnIU for ; Wed, 27 Feb 2019 16:24:21 +0800 (CST) Received: from csmail2.cs.nctu.edu.tw (csmail2.cs.nctu.edu.tw [140.113.235.72]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by csmailer.cs.nctu.edu.tw (Postfix) with ESMTPS id 6970E1BBDF for ; Wed, 27 Feb 2019 16:24:21 +0800 (CST) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (Authenticated sender: jbliao) by csmail2.cs.nctu.edu.tw (Postfix) with ESMTPA id 538921744CA for ; Wed, 27 Feb 2019 16:24:19 +0800 (CST) Received: by mail-wm1-f44.google.com with SMTP id z84so4645171wmg.4 for ; Wed, 27 Feb 2019 00:24:19 -0800 (PST) X-Gm-Message-State: AHQUAubiP3ssKN2eqoCmerZ+iOzRCt1HNqDwj6ccPXVkpD9EFLQ/URGD yLH5k4CCXGFHRjjIcA1lPztGL2fJ8y3DUVCVKM/Ifw== X-Google-Smtp-Source: AHgI3IYVq2KMQuzOCHJjTq1Q/6lZY79QFc1MwNUbjyjtqu8hciKfIqMUIw/kIdUrFDiSEd/+IS8Knqnew4FbpOsUZmM= X-Received: by 2002:a1c:1902:: with SMTP id 2mr269877wmz.150.1551255856983; Wed, 27 Feb 2019 00:24:16 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?B?5bu65Y2a5buW?= Date: Wed, 27 Feb 2019 16:24:08 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Quota on FreeBSD 12.0 is not working with NetApp To: freebsd-bugs@freebsd.org Cc: bsdta@cs.nctu.edu.tw Content-Type: multipart/mixed; boundary="0000000000004fe8ff0582dbe695" X-Rspamd-Queue-Id: 9B4C86CC4E X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.nctu.edu.tw header.s=cs.nctu.edu.tw header.b=Oyw1dGDy; spf=pass (mx1.freebsd.org: domain of jbliao@cs.nctu.edu.tw designates 140.113.235.123 as permitted sender) smtp.mailfrom=jbliao@cs.nctu.edu.tw X-Spamd-Result: default: False [-5.24 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[cs.nctu.edu.tw:s=cs.nctu.edu.tw]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:tcsmailer.cs.nctu.edu.tw]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; HAS_ATTACHMENT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-bugs@freebsd.org]; TO_DN_NONE(0.00)[]; MIME_GOOD(-0.10)[multipart/mixed,multipart/alternative,text/plain]; DMARC_NA(0.00)[nctu.edu.tw]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cs.nctu.edu.tw:+]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.01)[csmx3.cs.nctu.edu.tw,csmx1.cs.nctu.edu.tw]; IP_SCORE(-1.78)[ipnet: 140.113.0.0/16(-4.90), asn: 9916(-3.92), country: TW(-0.10)]; NEURAL_HAM_SHORT(-0.95)[-0.949,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:9916, ipnet:140.113.0.0/16, country:TW]; RCVD_COUNT_SEVEN(0.00)[9] X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:24:41 -0000 --0000000000004fe8ff0582dbe695 Content-Type: text/plain; charset="UTF-8" Hi all, We meet a quota problem with NetApp after upgraded system from FreeBSD-11.2 to FreeBSD-12.0. The quota command in FreeBSD-12.0 returned nothing on any NetApp mount point which works good in FreeBSD-11.2. So we trace the rpc.rquotad packet with tcpdump, and found that the difference is quota of FreeBSD-11.2 sent request of rquota-v1 and FreeBSD-12.0 sent request of rquota-v2. Then we trace the code of quota which is located in '/usr/src/usr.bin/quota/quota.c' to find is there any way to send only rquota-v1 request or resend rquota-v1 request after failure of rquota-v2 request. We found that quota will try rquota-v1 if the v2 request return "Program Version Mismatch", but NetApp seems have a non-standard behavior that would response "Program Not Registered" and leads quota exit without re-trying v1 request. Link below is the issue of libtirpc on Linux caused by the same non-standard behavior: https://sourceforge.net/p/libtirpc/mailman/message/36337416/ We patch one line code and it works on our environment for temporary. The diff output of our patch is attached in the letter. We wonder if this patch can be merged into FreeBSD-12.0, or is there any solution can force quota to use rquota v1 (add an option for this, maybe?) Because NetApp does not want to fix this behavior since 2008, we want to find some solution from FreeBSD. Regards, Jian-Bo Liao Teaching Assistant Computer Center, Department of Computer Science, National Chiao Tung University, Taiwan. 1001 University Road, Hsinchu, Taiwan 300, ROC. --0000000000004fe8ff0582dbe695 Content-Type: application/octet-stream; name="quota.c.diff" Content-Disposition: attachment; filename="quota.c.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jsmu4ztq0 NjA5YzYwOQo8IAlpZiAoY2FsbF9zdGF0ID09IFJQQ19QUk9HVkVSU01JU01BVENIKSB7Ci0tLQo+ IAlpZiAoY2FsbF9zdGF0ID09IFJQQ19QUk9HVkVSU01JU01BVENIIHx8IGNhbGxfc3RhdCA9PSBS UENfUFJPR05PVFJFR0lTVEVSRUQpIHsK --0000000000004fe8ff0582dbe695--