Check if HDF5 "file" is a DAOS object#2021
Check if HDF5 "file" is a DAOS object#2021WardF merged 34 commits intoUnidata:mainfrom brtnfld:DAOS_sync
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.
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. |
|
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. |
…iagnose the timeout.
|
Ok, this test is now passing but taking 25 minutes, which feels longer than it was. I'm looking at that now. The work @DennisHeimbigner did to include |
…h so it can be used when available. Added installation of a tool required for cygwin.
|
Ok. On systems without |
…ndard output was being spammed, resulting in a test that currently runs in around a minute to balloon out to almost 20.
|
Thanks! |
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.