inode for a given vnode or filepath.
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=X9dqwcmHoYE6tzC0nPHGN9lGEyFuRyDFKMKWGfnfvDM=; b=MJMovEJ1Zd9kHWWvGw+M9jll2wd2oR6T0jBRlsw2z+C2SIJPiGmqLrND5zuqbMe200 sK+kDgUB9wojCR+Ag/l2CvabNQl/0ebGULmysfIxfDN+YONwm0fOdsPiKSF7Z7Gqb831 T0wZ5P7Yega/qa9BspNMSpfR9rts0uJw77oyw= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=EZiblcQy4+r2HcMWizvK8sI8IEcmSWYoNFfsL02Zwn3DqP8i1/rAvm0qtTJOqWfayl jXOtSAg7JYtJUED5wLh5/ZT9YGIUvsly8ldt9g9OI/3KxJxpfcNtQovwWw/9SNq1SiWI Xj4u9wiZ6MHsPee00EvhtcU+cRr3XcAV+ZxZk= 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Maxim Zhuravlev