Re: filepath-on-device to BSD-devpath-of-that-device
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com
I'm no expert, but I would have thought getfsstat() and friends.
Thanks. That worked great! (code snippet included for future archive searchers) #include <stdio.h> #include <sys/param.h> #include <sys/mount.h> int main() { struct statfs the_stats; char * the_file = "/Volumes/SOME_DATA_CD/A_SUB_FOLDER/THE_FILE.txt"; statfs(the_file, &the_stats); printf("%s\n", the_stats.f_mntfromname); return 0; }; - Chase _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Chase