On Sat, Sep 26, 2015 at 5:54 AM, Shinobu Kinjo <[email protected]> wrote:
> I think it's more helpful to put returned value in:
>
> # ./src/krbd.cc
> 530 cerr << "rbd: sysfs write failed" << std::endl;
>
> like:
>
> 530 cerr << "rbd: sysfs write failed (" << r << ")" << std::endl;
>
> So that we exactly know what **write** complains about.
> Because **write** has some return values in case of error.
>
> What do you think?
It's already doing that:
rbd: sysfs write failed
rbd: unmap failed: (16) Device or resource busy
sysfs_write_rbd_remove() return value is propagated up and reported.
The code is written in such a way that return values are preserved and
never overwritten (hopefully!).
Thanks,
Ilya
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html