Giter Club home page Giter Club logo

Comments (9)

psyke83 avatar psyke83 commented on June 12, 2024 1

Tested preload-tmpfile on both x86_64 and aarch64, and it seems that the problem is resolved. Repeating the steps above, the files previously created with missing permissions are now created with the expected permissions. I tested the build against qbittorrent in docker for aarch64 and both qbittorrent docker and standalone qbittorrent for x86_64. Many thanks!

from mergerfs.

trapexit avatar trapexit commented on June 12, 2024

Probably something to do with a specific arm call. I don't have a Pi4. I'll have to see if any of my SBCs are ARM64 to check.

from mergerfs.

trapexit avatar trapexit commented on June 12, 2024

It'd help me a lot if you provide a strace of qbittorrent when this happens.

from mergerfs.

psyke83 avatar psyke83 commented on June 12, 2024

If you check my edit in Additional context, I was able to reproduce the issue on Arch x86_64, so I think we can eliminate ARM as a factor.

I didn't provide a strace initially, as I wasn't sure how to capture the strace at the right time for a docker-launched process, so here's a strace captured from a standalone launch of qbittorrent.

Steps to reproduce

$ killall qbittorrent
$ rm -rf .local/share/qBittorrent/ .config/qBittorrent
$ strace -fvTtt -s 256 -o /tmp/qbittorrent.strace.txt -E LD_PRELOAD=/usr/lib/mergerfs/preload.so qbittorrent
(Accept legal notice and close app)
$ find .local/share/qBittorrent/ .config/qBittorrent -perm 0
.local/share/qBittorrent/GeoDB/dbip-country-lite.mmdb
.config/qBittorrent/categories.json
.config/qBittorrent/rss/feeds.json
.config/qBittorrent/watched_folders.json

To reiterate, there is no mergerfs mount active on my system, and the .local and .config folders are on a standard ext4 volume.

strace log captured via above steps:
qbittorrent.strace.txt

from mergerfs.

trapexit avatar trapexit commented on June 12, 2024

To reiterate, there is no mergerfs mount active on my system,

Sure. This is to do with the preload.

Thank you for the trace. It's almost certainly due to qbittorrent using O_TMPFILE. I'll see what I can do about it.

from mergerfs.

trapexit avatar trapexit commented on June 12, 2024

What OS package are you using? I'll build one for you to test changes.

from mergerfs.

psyke83 avatar psyke83 commented on June 12, 2024

I'm using mergerfs built locally via the Arch AUR (on the aarch64 and on x86_64 alike). If it's easier for you, I can make a test build myself if you point me to the diff or test branch.

from mergerfs.

trapexit avatar trapexit commented on June 12, 2024

Branch preload-tmpfile

from mergerfs.

trapexit avatar trapexit commented on June 12, 2024

Addressed in v2.40.2

from mergerfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.