byte lock request and file header

hi,

i am writing an encryption file system filter and using a file header to
store information.

now i am in a fix on whether to offset the byte lock requests, or on how to
decide when to offset…

if i don’t offset the lock request, the cached read/write requests will be
as normal, and i just offset the paging read/write requests.

however, this will be a problem if a noncached read/write request comes
along…

since i have to offset the noncached read/write request, the byte locks will
be all wrong…

so if i offset the byte locks… the reverse will happen.

what should i do?

Ampsi