From: Sverre Rabbelier Date: Sun, 11 Sep 2011 16:03:21 GMT Subject: Re: [PATCH] Support empty blob in fsck --lost-found Message-ID: In-Reply-To: Heya, On Sun, Sep 11, 2011 at 17:40, BJ Hargrave wrote: > fsck --lost-found died when attempting to write out the empty blob. > Avoid calling fwrite when the blob size is zero since the call to > fwrite returns 0 objects written which fails the check and caused > fsck to die. Now we don't die at all if a 0-byte file couldn't be written. Shouldn't we check errno or something? -- Cheers, Sverre Rabbelier