Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Nov 2010 12:27:55 +0200
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        Rick Macklem <rmacklem@uoguelph.ca>, freebsd-stable@freebsd.org, jhb@freebsd.org, Josh Carroll <josh.carroll@gmail.com>, Kostik Belousov <kostikbel@gmail.com>
Subject:   Re: NFS deadlock (unkillable nfsd and no mounts work) 
Message-ID:  <E1PIIlY-000Npn-Io@kabab.cs.huji.ac.il>
In-Reply-To: <4CD532EB.1050008@freebsd.org> 
References:  <AANLkTikHKAL4m_fHjnoJBwFkD7xwKpa92uHLkMzzvm2p@mail.gmail.com>  <1984713101.142889.1288963447940.JavaMail.root@erie.cs.uoguelph.ca>  <AANLkTi=_T5CcTrr%2BdMv90UpQr32=X=si5cNr_A0rua6X@mail.gmail.com>  <20101105212757.GG2392@deviant.kiev.zoral.com.ua> <4CD532EB.1050008@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> on 05/11/2010 23:27 Kostik Belousov said the following:
> > I agree that the fix a right fix for real issue. It should only
> > affect the filesystems that do support VFS_VGET(). In other words,
> > it is relevant for e.g. UFS exports, but not for ZFS, that is the
> > Andrey case.
> 
> Actually ZFS does implement vfs_vget, but with a special quirk for .zfs/ and
> stuff under it:
> 
> static int
> zfs_vget(vfs_t *vfsp, ino_t ino, int flags, vnode_t **vpp)
> {
>         zfsvfs_t        *zfsvfs = vfsp->vfs_data;
>         znode_t         *zp;
>         int             err;
> 
>         /*
>          * zfs_zget() can't operate on virtual entires like .zfs/ or
************************************************ entries 
************************
===============================================================================
==
>          * .zfs/snapshot/ directories, that's why we return EOPNOTSUPP.
>          * This will make NFS to switch to LOOKUP instead of using VGET.
>          */
>         if (ino == ZFSCTL_INO_ROOT || ino == ZFSCTL_INO_SNAPDIR)
>                 return (EOPNOTSUPP);
> ...
> ...
> 
> 
> -- 
> Andriy Gapon
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
> 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1PIIlY-000Npn-Io>