Hello, I am a student at the University of Texas at Austin's CS department and I am working on a new, record-and-replay, file system agnostic crash consistency test harness called CrashMonkey [1][2]. As part of this project, I need to run various file system checkers and return one of several different enums that represents the results of the file system checker run. The basic result enums mirror those in the man page for fsck(8), and include values for "no errors found", "errors corrected", "errors left uncorrected", and a catch-all "other error".
The man page for fsck.f2fs shows that it only returns either 0 or -1 for "success" or "failure". Is there any way I could parse some of the output of fsck.f2fs (either stdout or stderr) to determine the outcome of fsck.f2fs so that it can be categorized into the enums given above? If so, where should I look for the relevant strings to parse for? [1] https://github.com/utsaslab/crashmonkey [2] https://www.usenix.org/conference/hotstorage17/program/presentation/martinez ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel