|
|
|
WebCrossing Neighbors Creates Private Social Networks Create a complete social network with your company or group's own look. Scalable, extensible and extremely customizable. Take a guided tour today <http://www.webcrossing.com/tour> |
New File System in Tiger
via email
Experimenting with Tiger, I was surprised by new file behavior. It
seems that the old system of file locks has been replaced with a
system based on inter-process signalling. In Tiger, if a file is
opened for editing, it is not locked to prevent another program
writing to it, as the following simple example shows.
First create a text file containing "Line0" .
Then open it in two editors concurrently. I used BBEdit and TextWrangler.
Place windows side by side and observe.
BBE TW
line0 line0
Add to BBE and Save.
BBE TW
line0 line0
lineBBE
Now click on the TW window. The newly saved file is automatically read into TW.
BBE TW
line0 line0
lineBBE LineBBE
Add a line to TW but do not save. Add a line to BBE and Save.
BBE TW
line0 line0
lineBBE LineBBE
LineBBE2 LineTW
Now when you click on the TW window you get a Warning Message
BBE TW
line0 line0
lineBBE LineBBE
LineBBE2 LineTW
"One or more files were changed on disk, but were
not loaded because they had unsaved changes"
The file system, by allowing two programs to open the same file for editing,
caused this conflict. These programs can deal with the file signals
to help prevent data loss but not all programs can. In particular, if
you place two Terminal windows side by side and in each use pico to
edit the same file as above, then the saved file is not automatically
read and there is no Warning Message. Instead the file exists as the
last version saved.
Most Mac users may never come across such a conflict in practice but
I did, and that is why I investigated the simple case. Presumably Mac
Developers have known about these changes for some time. Perhaps
someone on this list could educate us on the background and indicate
where we might observe conflicts.
On 21-Dec-2004, I posted the following to TidBITS.
...Simpler than an imap server.... I have our Eudora Folder with Data
on one machine and an alias on the other pointing to the Settings
File. Both Macs have the Eudora program available and the Macs are
connected by standard AppleShare over 100Base-T network. Now we can run
Eudora on exactly the same database on either Mac. The main
restriction is that we both cannot be on Eudora at the same time.
Indeed AppleShare prevents a second access to the one Settings File.
We ran like that successfully for many months under Panther. Then,
under Tiger, I found there was nothing to prevent Eudora running on
both Macs and we could both change the one database! I have had to
build my own lock with ssh to query with ps whether Eudora is running
on the other Mac.
Upgrades keep you from getting bored and complacent.
Denis Jarvis
Mark as Read
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
TidBITS
TidBITS
TidBITS Talk
New File System in Tiger
