When using fakeroot with mkfs.btrfs v6.10.1 with a rootdir, the files are owned by the user and not root. btrfs-progs switched to using `nftw` to walk the directory tree in c6464d3f99ed1dabceff1168eabb207492c37624, and the stat passed to the `fn` argument of `nftw` is not faked. nftw: https://man7.org/linux/man-pages/man3/nftw.3p.html Example:
Unfortunately this bug is still present in the current fakeroot 1.37.2, I encountered it trying to build a btrfs image with btrfs-progs 6.19.1.
reassign 1081976 faketime quit Hi folks, Based on Sachi's original bug report, it looks like this is not about fakeroot. If I am confused, feel free to reassign it back.
Hi Clint, Sorry, I was submitting a bug report to both fakeroot and faketime simultaneously, as they both use similar methods to perform their modifications. I copied the wrong reproduction line here as I reproduced the issues independently for reporting. Fakeroot does indeed not fake the owner when nftw is the creator of the files as is used in recent versions of mkfs.btrfs. Cheers, Sachi
reassign 1081976 fakeroot clone 1081976 -1 reasign -1 faketime quit I have an idea but I don't know if it'll work. How should I reproduce?