Re: list of mounted filesystems
Re: list of mounted filesystems
- Subject: Re: list of mounted filesystems
- From: Mark Day <email@hidden>
- Date: Fri, 15 Jan 2010 14:10:40 -0800
On Jan 15, 2010, at 1:35 PM, mogambo wrote:
> Hello,
>
> I am trying to solve the problem of multiple mounts on the same mount point. On linux, I can detect if mount point is already in use by checking the mtab file for a mount point with the same path. However, Mac OS X does not support mtab or fstab. I tried getfsent(), but it the list is empty. How can I detect if the mount point is already in use?
>
> Thanks for your help.
> -m.
You could use getmntinfo(3) or getfsstat(2) to get the list of all mounts at that point in time.
-Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden