Commit 32ac1d91 authored by Jakob Unterwurzacher's avatar Jakob Unterwurzacher Committed by Han-Wen Nienhuys

loopback: leave file permissions on "000" files as-is

Set `opts.NullPermissions = true` to stop us from falsifying
file permissions on "000" files.

Fixes xfstests generic/088.

Change-Id: Ibabbdc97b1ae2531ca093bae6bb441ae15d3238e
parent c6370440
......@@ -104,6 +104,8 @@ func main() {
opts.MountOptions.Options = append(opts.MountOptions.Options, "fsname="+orig)
// Second column in "df -T" will be shown as "fuse." + Name
opts.MountOptions.Name = "loopback"
// Leave file permissions on "000" files as-is
opts.NullPermissions = true
server, err := fs.Mount(flag.Arg(0), loopbackRoot, opts)
if err != nil {
log.Fatalf("Mount fail: %v\n", err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment