| To: | "Daniele P." <daniele@xxxxxxxxxxxx>, xfs@xxxxxxxxxxx |
|---|---|
| Subject: | Re: xfs_ncheck gives outdated and partial result |
| From: | Timothy Shimmin <tes@xxxxxxx> |
| Date: | Mon, 23 Oct 2006 14:26:07 +1000 |
| In-reply-to: | <200610200858.08718.daniele@xxxxxxxxxxxx> |
| References: | <200610200858.08718.daniele@xxxxxxxxxxxx> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
--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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] diskquota: 32bit quota tools on 64bit architectures, David Chinner |
|---|---|
| Next by Date: | Re: [patch] Fix xfs_iunpin() sets I_DIRTY_SYNC after clear_inode()., Takenori Nagano |
| Previous by Thread: | Re: xfs_ncheck gives outdated and partial result, Eric Sandeen |
| Next by Thread: | Appointments for the post of representatives/ book-keepers in the United States.., Marson Clark |
| Indexes: | [Date] [Thread] [Top] [All Lists] |