On 15/5/19 10:29 PM, David Sterba wrote:
On Fri, Mar 29, 2019 at 01:49:54PM +0800, Anand Jain wrote:
blkid_get_cache() returns error code which is -errno. So we can use them
directly.

Signed-off-by: Anand Jain <anand.j...@oracle.com>
---
Ref:
blkid_get_cache() code:
https://github.com/karelzak/util-linux/blob/master/libblkid/src/cache.c#L93
https://github.com/karelzak/util-linux/blob/master/libblkid/src/blkidP.h#L307

This is internal header of blkid and incidentally the error numbers
match errnos, but I don't think we should rely on that. Does blkid have
a function that translates the code to string, similar to strerror?


Uh. No there isn't BLKID_ERR.. to string conversion.


Reply via email to