From owner-freebsd-fs@freebsd.org Fri May 26 17:17:17 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 C928FD83153 for ; Fri, 26 May 2017 17:17:17 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citapm.icyb.net.ua (citapm.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id EAD7017CB; Fri, 26 May 2017 17:17:16 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citapm.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id UAA07238; Fri, 26 May 2017 20:17:15 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1dEIrS-000IXl-T6; Fri, 26 May 2017 20:17:14 +0300 Subject: Re: Strange behavior of .zfs/snapshot/* directories in respect to ".." path. From: Andriy Gapon To: lev@FreeBSD.org, freebsd-fs@FreeBSD.org References: <1acc5917-f10f-b18a-50e0-84661173e85d@FreeBSD.org> Message-ID: Date: Fri, 26 May 2017 20:16:18 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 17:17:17 -0000 On 26/05/2017 19:15, Andriy Gapon wrote: > On 26/05/2017 17:19, Lev Serebryakov wrote: >> >> 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? > > This is not okay, obviously. > But I can not reproduce it so far. > > Actually, I can... I will take a look. Thank you for the report. -- Andriy Gapon