svn commit: r211855 -
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Aug 26 23:44:32 UTC 2010
Author: pjd
Date: Thu Aug 26 23:44:32 2010
New Revision: 211855
URL: http://svn.freebsd.org/changeset/base/211855
Log:
Update comment now that I finally committed r211854.
MFC after: 1 month
Modified:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c Thu Aug 26 23:41:40 2010 (r211854)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c Thu Aug 26 23:44:32 2010 (r211855)
@@ -1563,15 +1563,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);
More information about the svn-src-head
mailing list