]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-namei-ihandle-leak-20031114
authorDerrick Brashear <shadow@dementia.org>
Sat, 10 Jan 2004 17:30:30 +0000 (17:30 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 10 Jan 2004 17:30:30 +0000 (17:30 +0000)
FIXES 2518

flush all dir buffers we have cached when rewriting a volume from a restore

avoids holding an ihandle which has an open fdhandle for an unlinked file

(cherry picked from commit 79b67c7461097ab5ca1dac9b9c1f069dfb4d290d)

src/volser/volprocs.c

index 92f1c97e135780811a742f45e6aa1058f280e9eb..a64e8e7e60358d642570addf43228fdfbe71d14c 100644 (file)
@@ -1317,6 +1317,9 @@ struct restoreCookie *cookie;
     }
     strcpy(tt->lastProcName,"Restore");
     tt->rxCallPtr = acid;
+
+    DFlushVolume(V_parentId(tt->volume)); /* Ensure dir buffers get dropped */
+
     code = RestoreVolume(acid, tt->volume, (aflags & 1),cookie);   /* last is incrementalp */
     FSYNC_askfs(tt->volid, (char *) 0, FSYNC_RESTOREVOLUME, 0l);/*break call backs on the
                                                     restored volume */