summaryrefslogtreecommitdiff
path: root/content/fs_backing_store.c
Commit message (Collapse)AuthorAgeFilesLines
* Backing store: clean up resources properly.John-Mark Bell2018-01-201-0/+5
| | | | Patch from Felix S. Fixes #2579.
* Fixup everything the semantic patch missedVincent Sanders2017-09-071-6/+6
|
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-061-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 storeVincent Sanders2017-03-051-2/+2
|
* make backing store use inttypes format specifiersVincent Sanders2017-01-211-14/+15
|
* create netsurf inttypes header to have portable integer formatting macrosVincent Sanders2017-01-211-1/+1
|
* fix comedy spelling in fs backing store codeVincent Sanders2016-11-201-40/+40
|
* move misc header into public APIVincent Sanders2016-05-301-1/+1
|
* complete the rename of the gui browser tableVincent Sanders2016-04-161-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 callsitesVincent Sanders2015-05-281-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 varadicVincent Sanders2015-05-281-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 Sanders2015-05-041-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 Sanders2015-04-301-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 errorsVincent Sanders2015-04-031-1/+1
|
* Use nsutils unistd operations for pread and pwrite to get consistant interfaceVincent Sanders2015-04-021-2/+3
|
* Revert "Fix RISC OS not having a pread/pwrite implementation."Vincent Sanders2015-04-021-2/+0
| | | | | | | This reverts commit 82c7a7a4baf4a7a15381ee720799dc41c3d54909. Conflicts: content/fs_backing_store.c
* extend backing store logging to show errno values ofter operationsVincent Sanders2015-04-011-22/+31
|
* Fix RISC OS not having a pread/pwrite implementation.Vincent Sanders2015-03-311-2/+4
|
* ensure entry invalidation copes with entries in blocksVincent Sanders2015-03-311-13/+47
|
* Improve file naming inside cacheVincent Sanders2015-03-311-87/+84
|
* allocate small block using block use bitmaps to find free entries.Vincent Sanders2015-03-311-12/+69
|
* implement block read and write operations.Vincent Sanders2015-03-311-62/+141
|
* Block file usage bitmaps (de)serialisingVincent Sanders2015-03-311-5/+179
|
* define block store parametersVincent Sanders2015-03-311-0/+20
|
* Change backing store fetch operation to always perform the allocationsVincent Sanders2015-03-311-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 Sanders2015-03-311-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 Sanders2015-03-311-36/+45
|
* Fix to support non-POSIX behaviour when renaming cache entries on disc.Michael Drake2015-02-031-0/+2
|
* fix resource leak on error (Coverity 1256245)Vincent Sanders2014-11-301-0/+1
|
* correctly calculate writeout bandwidth and properly impose limitsVincent Sanders2014-11-291-0/+3
|
* Improve llcache writeout stratagyVincent Sanders2014-11-281-0/+2
|
* update the backing store to allow for invalidating entries which have an ↵Vincent Sanders2014-11-271-48/+64
| | | | allocation
* correctly release source data from llcacheVincent Sanders2014-11-231-3/+3
|
* Improve doxygen comments and add todo for cache and backing storeVincent Sanders2014-11-231-0/+6
|
* remove constness from backing stores store methodVincent Sanders2014-11-231-8/+8
|
* annotate element struct with packing attributes to reduce entry sizeVincent Sanders2014-11-231-7/+9
|
* Do not use anonymous union as it is not portableVincent Sanders2014-11-231-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 allocationsVincent Sanders2014-11-221-92/+221
|
* update entry points to backing store ready for allowing differing object ↵Vincent Sanders2014-11-201-0/+29
| | | | lifetimes
* Limit creation of store path directories.Vincent Sanders2014-11-191-9/+10
| | | | | Only create all elements of a path in the store when it is being opened for creation instead of causing reads to create directories.
* Improve backing store control data serialisationVincent Sanders2014-11-191-60/+90
| | | | | | | By scheduling the control data to be maintained (entries index written and headers updated) once activity occurs to update these control structures rather than a single serialisation at browser exit the data is more likely to be up to date and not lost on a crash.
* make backing store use rename to atomicly replace entries fileVincent Sanders2014-11-191-13/+38
|
* Doxygen fixesVincent Sanders2014-11-091-0/+1
|
* Doxygen cleanupsVincent Sanders2014-11-091-8/+10
|
* Update the core to use the split operations table headersVincent Sanders2014-10-161-1/+0
| | | | Second in the series to decouple the core API usage from the frontends.
* version 1.1 of the backing store disc layout using base32 encodedVincent Sanders2014-07-041-61/+64
| | | | filenames to allow for case insensitive filenames.
* extend file table with mkdir all and make fs backing store use it.Vincent Sanders2014-06-051-2/+6
| | | | enable fs backing store for RISC OS.
* Avoid signed vs unsigned comparason warning.Michael Drake2014-06-041-1/+1
|
* turn off debugging and add some comments and todo from dsilversVincent Sanders2014-06-031-8/+9
|
* write a cache tag file as an aid to backup softwareVincent Sanders2014-05-301-0/+39
|