inode for a given vnode or filepath.
inode for a given vnode or filepath.
- Subject: inode for a given vnode or filepath.
- From: "Maxim Zhuravlev" <email@hidden>
- Date: Thu, 31 Jul 2008 15:23:51 +0400
Hi, all.
I would like to find out, how can I get an inode number for a given
vnode or filename.
For a vnode I can use vnode_getattr(), but it requires vfs context as
one of it's parameters. I can get the context by using
vfs_context_current(), but it seems to be in
com.apple.kpi.unsupported. Are there any other *supported* ways to get
inode number (va_fileid in vnode_attr structure) and device id
(va_fsid in vnode_attr structure)?
And at last, does inode number and/or device id change over time and,
if they do, under what circumstances?
Thanks in advance,
- Maxim.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden