site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com One method is to also use stat to get the device for /, then if the device for the directory in question is different, it must be mounted. That may be too simple, because it does not tell you if it is a remote or local mount. -- Jerry Pendergraft jerry.pendergraft@endocardial.com St. Jude Medical voice: 651-523-6935 1350 Energy Lane, Suite 110 fax: 651-644-7897 St Paul, MN 55108-5254 mobile: 651-491-0163 On Wed, 20 Apr 2005, Stéphane Sudre wrote:
Is it possible to determine from an absolute path if the file/folder described by the path is on a network volume or not?
With the stat API I can get the inode's device (dev_t) but some grep in /usr/include are not very enlightening.
The volume is "mounted" when I need to know this.
_______________________________________________ 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/jerry%40endocardial.com
This email sent to jerry@endocardial.com
_______________________________________________ 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