Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jul 2011 23:37:21 -0700 (PDT)
From:      Michael Haro <mharo@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/159077: Can't cd .. with latest zfs version
Message-ID:  <201107210637.p6L6bLcT059463@backups.mtv.bitsurf.net>
Resent-Message-ID: <201107210710.p6L7A8FN083414@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         159077
>Category:       kern
>Synopsis:       Can't cd .. with latest zfs version
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 21 07:10:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Michael Haro
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD backups.mtv.bitsurf.net 8.2-STABLE FreeBSD 8.2-STABLE #1: Sat Jul 16 19:26:28 PDT 2011 root@backups.mtv.bitsurf.net:/usr/obj/usr/src/sys/KERNEL amd64


freebsd 8.2 stable as of july 16th
zpool version 28
zfs version 3

>Description:

trying to cd up one level using 'cd ..' gives permission denied
	
>How-To-Repeat:

use sh or tcsh, not bash...

$ pwd
/home/mharo
$ cd ..
cd: can't cd to ..
$ ls -ald /home
drwxr-xr-x  4 root  wheel  4 Nov 29  2009 /home
$ ls -ald /home/mharo
drwxr-xr-x  3 mharo  users  15 Jul 20 22:49 /home/mharo
$ cd /home
$ pwd
/home
$ ls -ald mharo
drwxr-xr-x  3 mharo  users  15 Jul 20 22:49 mharo
$ cd mharo
$ cd ..
cd: can't cd to ..

so obviously I can cd into /home, just not via ..

$ zfs list -r zroot/home
NAME               USED  AVAIL  REFER  MOUNTPOINT
zroot/home         162K  2.70G    26K  /home
zroot/home/mharo   119K  2.70G  35.5K  /home/mharo

$ zpool get version zroot
NAME   PROPERTY  VALUE    SOURCE
zroot  version   28       default
$ zfs get version zroot/home
NAME        PROPERTY  VALUE    SOURCE
zroot/home  version   3        -
$ zfs get version zroot/home/mharo
NAME              PROPERTY  VALUE    SOURCE
zroot/home/mharo  version   3        -

I don't recall seeing this problem before I upgraded from zpool version 15 and
a 8-stable from january, but that doesn't mean it didn't exist.


>Fix:

unknown


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107210637.p6L6bLcT059463>