From owner-freebsd-fs@FreeBSD.ORG Mon Jun 28 12:32:53 2010 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 BD9E1106566B for ; Mon, 28 Jun 2010 12:32:53 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 48C2F8FC15 for ; Mon, 28 Jun 2010 12:32:52 +0000 (UTC) Received: by bwz12 with SMTP id 12so231770bwz.13 for ; Mon, 28 Jun 2010 05:32:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :x-comment-to:date:in-reply-to:message-id:user-agent:mime-version :content-type; bh=bDZFOMrbJhMLlCWwrqu9RtP9m/KSpaIXU/U96o4VsDM=; b=uhV7vHZ8ofxxT6ETxMVmHrTt2e2iFvIHx8U54L9pu6uKkA+ejD6frh91WicCch6UuH tcqbpAjnHRZti7gAGZ78vfp6J/Xu/RJfo5VQI6SqW5ubwe1OZFQ5lt5ZBRDEAOTVQLvG crcaQvl5ku1RjNPz2r3MTAS8HkFJCjM1yOp08= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:x-comment-to:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=X9UPxwW1l24VJA+31ybmdoPFV3BUydHBtXTnhpUz15xHIw/oKU2WJL3nKSPXzOqrzL xp1zJB7b40eX2LBR5K72dSjTIHr4o3eijjcYUw2975cu4/EsN6wVq8yfPFFby29x/BcR EtgMV6t0t7iEDeZmyzdr07tEyLttMoHna8p9k= Received: by 10.204.162.138 with SMTP id v10mr3541360bkx.10.1277728361055; Mon, 28 Jun 2010 05:32:41 -0700 (PDT) Received: from localhost ([95.69.160.105]) by mx.google.com with ESMTPS id u9sm16760132bkf.5.2010.06.28.05.32.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 28 Jun 2010 05:32:40 -0700 (PDT) From: Mikolaj Golub To: Nezmer References: <20100628113837.GA98334@mail> <20100628114542.GA11720@mail> X-Comment-To: Nezmer Date: Mon, 28 Jun 2010 15:32:37 +0300 In-Reply-To: <20100628114542.GA11720@mail> (Nezmer's message of "Mon, 28 Jun 2010 14:45:42 +0300") Message-ID: <8663132v8a.fsf@kopusha.home.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-fs@freebsd.org Subject: Re: nullmounting zfs fs with children X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2010 12:32:53 -0000 On Mon, 28 Jun 2010 14:45:42 +0300 Nezmer wrote: N> On Mon, Jun 28, 2010 at 02:38:37PM +0300, Nezmer wrote: >> Hi, >> >> Is this normal behaviour? >> >> # zfs create -p -o mountpoint=/zfstest/subdir0/subdir1/subdir2 POOL/zfstest/subdir0/subdir1/subdir2 >> # echo 2 > /zfstest/subdir0/subdir1/subdir2/file2 >> # echo 1 > /zfstest/subdir0/subdir1/file1 >> >> # find /zfstest >> /zfstest >> /zfstest/subdir0 >> /zfstest/subdir0/subdir1 >> /zfstest/subdir0/subdir1/file1 >> /zfstest/subdir0/subdir1/subdir2 >> /zfstest/subdir0/subdir1/subdir2/file2 >> >> # mkdir /nulltest >> # mount_nullfs /zfstest /nulltest >> >> # find /nulltest >> /nulltest >> /nulltest/subdir0 >> /nulltest/subdir0/subdir1 >> /nulltest/subdir0/subdir1/file1 >> /nulltest/subdir0/subdir1/subdir2 This is normal. POOL/zfstest and POOL/zfstest/subdir0/subdir1/subdir2 are two file systems. You have null mounted only the first one. You need to null mount subdir2 too: # mount_nullfs /zfstest/subdir0/subdir1/subdir2 /nulltest/subdir0/subdir1/subdir2 -- Mikolaj Golub