-
Notifications
You must be signed in to change notification settings - Fork 261
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
Check if HDF5 "file" is a DAOS object #2021
base: main
Are you sure you want to change the base?
Conversation
We might refrain from using getfattr if we modify H5Fis_accessible to return the VOL access type instead. Investigating. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to directly call getxattr(2)
from sys/xattr.h
here instead of calling a command which has to be in the path (sure, it is very likely the case) and could potentially do something else than returning file attributes? In the end, getfattr
does same call to retrieve the attributes.... at least on a CentOS 7 installation.
I do not think this code is in the proper location. I think it should be part of the later |
I think it has to be before phase 7 because that looks like the first place you start to read the magic number. Where do you suggest? |
Yes, that would be better. |
FYI, I am working on this again. |
If there is some way to modify this to avoid using popen, it would be appreciated. |
Let me see what I can do, the eventual plan is to have H5Fis_accessible return if it is a DAOS container. |
At the EGU I learned of some large data producers wanting to use DAOS for some of their very large data sets. I think it would be great of netCDF handled DAOS better. I don't think this should hold up the long-awaited 4.9.0 release, but it would be great if this could be figured out for the 4.9.1 release... |
To date, we have no solution. |
@WardF can we get this merged? I'd love to test it, and I think it's an important feature. I note that it's scheduled for the 4.9.1 release, so if we can get it in I can test it in the next release candidate... |
Here is the response I received from Intel:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see numerous issues with this PR. Most importantly, the DAOS check
appears to be in the wrong place in the code. Should it not be in openmagic?
Oh well, we can fix it later.
@DennisHeimbigner it has not been merged, so now would be a good time to fix it too :) |
Well let me take a look. |
This is coming back to me. It makes me uneasy from a security point of view to use popen |
Also, there is not test case for this. Is there any open DAOS based server against we can test? |
There's a |
I think this only needs to be done now if dfuse is not being used, as a dfuse netcdf file should appear as a POSIX file. This addressed the case of unified name space being used, which seems less common now. |
True.
But still is a valid use case. Supporting this appears to be lightweight in terms of code. I would highly appreciate it to be available (checking extended file attributes directly, instead via an |
Is there any indicator which DAOS version this branch is developed against? |
At the time, it would have been DAOS 2.0 |
Attached is an revised version of dinfermodel.c for you to test. It isolates the DAOS code Please see it works for your tests. |
Your patch works and correctly detects the daos file with the daos-vol, which was tested on Google Cloud. I see other testing errors, but I don't think they relate to this issue. |
PR to skip the POXIS calls used in reading magic number. These POSIX calls can not be used for a DAOS object.
Intel DAOS team feedback is requested as we might be able to remove the HDF5 calls.
This solution assumes Unified Namespace and getfattr is available.