From owner-freebsd-fs@FreeBSD.ORG Sat Oct 4 21:20:28 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1EA94CEE; Sat, 4 Oct 2014 21:20:28 +0000 (UTC) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id C7A4B7DE; Sat, 4 Oct 2014 21:20:27 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqAEAGJjMFSDaFve/2dsb2JhbABfhD2Cfs96gR4Be4QtVjUCDRkCX4hRqX6VMAEXgSyOTBk0gj0PMhKBQgWqEIkug38hgTZBgQIBAQE X-IronPort-AV: E=Sophos;i="5.04,654,1406606400"; d="scan'208";a="158384895" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-jnhn.mail.uoguelph.ca with ESMTP; 04 Oct 2014 17:20:19 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id B2B70AE923; Sat, 4 Oct 2014 17:20:19 -0400 (EDT) Date: Sat, 4 Oct 2014 17:20:19 -0400 (EDT) From: Rick Macklem To: FreeBSD Filesystems Message-ID: <1692537569.57810384.1412457619725.JavaMail.root@uoguelph.ca> Subject: VFS_QUOTACTL() not implemented for ZFS MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.209] X-Mailer: Zimbra 7.2.6_GA_2926 (ZimbraWebClient - FF3.0 (Win)/7.2.6_GA_2926) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Oct 2014 21:20:28 -0000 Hi, One of the changes in r272467 is enabling support for the NFSv4 quota attributes by default. (Prior to r272467, they were only enabled when a kernel was built with "options QUOTA".) araujo@ noted that this was because quotas are enabled by default for ZFS. Not being a ZFS guy, I took a look and it appears that VFS_QUOTACTL() isn't implemented for ZFS. This brings me to the question of what should NFSv4 do? Is there a way for the NFSv4 server to acquire/set quotas for ZFS? Or put another way, can zfs_quotactl() be implemented? If not, I suspect that NFSv4 shouldn't support quota attributes for ZFS volumes. I guess the NFSv4 server can determine this by seeing if VFS_QUOTACTL() returns EOPNOTSUPP. So, does anyone have thoughts on how NFSv4 should handle ZFS quotas? Thanks in advance for any comments, rick