From owner-freebsd-stable@FreeBSD.ORG Fri Mar 16 17:42:09 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE627106566B for ; Fri, 16 Mar 2012 17:42:09 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) by mx1.freebsd.org (Postfix) with ESMTP id 853398FC17 for ; Fri, 16 Mar 2012 17:42:09 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1S8bAf-000DfK-PC; Fri, 16 Mar 2012 21:42:33 +0400 Date: Fri, 16 Mar 2012 21:42:33 +0400 From: Slawa Olhovchenkov To: "Patrick M. Hausen" Message-ID: <20120316174233.GN52973@zxy.spb.ru> References: <20120316172006.GM97848@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: freebsd-stable@freebsd.org Subject: Re: ZFS & NFS X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2012 17:42:09 -0000 On Fri, Mar 16, 2012 at 06:32:43PM +0100, Patrick M. Hausen wrote: > Hello, > > Am 16.03.2012 um 18:20 schrieb Slawa Olhovchenkov: > > I do NFSv3 export of ZFS. > > root from remote host create files on ZFS witch uid 2^32-2: > > > > # ls -l /usr/ports/packages32/ > > total 6 > > drwxr-xr-x 2 4294967294 wheel 5 Mar 17 00:57 All > > drwxr-xr-x 2 4294967294 wheel 5 Mar 17 00:57 Latest > > drwxr-xr-x 2 4294967294 wheel 3 Mar 17 00:52 archivers > > drwxr-xr-x 2 4294967294 wheel 4 Mar 17 00:57 lang > > > Yes? This is expected behaviour of NFS. If you don't want that, try > > -maproot=root > > either in sharenfs option to zfs or /etc/exports, whichever it is you are using. hmm... nobody:*:65534:65534:Unprivileged user:/nonexistent:/usr/sbin/nologin 65534 != 4294967294 (2^16-2 != 2^32-2) Also, I am think ZFS+NFS will be wrong for UID>2^15.