Re: [PATCH] Support empty blob in fsck --lost-found
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Sep 11, 2011, 16:03 UTC
- Message-ID
- <CAGdFq_hqfqdFyLY=KdA_QW5kH8Kjhx8Y18mHEga_Pdv8yzB2wg@mail.gmail.com>
- In-Reply-To
- <A3964281-B24B-46C0-AE73-0CCB4C12556F@bjhargrave.com>
Heya,
On Sun, Sep 11, 2011 at 17:40, BJ Hargrave <bj@bjhargrave.com> 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