Author: pjd
Date: Tue Nov  2 22:48:18 2010
New Revision: 214695
URL: http://svn.freebsd.org/changeset/base/214695

Log:
  MFC r211855:
  
  Update comment now that I finally committed r211854.

Modified:
  stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
==============================================================================
--- stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c        
Tue Nov  2 22:44:51 2010        (r214694)
+++ stable/8/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c        
Tue Nov  2 22:48:18 2010        (r214695)
@@ -1555,15 +1555,9 @@ zfs_vget(vfs_t *vfsp, ino_t ino, int fla
        int             err;
 
        /*
-        * XXXPJD: zfs_zget() can't operate on virtual entires like .zfs/ or
-        * .zfs/snapshot/ directories, so for now just return EOPNOTSUPP.
-        * This will make NFS to fall back to using READDIR instead of
-        * READDIRPLUS.
-        * Also snapshots are stored in AVL tree, but based on their names,
-        * not inode numbers, so it will be very inefficient to iterate
-        * over all snapshots to find the right one.
-        * Note that OpenSolaris READDIRPLUS implementation does LOOKUP on
-        * d_name, and not VGET on d_fileno as we do.
+        * zfs_zget() can't operate on virtual entires like .zfs/ or
+        * .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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to