[sheepdog] Unreliable error code handling in sheep/plainstore.c
Xu Yifeng
skypexu at gmail.com
Thu Mar 5 03:31:42 CET 2015
On 2015年03月04日 23:06, Roy Yang wrote:
> Thanks Hitoshi,
>
> It is a GNU C extension, and implicitly add strerror (errno) .
>
> Since errno is used for system errors, should we modify it or
> we can solve the issue by just adjusting the order of sd_err and
> err_to_stderr?
> Just some thoughts,
>
> Roy
Reorder seems can not fix all the cases, reading function
utils.c:preallocate(), find that
it calls sd_err(), the preallocate() is used by
plain_store.c:default_create_and_write(),
and the possibly mucked errno is picked up and passed to err_to_sderr().
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20150305/1c7929a9/attachment-0004.html>
More information about the sheepdog
mailing list