• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Network volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Network volume


  • Subject: Re: Network volume
  • From: Ben Trumbull <email@hidden>
  • Date: Tue, 23 Dec 2008 20:21:43 -0800

On 2008 Dec, 23, at 14:02, Nor wrote:

But I don't know which volumes were networks'.


	if (0 == statfs(fileName, &stats_buf)) {
		localFS = ((stats_buf.f_flags & MNT_LOCAL) == MNT_LOCAL);

statfs will also tell you if the volume is the root volume.

- Ben



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Network volume
      • From: Nor <email@hidden>
  • Prev by Date: re: Crash as NSPersistentDocument creates its persistence stack
  • Next by Date: Re: Get notified of fullscreen switch
  • Previous by thread: Re: Network volume
  • Next by thread: Re: Network volume
  • Index(es):
    • Date
    • Thread