Fix false report of good magic/version numbers in volume
header file.
Change-Id: I26869b6e6ada331373d626e501f6520755d5c070
Reviewed-on: http://gerrit.openafs.org/4817
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
"%s: Write failed for inode %s; header left in damaged state\n",
progname, PrintInode(NULL, ih->ih_ino));
}
- } else {
- if (DumpInfo) {
- printf("Inode %s: Good magic %x and version %x\n",
- PrintInode(NULL, ih->ih_ino), magic, version);
- }
+ }
+ if (!bad && DumpInfo) {
+ printf("Inode %s: Good magic %x and version %x\n",
+ PrintInode(NULL, ih->ih_ino), magic, version);
}
return 0;
}