Re: problems with NFS mounted home dir and xcode
Re: problems with NFS mounted home dir and xcode
- Subject: Re: problems with NFS mounted home dir and xcode
- From: Ben Golding <email@hidden>
- Date: Tue, 05 Apr 2011 13:03:14 +1000
On 03/03/2010, at 04:31, Mike Collier wrote:
>> Mar 2 08:53:01 marcuspro /System/Library/CoreServices/coreservicesd[66]: FileID race detected: 1903 assigned for ReadMe.rtf by external allocator is already used by ReadMe.rtf
>> Mar 2 08:53:01 marcuspro Xcode[12177]: _getFSRef:forPath:isDirectory: Failed to create FSRef from path /Volumes/allan/.TemporaryItems/folders.6234/TemporaryItems/(A Document Being Saved By Xcode)/ReadMe.rtf
>> Mar 2 08:53:01 marcuspro Xcode[12177]: AppKit called rmdir("/Volumes/allan/.TemporaryItems/folders.6234/TemporaryItems/(A Document Being Saved By Xcode)"), it didn't return 0, and errno was set to 66.
>
> Which OS version are you using?
> I use NFS mounts every day and I used to have lots of problems saving files when I was using Leopard.
> I reported the bug to Apple and maybe they fixed in Snow Leopard because
> I haven't seen any problems so far with Snow Leopard.
> The only solution I found in Leopard when files wouldn't write, was to reboot.
While this seemed to have been working okay, it's started failing again consistently. The pattern is that Xcode will save the file once, but after that you get errors each time you try to save. I have found that alternately creating or removing (if it exists or doesn't) the directory:
$HOME/Library/Caches/TemporaryItems/(A Document Being Saved By Xcode)
means that the save will (usually) work.
My suspicion here is that Xcode is using something like chflags(2) on the file/directory as a way of locking it. That works on HFS+ and other file systems but fails on NFS (returns ENOTSUP).
I've logged a bug with Apple but, well, my experience with seeing these sort of bugs fixed has not been confidence inspiring.
Does anyone have any other suggestions about how to deal with this? Is there an option somewhere to ask Xcode not to use its fancy save strategy?
I'm using Xcode 3.2.6 on Mac OS X 10.6.7.
Ben.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden