• 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:Core Data File Sharing via an AFP Alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re:Core Data File Sharing via an AFP Alias


  • Subject: re:Core Data File Sharing via an AFP Alias
  • From: Steve Steinitz <email@hidden>
  • Date: Sun, 17 Jun 2007 18:02:06 +1000

Hi Ben,

On Saturday, 16 June 2007 at 2:12 pm, Ben Trumbull wrote:

> Core Data and SQLite rely on file locking (Posix style fcntl() for
> most file systems).  Consequently, all access to the database must go
> through the *same* file system.

That is a useful piece of information.  Thank you.

> Both computers must access the file through AFP, on 10.4.9 or later.
> Have the first computer access the local file through an AFP mount
> instead of directly.

Great idea.  But I can't seem to mount my local volume, located at

    /Volumes/SJS (on localhost).

I googled and searched the list archives to little avail.  Here's the
short list of what I've tried.  I first do:

    $ mkdir /Volumes/salesdb

Then, the following result in "error -5019, errno is 2"

    $ mount_afp afp://steinitz:password@localhost/Volumes/SJS /Volumes/salesdb
    $ mount_afp afp://steinitz:password@localhost/Volumes/SJS/ /Volumes/salesdb

While the following doesn't return an error and even appears to mount a volume,
it just gets the spinning beach ball when I click on it

    $ mount_afp afp://steinitz:password@localhost/SJS /Volumes/salesdb

Of course trying to afp-mount the volume in the Finder using Connect
to Server... gets "This file server is running on your machine. Please
access the volumes and files locally.".  Similarly for the mount
volume command in AppleScript.

Thanks for any advice,

Steve
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

References: 
 >re:Core Data File Sharing via an AFP Alias (From: Ben Trumbull <email@hidden>)

  • Prev by Date: Re: Get list of installed applications in the Mac
  • Next by Date: Re: Fetch request problem with core data relationship and NSTableView
  • Previous by thread: re:Core Data File Sharing via an AFP Alias
  • Next by thread: re:Core Data File Sharing via an AFP Alias
  • Index(es):
    • Date
    • Thread