Re: Caught the first erroneous translated errorcode

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

 



On 19-6-2017 19:29, Adam C. Emerson wrote:
> On 17/06/2017, John Spray wrote:
>> Somewhat related perhaps: people running cephfs on ARM recently had
>> this problem, for that case the solution was simply to define in Ceph
>> some constants that mirror the linux ones, see commit 88d2da5e9.
> 
> We may wish to consider using std::error_code for Ceph's internal
> error stuff rather than trying to shoehorn everything into the POSIX +
> Whatever Linux Defines error codes. That way we could have a lot more
> specificity and preserve the source of the error while still defining
> an equivalence (where appropriate) to POSIX-derived error conditions.
> 

Jesse also suggested using `std:error_code`, and although that would be
a "wire" neutral system. This would still require to identify the
locations where conversion needs to be done.

And as such I'm going to first focus on fixing my current problem. Once
that is done it is clear where to do it. Only then rework the how.
So this is going on the long list with nice to have.

--WjW

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux