bug 3100: if the fs fills up, we'll get a partial write failure to the bayes journal.  we used to loop and keep attempting to write out the data, but this would crush systems...  we'll now only try to write out the journal 5 times before failing out, we'll also truncate the journal upon write failure so we don't do a partial journal commit.
bug 3100: if the fs fills up, we'll get a partial write failure to the bayes journal.  we used to loop and keep attempting to write out the data, but this would crush systems...  we'll now only try to write out the journal 5 times before failing out, we'll also truncate the journal upon write failure so we don't do a partial journal commit.

git-svn-id: d99324e817494df82bb0080d8e7ab74680731a10@6935 13f79535-47bb-0310-9956-ffa450edef68

apache/spamassassin,apache/spamassassin,apache/spamassassin,apache/spamassassin,apache/spamassassin