From 358a1067f2f86a42497aab0f8349e6cf06ffabf0 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Sat, 10 Jan 2004 17:30:30 +0000 Subject: [PATCH] STABLE12-namei-ihandle-leak-20031114 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/volser/volprocs.c b/src/volser/volprocs.c index 92f1c97e1..a64e8e7e6 100644 --- a/src/volser/volprocs.c +++ b/src/volser/volprocs.c @@ -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 */ -- 2.39.5