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

Hash cache: Improved work with extended file attributes #309

Merged

Conversation

jrohel
Copy link
Contributor

@jrohel jrohel commented Apr 25, 2024

PR modifies the code so that if a function detects that user extended file attributes are not supported, it stops using them.

Note:
In that case, it does not call flistxattr. Calling flistxattr causes problems, so not calling it should solve those issues:

The flistxattr system call problem is also addressed in Linux kernel >=6.2:

However, this patch is still useful and additionally solves the problem when using an older kernel.

#define XATTR_CHKSUM_MTIME XATTR_CHKSUM_PREFIX "mtime"

Before that, the code used:
`timestamp_key = g_strconcat(XATTR_CHKSUM_PREFIX, "mtime", NULL);`
@jan-kolarik jan-kolarik self-assigned this Apr 29, 2024
Copy link
Member

@m-blaha m-blaha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jan-kolarik jan-kolarik merged commit ba5365f into rpm-software-management:master Apr 29, 2024
5 of 6 checks passed
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

Successfully merging this pull request may close these issues.

3 participants