Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [SERVER] Use O_DIRECT for integrity checks | Simon Rettberg | 2018-07-04 | 1 | -26/+55 |
| | | | | | | | | | | | | | | The idea is that for full image checks, we don't want to pollute the fs cache with gigabytes of data that won't be needed again soon. This would certainly hurt performance on servers that dont have hundreds of GBs of RAM. For single block checks during replication this has the advantage that we don't check the block in memory before it hit the disk once, but actually flush the data to disk, then remove it from the page cache, and only then read it again, from disk. TODO: Might be worth making this a config option | ||||
* | [SERVER] Refactor uplink/cache handling, improve crc checking | Simon Rettberg | 2018-07-04 | 1 | -12/+76 |
| | | | | | | | | | | | | | The cacheFd is now moved to the uplink data structure and will only be handled by the uplink thread. The integrity checker now supports checking all blocks of an image. This will be triggered automatically whenever a check for a single block failed. Also, if a crc check on startup fails, the image won't be discarded anymore, but rather a full check will be initiated. Furthermore, when calling image_updateCacheMap() on an image that was previously complete, the cache map will now be re-initialized, and a new uplink connection created. | ||||
* | [SERVER] Make sure image has read fd before reading | Simon Rettberg | 2018-06-13 | 1 | -0/+6 |
| | |||||
* | [SERVER] Fix types or add explicit casts everywhere we might have type ↵ | Simon Rettberg | 2017-10-24 | 1 | -1/+1 |
| | | | | conversion problems | ||||
* | [SERVER] Don't try to load metadata files as images; fix clang-analyzer ↵ | Simon Rettberg | 2017-10-18 | 1 | -1/+1 |
| | | | | false positives | ||||
* | cleanup commits | Sebastian | 2016-02-11 | 1 | -10/+2 |
| | |||||
* | [SERVER] BREAKING: Get rid of pseudo case-insensitivityv2.1 | Simon Rettberg | 2016-02-01 | 1 | -1/+1 |
| | | | | | | | | | | This was a wrong decision made long time ago, and it's broken in certain scenarios (eg. two servers serving from same NFS mount). Also it's of limited use anyways since it only supportes ASCII and would ignore umlauts, so blöd and BLÖD would still be considered two different images. So if you relied on this "feature" in any way, be careful when updating. | ||||
* | [SERVER] Fix a lot of (mostly harmless) data races | Simon Rettberg | 2016-01-11 | 1 | -1/+3 |
| | |||||
* | [SERVER] Nullpad images virtually at runtime instead of padding the actual file | Simon Rettberg | 2015-12-10 | 1 | -6/+4 |
| | |||||
* | [SERVER] Update includes for moved log.h | Simon Rettberg | 2015-12-02 | 1 | -1/+1 |
| | |||||
* | [SERVER] Overhauled logging | Simon Rettberg | 2015-02-22 | 1 | -7/+7 |
| | | | | | | - Added message type parameter - Log to file and stdout, no more logging in memory - Added options to server.conf to filter which messages show up where | ||||
* | Get rid of unneccessary volatile | Simon Rettberg | 2015-02-22 | 1 | -3/+3 |
| | | | | Some minor debugging code, mostly commented out | ||||
* | [SERVER] Fix two minor bugs: Replication stall, integrity checker 100% CPU usage | Simon Rettberg | 2015-02-04 | 1 | -1/+0 |
| | |||||
* | [SERVER] Use shared file handle for reading | Simon Rettberg | 2015-01-30 | 1 | -10/+6 |
| | |||||
* | [SERVER] Crank up warning levels of gcc and fix them all (mostly sign ↵ | Simon Rettberg | 2015-01-14 | 1 | -1/+1 |
| | | | | | | | compare and some unused params) Also allow newline at end of alt-servers file without complaining about it not being a valid alt server definition. | ||||
* | [SERVER] Use stdbool.h for booleans; minor refactoring of variable and ↵ | Simon Rettberg | 2014-12-31 | 1 | -5/+5 |
| | | | | function names | ||||
* | [SERVER] Minor tweaks and improvements | Simon Rettberg | 2014-12-31 | 1 | -5/+7 |
| | |||||
* | Improve uplink handling, add code to debug thread creation/destruction, ↵ | Simon Rettberg | 2014-06-16 | 1 | -3/+3 |
| | | | | change stupid convention of freeDiskSpace returning 0 on error, which is ambiguous to the disk simply being full... | ||||
* | [SERVER] Formatting | Simon Rettberg | 2013-08-19 | 1 | -1/+3 |
| | |||||
* | [SERVER] Reduce priority (nice) of integrity check thread | Simon Rettberg | 2013-08-15 | 1 | -0/+7 |
| | |||||
* | [SERVER] Name uplink thread, remove most integrity check debug messages | Simon Rettberg | 2013-08-13 | 1 | -3/+0 |
| | |||||
* | Test your coke, dork! | Simon Rettberg | 2013-08-13 | 1 | -0/+1 |
| | |||||
* | [SERVER] Fix race condition in uplink request aggregation, other small ↵ | Simon Rettberg | 2013-08-13 | 1 | -1/+3 |
| | | | | improvements and debugging features | ||||
* | [SERVER] Improve proxy mode, implement integrity check in proxy mode | Simon Rettberg | 2013-08-12 | 1 | -0/+151 |