Strange behavior of .zfs/snapshot/* directories in respect to ".." path.

Andriy Gapon avg at FreeBSD.org
Fri May 26 16:16:39 UTC 2017


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 at 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.


-- 
Andriy Gapon


More information about the freebsd-fs mailing list