Skip to content

Commit 18b0d06

Browse files
committed
fix(test): use fakeroot option for fuse2fs mount
The ext2 root directory is owned by root, so a non-root user cannot write to the mounted filesystem. Adding `fakeroot` to the mount options makes fuse2fs treat the calling user as root for permission checks. https://claude.ai/code/session_01LfpnUZrgq93MVZgA3KVqE6
1 parent 02d93a5 commit 18b0d06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/one_file_system.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ fn cross_device_excludes_mount() {
178178
let mount_output = Command::new("fuse2fs")
179179
.with_arg(&image_path)
180180
.with_arg(&mount_point)
181-
.with_args(["-o", "rw"])
181+
.with_args(["-o", "rw,fakeroot"])
182182
.with_stdout(Stdio::piped())
183183
.with_stderr(Stdio::piped())
184184
.output()

0 commit comments

Comments
 (0)