From: wessels <> Date: Sat, 30 Jan 1999 00:36:37 +0000 (+0000) Subject: storeSwapOutFileOpened: Unable to open swapfile: X-Git-Tag: SQUID_3_0_PRE1~2335 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b2f9d4cd3c40b26aff6f6bdd64ff233c2a082973;p=thirdparty%2Fsquid.git storeSwapOutFileOpened: Unable to open swapfile: /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 --- diff --git a/src/store_swapout.cc b/src/store_swapout.cc index 9484083263..f24605a602 100644 --- a/src/store_swapout.cc +++ b/src/store_swapout.cc @@ -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);