log-structured file systems use a garbage collector to free up space. If
the device is nearly full a call to open may fail. This patch adds a
loop that tries to open the file three times and sleeps every time for
10 seconds to give the garbage collector time to free up space.