All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iotests/108: Fix when missing user_allow_other
@ 2022-04-21 14:24 Hanna Reitz
  2022-04-21 15:25 ` Markus Armbruster
  2022-04-22 21:41 ` Eric Blake
  0 siblings, 2 replies; 3+ messages in thread
From: Hanna Reitz @ 2022-04-21 14:24 UTC (permalink / raw)
  To: qemu-block; +Cc: Kevin Wolf, Hanna Reitz, qemu-devel, Markus Armbruster

FUSE exports' allow-other option defaults to "auto", which means that it
will try passing allow_other as a mount option, and fall back to not
using it when an error occurs.  We make no effort to hide fusermount's
error message (because it would be difficult, and because users might
want to know about the fallback occurring), and so when allow_other does
not work (primarily when /etc/fuse.conf does not contain
user_allow_other), this error message will appear and break the
reference output.

We do not need allow_other here, though, so we can just pass
allow-other=off to fix that.

Reported-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
---
 tests/qemu-iotests/108 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/qemu-iotests/108 b/tests/qemu-iotests/108
index 688d3ae8f6..9e923d6a59 100755
--- a/tests/qemu-iotests/108
+++ b/tests/qemu-iotests/108
@@ -326,7 +326,7 @@ else
 
     $QSD \
         --blockdev file,node-name=export-node,filename="$TEST_IMG" \
-        --export fuse,id=fuse-export,node-name=export-node,mountpoint="$export_mp",writable=on,growable=off \
+        --export fuse,id=fuse-export,node-name=export-node,mountpoint="$export_mp",writable=on,growable=off,allow-other=off \
         --pidfile "$TEST_DIR/qsd.pid" \
         --daemonize
 fi
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] iotests/108: Fix when missing user_allow_other
  2022-04-21 14:24 [PATCH] iotests/108: Fix when missing user_allow_other Hanna Reitz
@ 2022-04-21 15:25 ` Markus Armbruster
  2022-04-22 21:41 ` Eric Blake
  1 sibling, 0 replies; 3+ messages in thread
From: Markus Armbruster @ 2022-04-21 15:25 UTC (permalink / raw)
  To: Hanna Reitz; +Cc: Kevin Wolf, qemu-devel, qemu-block

Hanna Reitz <hreitz@redhat.com> writes:

> FUSE exports' allow-other option defaults to "auto", which means that it
> will try passing allow_other as a mount option, and fall back to not
> using it when an error occurs.  We make no effort to hide fusermount's
> error message (because it would be difficult, and because users might
> want to know about the fallback occurring), and so when allow_other does
> not work (primarily when /etc/fuse.conf does not contain
> user_allow_other), this error message will appear and break the
> reference output.
>
> We do not need allow_other here, though, so we can just pass
> allow-other=off to fix that.
>
> Reported-by: Markus Armbruster <armbru@redhat.com>
> Signed-off-by: Hanna Reitz <hreitz@redhat.com>

Tested-by: Markus Armbruster <armbru@redhat.com>

Thanks!



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] iotests/108: Fix when missing user_allow_other
  2022-04-21 14:24 [PATCH] iotests/108: Fix when missing user_allow_other Hanna Reitz
  2022-04-21 15:25 ` Markus Armbruster
@ 2022-04-22 21:41 ` Eric Blake
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Blake @ 2022-04-22 21:41 UTC (permalink / raw)
  To: Hanna Reitz; +Cc: Kevin Wolf, qemu-devel, qemu-block, Markus Armbruster

On Thu, Apr 21, 2022 at 04:24:35PM +0200, Hanna Reitz wrote:
> FUSE exports' allow-other option defaults to "auto", which means that it
> will try passing allow_other as a mount option, and fall back to not
> using it when an error occurs.  We make no effort to hide fusermount's
> error message (because it would be difficult, and because users might
> want to know about the fallback occurring), and so when allow_other does
> not work (primarily when /etc/fuse.conf does not contain
> user_allow_other), this error message will appear and break the
> reference output.
> 
> We do not need allow_other here, though, so we can just pass
> allow-other=off to fix that.
> 
> Reported-by: Markus Armbruster <armbru@redhat.com>
> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
> ---
>  tests/qemu-iotests/108 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

I hit this today as well, and your fix works.

Tested-by: Eric Blake <eblake@redhat.com>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-22 21:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-21 14:24 [PATCH] iotests/108: Fix when missing user_allow_other Hanna Reitz
2022-04-21 15:25 ` Markus Armbruster
2022-04-22 21:41 ` Eric Blake

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.