Re: determining if a volume is local or remote
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Jan 9, 2009, at 12:33 PM, John Michael Zorko wrote: Hello, all ... _______________________________________________ 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... 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. Can anyone illuminate me as to how, and will the same code work under Linux? You can find this information for files so you can probably use it for the mountpoint. It's in one of the structures returned by the stat APIs. This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre