fallenpegasus: (Default)
[personal profile] fallenpegasus
For the past twenty years, I've always assumed that, given knowledge of a file's inode number, there was some efficient way to open(2) that file by inode instead of name, and I've just never felt the need to use it.

Now I feel the desire to do that, and cannot find how. Searching google for "open by inode" just gives me references to stuff on how to implement Linux VFS, and/or how to open a file from inside kernel space, not from user space.

The openat(2) looks like a half-assed way to get some but not all of the same optimization.

So, is there a way to "open by inode" from user space, and how do I do it?
From:
Anonymous
OpenID
Identity URL: 
User
Account name:
Password:
If you don't have an account you can create one now.
Subject:
HTML doesn't work in the subject.

Message:

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org


 
Notice: This account is set to log the IP addresses of everyone who comments.
Links will be displayed as unclickable URLs to help prevent spam.

Profile

fallenpegasus: (Default)
Mark Atwood

August 2012

S M T W T F S
   12 3 4
567891011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Style:
[personal profile] twtd

Expand Cut Tags

No cut tags
Page generated May. 23rd, 2013 01:08 am
Powered by Dreamwidth Studios