hpc / mpifileutils

File utilities designed for scalability and performance.
https://hpc.github.io/mpifileutils
BSD 3-Clause "New" or "Revised" License
170 stars 68 forks source link

dfilemaker: Specify desired tree with options -d, -n, -s, -f #604

Closed ofaaland closed 4 days ago

ofaaland commented 5 days ago

Author: JoAnne Levatin levatin1@llnl.gov

dfilemaker: Specify desired tree with options -d, -n, -s, -f

Support complex tree with control over data, depth of tree,
number of files,  and more.

* Use getopt_long to support both short and long options
* Added option "-d" for directory tree depth
* Added option "-f" for fill type, specifying data for files should
  contain all random values, all 0's, all 0xAAAAAAAA, or 0xFFFFFFFF.
* Added option "-n" for number of files.
* Added option "-r" for ratio of files to directories (not implemented)
* Added option "-s" for file size
* Added option "-w" for directory tree width (not implemented)
* Modified "-s" option to use mfu abtoull to parse terms with KB, MB, GB.
* specify ranges for "-d", "-n", "-s", and "-w"
  (ie create files 1K-1M in size)

Author: Olaf Faaland faaland1@llnl.gov

Address review comments for PR #269 made by Adam

dfilemaker: address review comments for PR #269

* Remove whitespace at end of line
* Replace printf/fflush with MFU_LOG for consistency with other tools
* Switch file sizes ot uint64_t
  per Adam Moody this is what other tools use for file size
* brace style change
  change braces and indenting for if/while/for blocks to match rest of code
* remove JoAnne dfilemaker makefile
  JoAnne added a makefile for testing, but CMake will generate one for us

Replaces PR #269

ofaaland commented 5 days ago

Rebased on main, which advanced when I merged #605 unrelated to dfilemaker