]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
metadump: sanitise write_buf/index return values
authorDave Chinner <dchinner@redhat.com>
Mon, 3 Feb 2014 22:35:26 +0000 (09:35 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 3 Feb 2014 22:35:26 +0000 (09:35 +1100)
commit878afc65795cc147079b6fbabba8b269a9290b64
tree4d7719f9173f6371e30a704287d27ee4aac09add
parentdd9093de944cd802427bd42953ad5ccc1d5fb875
metadump: sanitise write_buf/index return values

Write_buf/write_index use confusing boolean values for return,
meaning that it's hard to tell what the correct error return is
supposed to be.  Convert them to return zero on success or a
negative errno otherwise so that it's clear what the error case is.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
db/metadump.c