-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Request] change format of dwalk text output #555
Comments
@adammoody suggested a possible printf() format string could be passed to dwalk (or dfind) to format text output something like + does for date command. That would be great! Currently, my main use-case requires both atime and mtime for each file's path given in the text output, ideally in %s (epoch seconds) format. File size in bytes would be great too. Thanks! |
Until we have the more general solution, which will likely be a while, it's probably easiest to hack the existing format to suit your needs. You'd want to modify the lines in mpifileutils/src/common/mfu_flist_io.c Lines 1643 to 1646 in 4791815
For example, the following patch:
changes
it prints as:
|
That worked great! I also took out the human readable size and commented out the lines to format the size and times. Speeds up the text file output time. Final size of text file is about the same. Best part, my post processing now has atime information AND is ~5x faster! Thank you! :) |
Great! Wow, it's surprising that the string formatting adds so much overhead, but that's also good to know about. Good idea to try that. |
would it be possible to change the format of the dwalk text output file? [related to request about adding access time]
for example, for my post-processing purposes it would be great if file modify and access time were reported as integer seconds (epoch time). Thanks!
The text was updated successfully, but these errors were encountered: