salvager: report actual uniqs for a too low error
authorDerrick Brashear <shadow@your-file-system.com>
Wed, 17 Apr 2013 17:42:49 +0000 (13:42 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Mon, 3 Jun 2013 04:26:17 +0000 (21:26 -0700)
when salvager fixes a "uniquifier too low" error, report
what it is fixing and what it was looking for.

Change-Id: I021bd7f69225ff02f4981aec1f6e64a4b1f3fc00
Reviewed-on: http://gerrit.openafs.org/9795
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>

src/vol/vol-salvage.c

index 0ba9896..15b4789 100644 (file)
@@ -4159,7 +4159,7 @@ SalvageVolume(struct SalvInfo *salvinfo, struct InodeSummary *rwIsp, IHandle_t *
     /* Make sure the uniquifer is big enough: maxunique is the real maxUniquifier */
     if (volHeader.uniquifier < (maxunique + 1)) {
        if (!Showmode)
-           Log("Volume uniquifier is too low; fixed\n");
+           Log("Volume uniquifier %u is too low (max uniq %u); fixed\n", volHeader.uniquifier, maxunique);
        /* Plus 2,000 in case there are workstations out there with
         * cached vnodes that have since been deleted
         */