Implemented simple memory manager to keep total paranoid buffers below ~512MB
TODO: test if it actually works
TODO: make the 512MB a user setting
Made memory allocation actually work and added it to settings (kind of):
To use:
rmlint -p -p -p1000000000 ...
this will set to paranoid with max mem 1,000,000,000 bytes
TODO: fix the settings part
Implemented memory limit as a separate option [-u|--paranoid-ram]
eg rmlint -ppp -u 2gb ...
Fixed some un-mutex-protected accesses to device->file_queue
trying to stop a stalled device from hogging the system by adding a small usleep()
Added error trap during preadv
Merge branch 'rm_digest_paranoid' of https://github.com/SeeSpotRun/rmlint into testing
Small cleanup and remark of shredder.c
Fix possible overflow and union RmDigest further