Re: determining if a volume is local or remote
Re: determining if a volume is local or remote
- Subject: Re: determining if a volume is local or remote
- From: "James Peach" <email@hidden>
- Date: Fri, 9 Jan 2009 18:52:00 -0800
2009/1/9 John Michael Zorko <email@hidden>:
>
> Hello, all ...
>
> I suspect that there is a way to programmatically determine using POSIX APIs
> whether a volume is local to the machine or a mount of a remote disk.
Local volumes should have MNT_LOCAL set in the f_flags field returned
from statfs(8).
> Can anyone illuminate me as to how, and will the same code work under Linux?
No, Linux struct statfs doesn't appear to have a f_flags field.
--
James Peach | email@hidden
_______________________________________________
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