]> git.neil.brown.name Git - LaFS.git/commit
Add EmergencyClean mode
authorNeilBrown <neilb@suse.de>
Mon, 28 Jun 2010 10:27:44 +0000 (20:27 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 28 Jun 2010 22:22:55 +0000 (08:22 +1000)
commita27f30694715813e948ae716814c8e103dbe1362
treecbccb1c5f4df6983b8a2826fa4273c877095b18b
parentbfbb56906a02ff5bce4389de4ad2d27380dd48b0
Add EmergencyClean mode

In this mode we are nearly full.
Cleaning just goes for the segment with the most space
even if it is quite new.
Allocation failures return ENOSPC rather than EAGAIN
We clean even if it doesn't look like it will help much.

The heuristic for switching in an out is rather odd...

Signed-off-by: NeilBrown <neilb@suse.de>
block.c
clean.c
segments.c
state.h