file-posix: Use error API properly
commitdb0754df88e3ca4797539c1edbde596d871b64b6
authorFam Zheng <famz@redhat.com>
Thu, 1 Nov 2018 06:29:09 +0000 (1 14:29 +0800)
committerKevin Wolf <kwolf@redhat.com>
Mon, 12 Nov 2018 16:46:57 +0000 (12 17:46 +0100)
treebf0e1caabb7dd1c2e7f2be3c2aaf81d272afc83a
parent5704c36d25ee84e7129722cb0db53df9faefe943
file-posix: Use error API properly

Use error_report for situations that affect user operation (i.e.  we're
actually returning error), and warn_report/warn_report_err when some
less critical error happened but the user operation can still carry on.

For raw_normalize_devicepath, add Error parameter to propagate to
its callers.

Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/file-posix.c