Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping between XRootDStatus code to Posix errno #1503

Closed
mpatrascoiu opened this issue Sep 3, 2021 · 3 comments
Closed

Mapping between XRootDStatus code to Posix errno #1503

mpatrascoiu opened this issue Sep 3, 2021 · 3 comments
Assignees

Comments

@mpatrascoiu
Copy link
Contributor

Hello,

This is a request for XRootd to provide a mapping from XRootDStatus to errno.

Currently, there is no easy way to convert the XRootDStatus.code & XRootDStatus.errNo into errno. I understand XRootd codes can't always (fully) be mapped onto errnos. However, certain clients (such as Gfal2) have to work with this.

I'm using within Gfal2 the mapping from here: XrdPosixMap.
Would it make sense to have this header public?

Cheers,
Mihai

@abh3
Copy link
Member

abh3 commented Sep 7, 2021

This is hfully documented here, has been for a long time....

https://xrootd.slac.stanford.edu/doc/dev54/XRdv500.htm#_Toc78833361

@abh3 abh3 closed this as completed Sep 7, 2021
@simonmichal simonmichal reopened this Sep 7, 2021
@simonmichal simonmichal self-assigned this Sep 7, 2021
@simonmichal
Copy link
Contributor

@abh3 : I think what @mpatrascoiu means is mapping of client error codes to errno not the protocol error codes. The XrdPosixMap::Result does exactly that so it is only the question of adding this header either to xrootd-devel or xrootd-private-devel.

@simonmichal
Copy link
Contributor

It has been done in: 680b3a2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants