Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix error reporting from fetch_start | Vincent Sanders | 2015-06-24 | 4 | -47/+79 |
| | | | | | | | Any fetch start error was being reported as "out of memory" which was clearly insufficient. Foe example bad urls (reported was file:// with a missing /) were causing a warn_user with out of memory. This change now at least causes a "bad url" message. | ||||
* | Allow the resource scheme to provide data directly. | Vincent Sanders | 2015-06-17 | 1 | -48/+151 |
| | | | | | | This allows front ends to provide resources from compiled in data instead of requiring the resources to be available on disc and forcing a redirect. | ||||
* | fixup all the remaining logging macro callsites | Vincent Sanders | 2015-05-28 | 5 | -68/+69 |
| | | | | | 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 | 8 | -197/+182 |
| | | | | | | | | | | | | 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. | ||||
* | Fix format string type missmatches on 32-bit systems. | Michael Drake | 2015-05-12 | 1 | -3/+7 |
| | | | | Use C99 inttypes header for format string macros. | ||||
* | Avoid generating confusing warning. | Michael Drake | 2015-05-12 | 1 | -1/+1 |
| | | | | Now the disc cache will be disabled silently if its too slow. | ||||
* | Improve the logge dinformation about written cache data | Vincent Sanders | 2015-05-08 | 1 | -7/+7 |
| | |||||
* | 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 bandwidth minimum check is only performed when enough data has | Vincent Sanders | 2015-04-30 | 1 | -6/+15 |
| | | | | been written. | ||||
* | 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. | ||||
* | Add scaled content redraw interface. | Vincent Sanders | 2015-04-23 | 2 | -2/+92 |
| | | | | | | Add a new interface to the content to allow automaticaly scaled content redraws. This is intended to replace the thumbnail_redraw interface with something more generic. | ||||
* | Move bitmap operations into an operation table. | Vincent Sanders | 2015-04-13 | 2 | -10/+14 |
| | | | | | | | The generic bitmap handlers provided by each frontend are called back from the core and therefore should be in an operation table. This was one of the very few remaining interfaces stopping the core code from being split into a library. | ||||
* | 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 | 2 | -71/+95 |
| | | | | | | 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 |
| | |||||
* | Remove url from content thumbnailers API | Vincent Sanders | 2015-03-15 | 1 | -5/+7 |
| | | | | | | | | | | | | | | | | The content thumbnailers for each frontend were being provided the contents url. This was only ever used to call the urldb thumbnail setting API. This changes it so the single callsite that passed a valid url adds the bitmap to that url itself in desktop_history.c instead of forcing every frontend to require the urldb API. Additionally the old API could pass the url as NULL which was causing asserts where this was not an expected parameter value. Because of this this fixes bug #2286 which was also present in the monkey frontend as both called nsurl_access() on the url without the NULL check and caused an assertion. | ||||
* | Move win32 window operations into their own module | Vincent Sanders | 2015-03-12 | 1 | -1/+2 |
| | | | | | | This splits up a great deal of the win32 window code out from other gui code. It also remove large quantities of unused and junk variables and functions. | ||||
* | Remove include of nsurl from corestrings.h | Michael Drake | 2015-02-26 | 1 | -3/+5 |
| | |||||
* | Use forward declaration instead of #include for nsurl. | Michael Drake | 2015-02-26 | 1 | -7/+6 |
| | |||||
* | Fix to support non-POSIX behaviour when renaming cache entries on disc. | Michael Drake | 2015-02-03 | 1 | -0/+2 |
| | |||||
* | Improve metadata deserialisation to only update object on success | Vincent Sanders | 2015-01-28 | 1 | -22/+46 |
| | | | | | | | The low level cache deserialisation was leaving bad data in an low level cache object in the error case. This fixes it so the object state only gets modified on successful deserialisation of all the metadata. | ||||
* | Ensure no division by zero occours if no time has ever been spent writing ↵ | Vincent Sanders | 2015-01-03 | 1 | -2/+6 |
| | | | | llcache | ||||
* | add missing includes | Vincent Sanders | 2014-12-27 | 2 | -1/+3 |
| | |||||
* | improve comments in low level cache and remove completed todo | Vincent Sanders | 2014-12-04 | 1 | -4/+4 |
| | |||||
* | move the low bandwidth check to allow for an average over a much longer time | Vincent Sanders | 2014-12-03 | 1 | -21/+72 |
| | |||||
* | Use translated messgae for low bandwidth error | Vincent Sanders | 2014-12-02 | 1 | -1/+1 |
| | |||||
* | cope with backing store writeout making no progress | Vincent Sanders | 2014-12-01 | 1 | -44/+52 |
| | |||||
* | ensure the backing store write reports at least a minimal amount of time | Vincent Sanders | 2014-12-01 | 1 | -0/+7 |
| | |||||
* | fix resource leak on error (Coverity 1256245) | Vincent Sanders | 2014-11-30 | 1 | -0/+1 |
| | |||||
* | Improve writeout rescheduling if list of objects is completed quickly | Vincent Sanders | 2014-11-30 | 1 | -9/+11 |
| | |||||
* | correctly calculate writeout bandwidth and properly impose limits | Vincent Sanders | 2014-11-29 | 2 | -19/+66 |
| | |||||
* | Improve llcache writeout stratagy | Vincent Sanders | 2014-11-28 | 3 | -27/+59 |
| | |||||
* | update the backing store to allow for invalidating entries which have an ↵ | Vincent Sanders | 2014-11-27 | 2 | -49/+69 |
| | | | | allocation | ||||
* | stop using gettimeofday and use the monotonic time interface fron nsutils | Vincent Sanders | 2014-11-26 | 1 | -8/+10 |
| | |||||
* | caclulate the total amount of time spent writing an object out | Vincent Sanders | 2014-11-25 | 1 | -19/+34 |
| | | | | | | In order to calculate the writeout bandwidth we need to know how long it took to write the data to peristant storage in addition to how much was written. | ||||
* | correctly release source data from llcache | Vincent Sanders | 2014-11-23 | 2 | -4/+11 |
| | |||||
* | Improve doxygen comments and add todo for cache and backing store | Vincent Sanders | 2014-11-23 | 3 | -59/+149 |
| | |||||
* | remove constness from backing stores store method | Vincent Sanders | 2014-11-23 | 3 | -10/+10 |
| | |||||
* | annotate element struct with packing attributes to reduce entry size | Vincent Sanders | 2014-11-23 | 1 | -7/+9 |
| |