Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Permissions are like Rubik's cubes [SOLVED]
- Date: Tue, 2 Sep 2008 15:35:45 +0900 (JST)
- From: Tod McQuillin <devin@example.com>
- Subject: Re: [tlug] Permissions are like Rubik's cubes [SOLVED]
- References: <48BBBF50.7020906@autotelic.com> <20080901113022.f5cc47b1.gstewart@bonivet.net> <48BBE994.70506@articlass.org> <87prnnp93m.fsf@uwakimon.sk.tsukuba.ac.jp> <20080902120043.L17661@plexi.pun-pun.prv> <87hc8zp3tq.fsf@uwakimon.sk.tsukuba.ac.jp> <20080902134240.G17661@plexi.pun-pun.prv> <87d4jnoznv.fsf@uwakimon.sk.tsukuba.ac.jp> <20080902145803.I17661@plexi.pun-pun.prv> <877i9voxzm.fsf@uwakimon.sk.tsukuba.ac.jp>
On Tue, 2 Sep 2008, Stephen J. Turnbull wrote:
Tod McQuillin writes:
> lsof is only part of the puzzle. lsof can tell you which files are > referenced by processes but it won't tell you which of them are not linked > from any directory.
If a file is not linked, what does lsof use for a name? I was guessing that it would use a reference to the inode.
Yes, it does, but just because lsof uses a reference to the inode doesn't mean the file is unlinked, it just means it doesn't exist in the name cache.
In the general case, to map an inode number to a filename requires a complete traversal of the filesystem. Needless to say, lsof doesn't do this, it just looks in the name cache to see if the inode is associated with a filename there, and if so, it uses that filename. If the name cache entry for that inode has expired then lsof just tells you the inode number, even if the file isn't yet unlinked.
--
Tod
- References:
- [tlug] Permissions are like Rubik's cubes
- From: Dave M G
- Re: [tlug] Permissions are like Rubik's cubes
- From: Godwin Stewart
- Re: [tlug] Permissions are like Rubik's cubes [SOLVED]
- From: Dave M G
- Re: [tlug] Permissions are like Rubik's cubes [SOLVED]
- From: Stephen J. Turnbull
- Re: [tlug] Permissions are like Rubik's cubes [SOLVED]
- From: Tod McQuillin
- Re: [tlug] Permissions are like Rubik's cubes [SOLVED]
- From: Stephen J. Turnbull
- Re: [tlug] Permissions are like Rubik's cubes [SOLVED]
- From: Tod McQuillin
- Re: [tlug] Permissions are like Rubik's cubes [SOLVED]
- From: Stephen J. Turnbull
- Re: [tlug] Permissions are like Rubik's cubes [SOLVED]
- From: Tod McQuillin
- Re: [tlug] Permissions are like Rubik's cubes [SOLVED]
- From: Stephen J. Turnbull
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Permissions are like Rubik's cubes [SOLVED]
- Next by Date: [tlug] Cannot compile gcc 4.3.1 using CentOS gcc 4.1.2
- Previous by thread: Re: [tlug] Permissions are like Rubik's cubes [SOLVED]
- Next by thread: Re: [tlug] Permissions are like Rubik's cubes [SOLVED]
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links