From owner-freebsd-fs@FreeBSD.ORG Fri Nov 14 12:37:36 2008 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 10E9A1065676 for ; Fri, 14 Nov 2008 12:37:36 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 425A88FC13 for ; Fri, 14 Nov 2008 12:37:34 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA00468 for ; Fri, 14 Nov 2008 14:37:32 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <491D710A.9090308@icyb.net.ua> Date: Fri, 14 Nov 2008 14:37:30 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.17 (X11/20081106) MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: zfs snapdir: from hidden to visible and back again 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: Fri, 14 Nov 2008 12:37:36 -0000 I needed to check some files in earlier snapshot, so I did: $ zfs set snapdir=visible tank/usr/local everything went well, I examined /usr/local/.zfs/.... and then did: $ zfs set snapdir=hidden tank/usr/local after that .zfs directory disappeared from output of ls -l /usr/local, BUT: $ mount ... tank/usr/local@upgradeall on /usr/local/.zfs/snapshot/upgradeall (zfs, local, noatime, read-only) This is the snapshot that I examined earlier. Hmm, strange. Then I did: $ umount /usr/local/.zfs/snapshot/upgradeall After that .zfs is not listed in /usr/local and mount command does not list the snapshot anymore. Is this correct behavior, did I have to do umount? Also, even with snapdir=hidden, I still can list snapshots (their contents) if I ls full path with .zfs in it. Is this right? -- Andriy Gapon