-
Notifications
You must be signed in to change notification settings - Fork 60
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
Support returning error codes from attribute reads #56
Comments
This is indeed not currently possible. I'm trying to think of a sane way how to represent this on a plain file system; you could create the attributes as Unix sockets or pipes for more control, but neither of them can be coerced to return Do you need this right at the first |
@gicmo : ping? |
Sorry for the delay: |
Or perhaps one could use libfuse? |
I would like to simulate the "safe mode" for thunderbolt devices in the self test of fwupd's thunderbolt plugin. For this a read of the sysfs attribute
nvm_version
needs to returnENODATA
onread
. I could not see how that is currently doable. If it isn't, it would be a cool feature to add.The text was updated successfully, but these errors were encountered: