]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
storeSwapOutFileOpened: Unable to open swapfile:
authorwessels <>
Sat, 30 Jan 1999 00:36:37 +0000 (00:36 +0000)
committerwessels <>
Sat, 30 Jan 1999 00:36:37 +0000 (00:36 +0000)
   /disk2/cache2/00/71/0000716C (13) Permission denied
         * yuck.  don't clear the filemap bit for some errors so that
         * we don't try re-using it over and over

src/store_swapout.cc

index 9484083263c07e55ded1ed699ead3221a6d21ba6..f24605a60293dc1e8eaa14ade9de86931620140a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_swapout.cc,v 1.45 1999/01/21 21:10:39 wessels Exp $
+ * $Id: store_swapout.cc,v 1.46 1999/01/29 17:36:37 wessels Exp $
  *
  * DEBUG: section 20    Storage Manager Swapout Functions
  * AUTHOR: Duane Wessels
@@ -301,7 +301,12 @@ storeSwapOutFileOpened(void *data, int fd, int errcode)
     if (fd < 0) {
        debug(20, 0) ("storeSwapOutFileOpened: Unable to open swapfile: %s\n\t%s\n",
            ctrlp->swapfilename, xstrerror());
-       storeDirMapBitReset(e->swap_file_number);
+       /*
+        * yuck.  don't clear the filemap bit for some errors so that
+        * we don't try re-using it over and over
+        */
+       if (errno != EPERM)
+           storeDirMapBitReset(e->swap_file_number);
        e->swap_file_number = -1;
        e->swap_status = ctrlp->oldswapstatus;
        xfree(ctrlp->swapfilename);