I'm trying to generate several thousand mutated files for filesystem fuzzing a few applications. Oddly enough when I get to generating file# 25510 I always get an IOError 13 Permission denied for some unknown reason.
Things to keep in mind.
- I'm using a Ramdisk image as generating multiple thousands of files on a SSD will kill them quickly.
- I'm using Windows 7 x64 in VMWare Workstation 11. started by giving it 4GBs of RAM, then upped it to 8GBs to ensure it didn't run out of RAM while running the program.
- Using Python 2.7
The code to generate the files is extremely simple:
(the string written has been changed to "Hello" for simplicity's sake and even this will fail on the 25510th file write)
for x in range(0, 200000):
with open("%s_test.txt" % x, "w") as f:
f.write("Hello")
f.close()
I have tried to increase the amount of RAM for the VM, but when running resource monitor, i didn't even get close to making out on 4GBs. The the filesize of the RamDisk image is nowhere near close to being full. Still have over 900MBs of space to write files that do not exceed 2Kbs. I can't seem to figure out why it gets to 25510 and then throws this error.
Thanks in advance!