in src/analysis/print_analyzer.cpp [1546:1581]
void PrintAnalyzer::commit3(const RPCProcedure* proc,
const struct NFS3::COMMIT3args* args,
const struct NFS3::COMMIT3res* res)
{
if(!print_procedure(out, proc)) {
return;
}
if(args)
out << "\tCALL [ file: " << args->file
<< " offset: " << args->offset
<< " count: " << args->count
<< " ]\n";
if(res)
{
out << "\tREPLY [ status: " << res->status;
if(out_all())
{
if(res->status == NFS3::nfsstat3::NFS3_OK)
{
out << " file_wcc: "
<< res->COMMIT3res_u.resok.file_wcc
<< " verf: ";
print_hex(out,
res->COMMIT3res_u.resok.verf,
NFS3::NFS3_WRITEVERFSIZE);
}
else
{
out << " file_wcc: "
<< res->COMMIT3res_u.resfail.file_wcc;
}
}
out << " ]\n";
}
}