| Subject: | Re: inode open |
|---|---|
| From: | Simon Burge <simonb@xxxxxxxxxx> |
| Date: | Wed, 16 Jul 2008 08:56:32 UTC |
| Newsgroups: | fa.netbsd.tech.kern |
Adam Burkepile wrote: > Is there an open function that will open a file based on its inode > number instead of a path? fhopen(2) sort of does that, but you need the original path name get the file handle in the first place. > Or equivalently, a function to convert an inode to a path so regular > open can open it? "find <filesystem> -x -inum <number>" is about the easiest way. Or maybe fts(3) if you want something in a program (which is what find(1) uses anyway). Simon. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | inode open, Adam Burkepile |
|---|---|
| Next by Date: | [GSOC 2008] update: lvm project, Adam Hamsik |
| Previous by Thread: | inode open, Adam Burkepile |
| Next by Thread: | Re: inode open, Matt Thomas |
| Indexes: | [Date] [Thread] [Top] [All Lists] |