The invention discloses a virtual generation method,
system and device for
file system test data and a medium, and relates to the technical field of virtual generation, and the method comprises the following steps: generating a memory
file system through a
user space memory
file system FUSE; reading
directory information in the memory file
system, and generating a filename
list and a
directory list through a periodic specified
directory number generation rule and a filename rule; and opening any file in the current directory
list, judging whether the file exists or not through the file name list, successfully opening the file when the current file exists, reading the opened file, and generating
test data with a specified length based on the
content generation factor of the file, the read data offset and the requested
byte number. The memory file
system is a read-only file system, reading is carried out only when the current file exists, the
virtual test data is generated in real time when the current file is read, the
virtual test data is not used for a resident memory and is not stored in a disk, and dependence on
disk storage is avoided.