* [PATCH] [xfstests-bld] test-appliance: yet another file permissions fix
@ 2017-02-28 20:46 Eric Biggers
2017-03-01 19:42 ` Theodore Ts'o
0 siblings, 1 reply; 2+ messages in thread
From: Eric Biggers @ 2017-02-28 20:46 UTC (permalink / raw)
To: Theodore Ts'o; +Cc: fstests, Eric Biggers
From: Eric Biggers <ebiggers@google.com>
Several directories in the kvm-xfstests appliance were still not being
given the correct file permissions, since they were rsync'ed directly
into the mounted root filesystem with the '-a' option. Unfortunately it
seems we can't express "go+u-w" with rsync options (it's not accepted by
--chmod), but we can copy the files through 'tar' instead, similar to
what is done elsewhere.
(I didn't notice this earlier because it is kvm-xfstests specific, and
it only broke a couple tests such as generic/128.)
Signed-off-by: Eric Biggers <ebiggers@google.com>
---
kvm-xfstests/test-appliance/gen-image | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/kvm-xfstests/test-appliance/gen-image b/kvm-xfstests/test-appliance/gen-image
index 67f8c6b..dbd9b84 100755
--- a/kvm-xfstests/test-appliance/gen-image
+++ b/kvm-xfstests/test-appliance/gen-image
@@ -111,7 +111,8 @@ fi
update_xfstests()
{
tar -C $ROOTDIR/root -xf ../../xfstests.tar.gz
- rsync --exclude-from kvm-exclude-files -avH files/* $ROOTDIR
+ tar -X kvm-exclude-files -C files \
+ --owner=root --group=root --mode=go+u-w -c . | tar -C $ROOTDIR -x
rsync -avH ../../xfstests/git-versions $ROOTDIR/root/xfstests
chown -R root:root $ROOTDIR/root
chmod -R go+u-w $ROOTDIR/root
--
2.11.0.483.g087da7b7c-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] [xfstests-bld] test-appliance: yet another file permissions fix
2017-02-28 20:46 [PATCH] [xfstests-bld] test-appliance: yet another file permissions fix Eric Biggers
@ 2017-03-01 19:42 ` Theodore Ts'o
0 siblings, 0 replies; 2+ messages in thread
From: Theodore Ts'o @ 2017-03-01 19:42 UTC (permalink / raw)
To: Eric Biggers; +Cc: fstests, Eric Biggers
On Tue, Feb 28, 2017 at 12:46:43PM -0800, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@google.com>
>
> Several directories in the kvm-xfstests appliance were still not being
> given the correct file permissions, since they were rsync'ed directly
> into the mounted root filesystem with the '-a' option. Unfortunately it
> seems we can't express "go+u-w" with rsync options (it's not accepted by
> --chmod), but we can copy the files through 'tar' instead, similar to
> what is done elsewhere.
>
> (I didn't notice this earlier because it is kvm-xfstests specific, and
> it only broke a couple tests such as generic/128.)
>
> Signed-off-by: Eric Biggers <ebiggers@google.com>
Thanks, applied.
- Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-01 20:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-28 20:46 [PATCH] [xfstests-bld] test-appliance: yet another file permissions fix Eric Biggers
2017-03-01 19:42 ` Theodore Ts'o
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.