-
Notifications
You must be signed in to change notification settings - Fork 7
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
First XML DB build does not record hashing failures #9
Comments
Can you clarify what do you mean under "known bad files" and "corrupted files"? Files are physically corrupted? If it is the case, what is the desired behavior when PSFCIV finds such file? |
By known bad files, I'm referring to files that have been physically corrupted. For my use case of identifying corrupted data to be restored from backup or otherwise salvaged, FCIV was useful because its Here's a sanitised example of what that output may look like:
For my use case, every result with Error code 17 returning "Data error (cyclic redundancy check)" was useful. I think the request in its simplest form is that PsFCIV during or upon completing processing, should have an error output to a file (similar to I'd like to add that since I first opened this issue, I've learned how to process PsFCIV's XML output using XSL transformations into a file listing only the |
I am looking for an alternative to FCIV which is more robust and capable of recording errors to an output file (akin go the
fciv.err
file produced by FCIV), for the purposes of identifying corrupted files which are not yet part of a hashed integrity database.FCIV was useful in this respect in that when it encounters a file that produces a Cyclic Redundancy Check error, that a record of this gets added to the
fciv.err
file output. However, it was limited in that it would fail and halt if a file name had unexpected characters or a directory path was too long.When running PsFCIV on a directory for the first time with known bad files, the generated XML file will add a
<FILE_ENTRY>
element detailing the<name>
,<Size>
, and<Timestamp>
, and hashes such as<MD5>
if successful.For corrupted files, it instead produces these errors within the PowerShell window which fail to identify which file produced the error:
The result is that a
<FILE_ENTRY>
will be added to the XML DB as a new entry without any hashes.This is difficult to parse for identifying bad files.
The tool in its current state is suitable for identifying changes in data compared to a previously built database, but not as well suited to discovering corrupted files.
Would it be possible to modify the functionality so that when it encounters a hashing failure, that it records an explicit failure to the XML DB instead of omitting the hash object? Or alternatively, writing its own fciv.err file.
The text was updated successfully, but these errors were encountered: