Re: [PATCH 2/2] btrfs-progs: scan: pass blkid_get_cache error code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.jain@xxxxxxxxxx>
> ---
> 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?



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux