From owner-freebsd-fs@FreeBSD.ORG Tue Aug 28 20:54:56 2012 Return-Path: Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B07551065678; Tue, 28 Aug 2012 20:54:56 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) by mx1.freebsd.org (Postfix) with ESMTP id 934F68FC1C; Tue, 28 Aug 2012 20:54:56 +0000 (UTC) Received: from epsilon.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 0D8C51D579; Tue, 28 Aug 2012 13:54:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1346187296; bh=rWCqtLZsUqIvIPPaa5hpUBknJTupyFmrTy3maujcUCk=; h=Date:From:Reply-To:To:Subject; b=XhCibDuoNrehJI9Bt3+M2LemZbHpgcNT2grrHsd+PI505u9itf7uh5pv+PBep+vru krgIlEmk0v5//fMkuntbilW/vxC2SiyLZ4LH0LWGPTA3rAf5zrTNEtWnvLgQNfSM52 tiahXQfNipGEBBy1N0bhcla2DPi0UUqRTicZgp0M= Message-ID: <503D301F.5080607@delphij.net> Date: Tue, 28 Aug 2012 13:54:55 -0700 From: Xin Li Organization: The freeBSD Project User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.6esrpre) Gecko/20120727 Thunderbird/10.0.6 MIME-Version: 1.0 To: rmacklem@FreeBSD.org, freebsd-fs@FreeBSD.ORG X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Why vfs_stdcheckexp is a VFS operation? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Aug 2012 20:54:56 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, We have recently run into a problem with exports(5) and I then read the code of mountd(8) as well as sys/kern/vfs_exports.c and found that vfs_stdcheckexp is a VFS operation and not a vnode operation. So for instance if one exports a mountpoint, and later changes his mind and export a directory under that mountpoint, clients that have mounted the mountpoint before the second operation will still have access. Is this intentional (e.g. for performance consideration?) Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJQPTAfAAoJEG80Jeu8UPuzGykIAIBOrRNGsqgLNzIpEtqsBjKE ZSGTVLCfoAWeeOLKLuNv3yusFs1TVoIPWlr1Pnq/olQQWaShj7iFQioKQSQtMfJC xBJrn1IRGaYqR31VzxZ4KWof5QU+1hAgyxLnoZaHqYiNTIQWz2G0LYKs9QdQmyZ2 IP5WXtGVXi6U1VClIpr6GzMebGMGObQqlpzqN23EEmUjIIML1lWX/3vNqXjp7WsH pcalf7PdthnKINn7IWcfLcmJydWQz4lihs/sm5oT9KwnlQtryH3pTa1C5qHP4vK2 lIPc6jAhr9X0tY28YzBPRHej9ChVm61Qrkudeg7fGZ7arKFRDDG/h1TbJDEdCOw= =42qZ -----END PGP SIGNATURE-----