Hi Kent,
What's your config for generic.689? I run the testcase successfully in
local with the following config:
```
export TEST_DEV=/dev/loop1
export TEST_DIR=/mnt/bcachefs
```
and the output are:
```
[root@lhb_qemu xfstests-master]# ./check tests/generic/689
FSTYP -- bcachefs
PLATFORM -- Linux/x86_64 lhb_qemu 6.10.0-rc3+ #20 SMP
PREEMPT_DYNAMIC Sat Jun 15 17:49:33 CST 2024
generic/689 --- lihb mount type:bcachefs
24s
Ran: generic/689
Passed all 1 tests
```
Thanks,
Hongbo
On 2024/6/17 3:49, Kent Overstreet wrote:
On Sat, Jun 15, 2024 at 06:20:38PM +0800, Hongbo Li wrote:
We enable idmapped mounts for bcachefs. Here, we just pass down
the user_namespace argument from the VFS methods to the relevant
helpers.
The idmap test in bcachefs is as following:
```
1. losetup /dev/loop1 bcachefs.img
2. ./bcachefs format /dev/loop1
3. mount -t bcachefs /dev/loop1 /mnt/bcachefs/
4. ./mount-idmapped --map-mount b:0:1000:1 /mnt/bcachefs /mnt/idmapped1/
ll /mnt/bcachefs
total 2
drwx------. 2 root root 0 Jun 14 14:10 lost+found
-rw-r--r--. 1 root root 1945 Jun 14 14:12 profile
ll /mnt/idmapped1/
total 2
drwx------. 2 1000 1000 0 Jun 14 14:10 lost+found
-rw-r--r--. 1 1000 1000 1945 Jun 14 14:12 profile
```
Signed-off-by: Hongbo Li <[email protected]>
new test failure:
https://evilpiepirate.org/~testdashboard/c/a7d9a88f5cb151b7b9e513f5d40a949a3eda4662/xfstests.generic.689/log.br