• 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: Locking mapped files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Locking mapped files
      • From: Nathaniel Irons <email@hidden>
References: 
 >Re: Locking mapped files (From: "Erik M. Buck" <email@hidden>)

  • Prev by Date: Re: The Cocoa Text Session @ WWDC
  • Next by Date: Re: 2 Cocoa Method Questions
  • Previous by thread: Re: Locking mapped files
  • Next by thread: Re: Locking mapped files
  • Index(es):
    • Date
    • Thread