Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fs_backing_store: Stop trying to render offsets in hex | Daniel Silverstone | 2020-05-23 | 1 | -4/+4 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | fs_backing_store: Do not use %jx because amigaos3 can't render it properly | Daniel Silverstone | 2020-05-23 | 1 | -14/+14 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | remove unused constants | Vincent Sanders | 2020-03-26 | 1 | -7/+4 |
| | |||||
* | fs_backing_store: Remove cache on failure to init | Daniel Silverstone | 2020-02-24 | 1 | -3/+17 |
| | | | | | | | | | | If we fail to init the control file for reasons other than it not being found, we blow away the cache in its entirety and then try again. We warn if the removal fails, but carry on regardless since right now the worst that'll happen is that we'll end up with more on disk than we know about in the cache. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | fs_backing_store: Fix some comparison types | Daniel Silverstone | 2020-02-24 | 1 | -2/+2 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | fs_backing_store: Use correct format specifier for 64bit int | Daniel Silverstone | 2020-02-24 | 1 | -1/+1 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | fs_backing_store: Fix up comments to be in-line with values | Daniel Silverstone | 2020-02-24 | 1 | -2/+2 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | fs_backing_store: 8K metadata blocks, 1K blocks, bump version | Daniel Silverstone | 2020-02-24 | 1 | -3/+3 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Cache backing store: Add missing calloc check. | Michael Drake | 2020-02-24 | 1 | -0/+5 |
| | | | | | | | Found by coverity: CID 1419831: Null pointer dereferences (NULL_RETURNS) >>> Dereferencing a pointer that might be "NULL" "url" when calling "read". | ||||
* | fs_backing_store: Clear entry memory flags on read | Daniel Silverstone | 2020-02-23 | 1 | -0/+5 |
| | | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | llcache: Rework fs_backing_store to use hashmap | Daniel Silverstone | 2020-02-23 | 1 | -348/+249 |
| | | | | | | | As a result, we no longer waste a bunch of RAM on the entries tables. This ought to be no slower, and more memory efficient. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org> | ||||
* | Disc cache: Squash armhf warnings. | Michael Drake | 2018-05-08 | 1 | -2/+2 |
| | |||||
* | Backing store: clean up resources properly. | John-Mark Bell | 2018-01-20 | 1 | -0/+5 |
| | | | | Patch from Felix S. Fixes #2579. | ||||
* | Fixup everything the semantic patch missed | Vincent Sanders | 2017-09-07 | 1 | -6/+6 |
| | |||||
* | Use coccinelle to change logging macro calls in c files | Vincent Sanders | 2017-09-06 | 1 | -95/+130 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done @@ expression E; @@ -LOG(E); +NSLOG(netsurf, INFO, E); @@ expression E, E1; @@ -LOG(E, E1); +NSLOG(netsurf, INFO, E, E1); @@ expression E, E1, E2; @@ -LOG(E, E1, E2); +NSLOG(netsurf, INFO, E, E1, E2); @@ expression E, E1, E2, E3; @@ -LOG(E, E1, E2, E3); +NSLOG(netsurf, INFO, E, E1, E2, E3); @@ expression E, E1, E2, E3, E4; @@ -LOG(E, E1, E2, E3, E4); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4); @@ expression E, E1, E2, E3, E4, E5; @@ -LOG(E, E1, E2, E3, E4, E5); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5); @@ expression E, E1, E2, E3, E4, E5, E6; @@ -LOG(E, E1, E2, E3, E4, E5, E6); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6); @@ expression E, E1, E2, E3, E4, E5, E6, E7; @@ -LOG(E, E1, E2, E3, E4, E5, E6, E7); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7); | ||||
* | attempt to remove unintended sign extension warning in fs backing store | Vincent Sanders | 2017-03-05 | 1 | -2/+2 |
| | |||||
* | make backing store use inttypes format specifiers | Vincent Sanders | 2017-01-21 | 1 | -14/+15 |
| | |||||
* | create netsurf inttypes header to have portable integer formatting macros | Vincent Sanders | 2017-01-21 | 1 | -1/+1 |
| | |||||
* | fix comedy spelling in fs backing store code | Vincent Sanders | 2016-11-20 | 1 | -40/+40 |
| | |||||
* | move misc header into public API | Vincent Sanders | 2016-05-30 | 1 | -1/+1 |
| | |||||
* | complete the rename of the gui browser table | Vincent Sanders | 2016-04-16 | 1 | -3/+3 |
| | | | | | | When the operations tables were created the browser table was renamed to miscellaneous except the actual rename patch was never applied, this fixes that situation. | ||||
* | fixup all the remaining logging macro callsites | Vincent Sanders | 2015-05-28 | 1 | -2/+2 |
| | | | | | The semantic patch tool appears to have missed some difficult to reason about callsites which have now been manually cleaned up | ||||
* | Change LOG() macro to be varadic | Vincent Sanders | 2015-05-28 | 1 | -79/+94 |
| | | | | | | | | | | | | This changes the LOG macro to be varadic removing the need for all callsites to have double bracketing and allows for future improvement on how we use the logging macros. The callsites were changed with coccinelle and the changes checked by hand. Compile tested for several frontends but not all. A formatting annotation has also been added which allows the compiler to check the parameters and types passed to the logging. | ||||
* | Move the setting of block file extents to background maintinance. | Vincent Sanders | 2015-05-04 | 1 | -16/+68 |
| | | | | | | On some OS the ftruncate operation can take some time so move it to occour in the background maintinance operations instead of when data blocks are initialy opened. This should improve browsing responsiveness. | ||||
* | Ensure small block cache files allocate their entire extent at open. | Vincent Sanders | 2015-04-30 | 1 | -10/+18 |
| | | | | | | | | | | It seems many filesystems are greatly more efficient if the block file is allocated its entire extent once rather than trying to continuously grown the file later. The size of the block files is known at their creation time so this change ensures they are grown to the full possible extent hence removing future inefficient writes. | ||||
* | Fix up some doxygen errors | Vincent Sanders | 2015-04-03 | 1 | -1/+1 |
| | |||||
* | Use nsutils unistd operations for pread and pwrite to get consistant interface | Vincent Sanders | 2015-04-02 | 1 | -2/+3 |
| | |||||
* | Revert "Fix RISC OS not having a pread/pwrite implementation." | Vincent Sanders | 2015-04-02 | 1 | -2/+0 |
| | | | | | | | This reverts commit 82c7a7a4baf4a7a15381ee720799dc41c3d54909. Conflicts: content/fs_backing_store.c | ||||
* | extend backing store logging to show errno values ofter operations | Vincent Sanders | 2015-04-01 | 1 | -22/+31 |
| | |||||
* | Fix RISC OS not having a pread/pwrite implementation. | Vincent Sanders | 2015-03-31 | 1 | -2/+4 |
| | |||||
* | ensure entry invalidation copes with entries in blocks | Vincent Sanders | 2015-03-31 | 1 | -13/+47 |
| | |||||
* | Improve file naming inside cache | Vincent Sanders | 2015-03-31 | 1 | -87/+84 |
| | |||||
* | allocate small block using block use bitmaps to find free entries. | Vincent Sanders | 2015-03-31 | 1 | -12/+69 |
| | |||||
* | implement block read and write operations. | Vincent Sanders | 2015-03-31 | 1 | -62/+141 |
| | |||||
* | Block file usage bitmaps (de)serialising | Vincent Sanders | 2015-03-31 | 1 | -5/+179 |
| | |||||
* | define block store parameters | Vincent Sanders | 2015-03-31 | 1 | -0/+20 |
| | |||||
* | Change backing store fetch operation to always perform the allocations | Vincent Sanders | 2015-03-31 | 1 | -65/+91 |
| | | | | | | The fetch API previously allowed for the caller to supply the storage, this was never used and was preventing the refactoring necessary for small black storage to be available. | ||||
* | Compute the element index once and use that as a parameter. | Vincent Sanders | 2015-03-31 | 1 | -58/+115 |
| | | | | | | | | | Change to computing the element index from the flags passed to store and fetch methods instead of passing the flags around and calculating everywhere. Additionally split out writing element of entry to file into distinct function to make code clearer. | ||||
* | Change element layout and cope with index collisions. | Vincent Sanders | 2015-03-31 | 1 | -36/+45 |
| | |||||
* | Fix to support non-POSIX behaviour when renaming cache entries on disc. | Michael Drake | 2015-02-03 | 1 | -0/+2 |
| | |||||
* | fix resource leak on error (Coverity 1256245) | Vincent Sanders | 2014-11-30 | 1 | -0/+1 |
| | |||||
* | correctly calculate writeout bandwidth and properly impose limits | Vincent Sanders | 2014-11-29 | 1 | -0/+3 |
| | |||||
* | Improve llcache writeout stratagy | Vincent Sanders | 2014-11-28 | 1 | -0/+2 |
| | |||||
* | update the backing store to allow for invalidating entries which have an ↵ | Vincent Sanders | 2014-11-27 | 1 | -48/+64 |
| | | | | allocation | ||||
* | correctly release source data from llcache | Vincent Sanders | 2014-11-23 | 1 | -3/+3 |
| | |||||
* | Improve doxygen comments and add todo for cache and backing store | Vincent Sanders | 2014-11-23 | 1 | -0/+6 |
| | |||||
* | remove constness from backing stores store method | Vincent Sanders | 2014-11-23 | 1 | -8/+8 |
| | |||||
* | annotate element struct with packing attributes to reduce entry size | Vincent Sanders | 2014-11-23 | 1 | -7/+9 |
| | |||||
* | Do not use anonymous union as it is not portable | Vincent Sanders | 2014-11-23 | 1 | -13/+37 |
| | | | | | unnamed unions are not portable to old compilers. When reloading data ensure the heap allocation status is discarded. | ||||
* | change the persistant data store to owning the allocations | Vincent Sanders | 2014-11-22 | 1 | -92/+221 |
| |