Re: filepath-on-device to BSD-devpath-of-that-device
Re: filepath-on-device to BSD-devpath-of-that-device
- Subject: Re: filepath-on-device to BSD-devpath-of-that-device
- From: "Chase" <email@hidden>
- Date: Wed, 25 Apr 2007 20:01:18 +0000
> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden