locking

is there a way to read from a locked file?

when a length of -1 is specified for locking, does it mean that the whole
file is locked? even if the size changes?

i tried to read a file that was locked from offset 0 length -1 using the
same file object but failed…

Ho Mun Chuen
@@ “Not everything that counts can be counted;
<” )~ and not everything that can be counted counts"
//\ … Albert Einstein


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You can memory map the file. Byte range locks are not enforced for memory
mapped files.

Byte range locks are identified by process as well as file object, so you’d
have to do it in the same process context for it to work correctly (and I’m
assuming you are not using a lock “key” which is optional.)

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: Ho Mun Chuen [mailto:xxxxx@pmail.ntu.edu.sg]
Sent: Monday, March 12, 2001 9:53 PM
To: File Systems Developers
Subject: [ntfsd] locking

is there a way to read from a locked file?

when a length of -1 is specified for locking, does it mean that the whole
file is locked? even if the size changes?

i tried to read a file that was locked from offset 0 length -1 using the
same file object but failed…

Ho Mun Chuen
@@ “Not everything that counts can be counted;
<” )~ and not everything that can be counted counts"
//\ … Albert Einstein


You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com