From 750a1c766f441b0330f0cf27ee7a45120525c778 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Sun, 25 Jun 2017 00:56:58 +0300 Subject: [PATCH] sys/vfs/hammer: Fix a comment on nresolving PFS On nresolving a PFS, the entry name to be resolved is the PFS itself, whether it's pointed to by a symlink or not. Also note that a PFS doesn't necessarily require a symlink to point to itself. A symlink is used only because the PFS itself isn't visible to userspace via readdir(2) (i.e can't see with ls without a symlink...). --- sys/vfs/hammer/hammer_vnops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vfs/hammer/hammer_vnops.c b/sys/vfs/hammer/hammer_vnops.c index 0b99705dec..f4a99cd763 100644 --- a/sys/vfs/hammer/hammer_vnops.c +++ b/sys/vfs/hammer/hammer_vnops.c @@ -1140,7 +1140,7 @@ hammer_vop_nresolve(struct vop_nresolve_args *ap) nlen = i; /* - * If this is a PFS softlink we dive into the PFS + * If this is a PFS we dive into the PFS root inode */ if (ispfs && nlen == 0) { ip = hammer_get_inode(&trans, dip, HAMMER_OBJID_ROOT, -- 2.41.0