lkml.org 
[lkml]   [1998]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: fs inode lookup
  Hello.
>
> For consistency checks in RSBAC I am looking for a way to lookup (or at
> least check existence of) fs inodes on devices.
>
> Currently only kdev number and inode number are available. kdev leads
> easily to superblock and fs root dentry, inode number leads me nowhere.
How :?)

> So my questions are:
>
> 1. Is there any generic way using vfs? I didn't find any...
I don't know any. You can only read inode using iget() and then determine
somehow whether it is deleted (in ext2 using dtime would be enough IMHO).
> 2. If not, is there an official way for ext2 (and hopefully others)?
Another reliable way for ext2 would be to use its library for manipulating
with filesystem (it is in package e2fsprogs...).

Nice hacking. Honza.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.105 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site