From owner-freebsd-fs@freebsd.org Fri May 26 14:19:37 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1DB61D82A24 for ; Fri, 26 May 2017 14:19:37 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.not-for.work (onlyone.not-for.work [IPv6:2a01:4f8:201:6350::2]) by mx1.freebsd.org (Postfix) with ESMTP id E20C71F1F; Fri, 26 May 2017 14:19:36 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from [192.168.17.133] (unknown [89.113.128.32]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.not-for.work (Postfix) with ESMTPSA id 6024B8D0; Fri, 26 May 2017 17:19:35 +0300 (MSK) To: freebsd-fs@freebsd.org, Andriy Gapon Reply-To: lev@FreeBSD.org From: Lev Serebryakov Subject: Strange behavior of .zfs/snapshot/* directories in respect to ".." path. Organization: FreeBSD Message-ID: <1acc5917-f10f-b18a-50e0-84661173e85d@FreeBSD.org> Date: Fri, 26 May 2017 17:19:34 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 May 2017 14:19:37 -0000 I have some filesystem with multiple snapshots. And behavior of "cd .." in snapshot directories is very strange: when I'm in one of dnapshot directories "cd ../other" doesn't work and "cd .." brings me to the root of file system. $ pwd /usr/home/lev $ cd .zfs/snapshot $ pwd /usr/home/lev/.zfs/snapshot $ ls | tail -2 weekly-2017-05-06_05.17.18--1y weekly-2017-05-13_04.18.37--1y $ cd weekly-2017-05-06_05.17.18--1y $ pwd /usr/home/lev/.zfs/snapshot/weekly-2017-05-06_05.17.18--1y $ cd ../weekly-2017-05-13_04.18.37--1y ../weekly-2017-05-13_04.18.37--1y: No such file or directory. $ pwd /usr/home/lev/.zfs/snapshot/weekly-2017-05-06_05.17.18--1y $ cd .. $ pwd /usr/home/lev $ uname -i -K -v FreeBSD 11.1-PRERELEASE #16 r318576: Sat May 20 22:30:06 MSK 2017 root@blob.home.serebryakov.spb.ru:/usr/obj/usr/src/sys/BLOB BLOB 1100513 $ Is it Ok? -- // Lev Serebryakov