Re: Determining if a volume is a network volume from an absolute path?
Re: Determining if a volume is a network volume from an absolute path?
- Subject: Re: Determining if a volume is a network volume from an absolute path?
- From: Jerry Pendergraft <email@hidden>
- Date: Wed, 20 Apr 2005 16:54:22 -0500 (CDT)
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 email@hidden
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 (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to 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