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

document/fuse: Provide the document host path as xattr #1372

Merged

Conversation

swick
Copy link
Contributor

@swick swick commented Jun 7, 2024

Complementing #1364, this provides the host path as an xattr via the document portal fuse fs.

@swick
Copy link
Contributor Author

swick commented Jun 7, 2024

/cc @GeorgesStavracas @alexlarsson

@swick swick force-pushed the wip/document-portal-xattr-host-path branch from 2ed37b1 to 702c281 Compare June 10, 2024 11:12
@swick
Copy link
Contributor Author

swick commented Jun 10, 2024

This is missing documentation. Not sure where to put it.

@GeorgesStavracas GeorgesStavracas added this to the 1.20 milestone Jun 20, 2024
@GeorgesStavracas GeorgesStavracas added enhancement portal: documents Issues with the documents portal labels Jun 20, 2024
@swick swick force-pushed the wip/document-portal-xattr-host-path branch from 702c281 to aab55ac Compare June 20, 2024 18:18
@swick
Copy link
Contributor Author

swick commented Jun 20, 2024

Added a sentence to the document portal's GetHostPaths about the xattr.

Setting res to ENODATA will call fuse_reply_buf with some number which
indicates the buffer has been filled with that many bytes. That's a lie.
The intend here is to return an error, so properly do so.

Fixes: 1a8ab1f ("document-portal: Expose directory documents as a subdirectory")
@swick swick force-pushed the wip/document-portal-xattr-host-path branch from aab55ac to a138ef7 Compare June 20, 2024 19:24
@swick swick force-pushed the wip/document-portal-xattr-host-path branch from a138ef7 to 6b52832 Compare June 20, 2024 19:27
@swick
Copy link
Contributor Author

swick commented Jun 20, 2024

Added a commit at the beginning which fixes an existing bug and fixed some error reporting in the host path xattr found by @tristan957.

@GeorgesStavracas GeorgesStavracas added this pull request to the merge queue Jun 20, 2024
Merged via the queue into flatpak:main with commit 5411690 Jun 20, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement portal: documents Issues with the documents portal
Projects
Status: Triaged
Development

Successfully merging this pull request may close these issues.

None yet

3 participants