rfreezefs.c (partial_cleanup): Don't ignore the argument.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 22 Dec 2014 20:32:58 +0000 (20:32 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 2 Feb 2015 22:07:55 +0000 (22:07 +0000)
Previously, the function would always attempt to thaw all of the
filesystems, even if they hadn't all been frozen yet.  There's only a
problem if something actually goes wrong during freezing some
filesystem, and this probably isn't too disastrous, assuming that the
filesystems in question weren't already frozen (and are now unexpectedly
thawed), but it's not desirable.

rfreezefs.c

index 9f915ae..7d05b98 100644 (file)
@@ -252,7 +252,7 @@ static void partial_cleanup(size_t n)
   int i;
   int bad = 0;
 
-  for (i = 0; i < nfs; i++) {
+  for (i = 0; i < n; i++) {
     if (fs[i] == -1)
       emerg("not really thawing ", fsname[i], EOM);
     else if (fs[i] != -2) {