More often than not, we need a tool that helps create “given number of file” and “given size of files” in a “given directory” on a file storage or a filesystem. I need it in many POC with Spectrum Scale. So here is a quick basic script that helps you do that.
Get it from:https://github.com/patpune/bulk_file_creation
./nfile.sh Script to create N files of x size Usage: ./nfiles
Note: this utility is a script and is using /dev/urandom so the performance and time creation will be likewise. It should not be used performance benchmarking but more for capacity creation required for tests.
Ack: Thx to Tomer Perry for his review.
sandeep n chetan