Re: Locking mapped files
Re: Locking mapped files
- Subject: Re: Locking mapped files
- From: Georg Tuparev <email@hidden>
- Date: Thu, 16 May 2002 21:33:56 +0200
On Wednesday, May 15, 2002, at 09:41 , Erik M. Buck wrote:
I could be wrong, but I don't think you have to worry about locking
mapped
files (at least with UFS). The file system makes sure that the contents
of a
mapped file are not changed or destroyed while the file is open for
reading
or writing. If someone moves, deletes, or writes to the file that is
already
mapped into memory, the file system does magical things with i-nodes to
make
sure things work out OK.
I do not have a UFS partition on my laptop in order to test this, but at
least on HFS a memory mapped file is not protected against user
vandalism - as my test just shown.
So I am still in search of a general solution in order to lock an opened
mapped file.
TIA
Georg Tuparev
Tuparev Technologies
Klipper 13
1186 VR Amstelveen
The Netherlands
Mobile: +31-6-55798196
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.