The invention discloses a dynamic acquisition method of
file system access
record, belonging to the field of storage
system testing and performance analysis. The invention is characterized in that a kernel module can be loaded without the need of unloading the old
file system, thus not needing to interrupt the working application. A
file system operation interception module can dynamically intercept the underlayer file
system operation by a substitution of corresponding functions in the interception module. While executing the underlayer file
system operation, the functions output the operation type and parameters to an access
record output module which compresses the
file record and outputs a plurality of operation information at one time in a output
record way of register. The access record output module controls the output
file size to prevent the problems of difficult read and write and exceeding file system restriction. An access record
file management module collects additional information and packages and transfers the access record according to the assignment of users, thus being convenient for users to manage. The test shows that the collection of access record has little
impact on the application.