On 11/19/2013 05:28 AM, Behar Veliqi wrote:
Hi, when using the librados c library, the documentation of the different functions just tells that it returns a negative error code on failure, e.g. the rados_read function (http://ceph.com/docs/master/rados/api/librados/#rados_read). Is there anywhere any further documentation which error code is returned under which condition and how to know _why_ the operation has failed?
For some functions there is, but for most of them there are many common errors that aren't listed, and some errors depend on the OSD backend being used. The error codes are all negative POSIX errno values, so many of them should be self-explanatory (i.e. -ENOENT when an object doesn't exist, -EPERM when you don't have access to a pool, -EROFS if you try to write to a snapshot, etc.). It would be good to document these though. If you're looking into librados more, the C header has some more detail in @defgroup blocks that aren't parsed into the web docs: https://github.com/ceph/ceph/blob/master/src/include/rados/librados.h#L279 Josh _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com