--On 20 October 2006 8:58:08 AM +0200 "Daniele P." <daniele@xxxxxxxxxxxx> wrote:
Hi All,
I'm here to ask a couple of question regarding xfs_ncheck.
I'm using xfs_db version 2.6.20
...
And why it's print only the first file name for inodes pointed
by multiple files (2)?
I presume you are referring to hardlinks - with multiple directory
entries pointing to the same inode.
Looking at db/check.c/addname_inode() it looks like it only stores
the first name that it comes across during directory processing when
scanning happens in the blockget command.
addname_inode(
inodata_t *id,
char *name,
int namelen)
{
if (!nflag || id->name) <---- if name exists, then return
return;
id->name = xmalloc(namelen + 1);
memcpy(id->name, name, namelen);
id->name[namelen] = '\0';
}
So we just get one valid path.
--Tim
|