Skip to content
Snippets Groups Projects

Add option to write each VR output to a separate directory

Merged John Helly requested to merge stf_output_dirs into master
All threads resolved!

When running Velociraptor on the fly with many MPI ranks it generates a very large number of output files and makes an unreasonably large directory. This merge request adds a parameter which makes the code create a new directory for each output. If StructureFinding:subdir_per_output is specified then VR output files will have names like

subdirperoutputXXXX/stf_{subdir_per_output}_XXXX/stf\_
{basename}_XXXX.*.

If we prepend to the output path like this then we can't include a directory in Snapshots:basename (this already didn't work in some cases because the code prepends 'stf_' to VR filenames). I've added a parameter Snapshots:subdir which can be used to put all snapshot and velociraptor output in the specified directory.

If neither parameter is specified then all files are written in the same locations as before.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • All looks mainly OK to me, except we don't have the descriptions added to the parameter_example.yml file. I'm tempted to have non-NULL defaults for at least subdir, but wouldn't object to the same for the VR output, if that makes sense.

  • Agree with both of these. Non-NULL directory names are more issue-proof I'd think.

    Shall I do the changes?

  • Author Developer

    Sounds good to me. The null defaults were just to ensure it generates the same paths as before if you don't use the new parameters, but that does dump a lot of files in the current directory.

  • added 1 commit

    • 1a29391b - Removed debugging printf() and added new parameters to the parameter example file.

    Compare with previous version

  • Matthieu Schaller resolved all discussions

    resolved all discussions

  • mentioned in commit 8dafa3fb

  • Please register or sign in to reply
    Loading