The present invention provides a method and system of accessing at least
one target file in a computer system with an operating system with file
locking implemented with byte-range locking. In an exemplary embodiment,
the method and system include obtaining a set of handles that corresponds
to a set of all files that are open in the computer system, determining
within the kernel of the operating system a set of file identifiers that
corresponds to the set of handles, identifying from the set of file
identifiers a file identifier that corresponds to the target file,
sending the identified file identifier to the kernel, initializing within
the kernel file caching for the identified file identifier, and
requesting within the kernel the cache manager of the operating system to
obtain by using the identified file identifier a region of the target
file from the file system driver of the operating system.