public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] overlay/40: clean up properly after setting immutable
@ 2018-04-16 10:41 Miklos Szeredi
  2018-04-16 10:41 ` [PATCH 2/2] overlay/013: do not expect failure Miklos Szeredi
  2018-04-16 15:27 ` [PATCH 1/2] overlay/40: clean up properly after setting immutable Amir Goldstein
  0 siblings, 2 replies; 4+ messages in thread
From: Miklos Szeredi @ 2018-04-16 10:41 UTC (permalink / raw)
  To: fstests; +Cc: linux-unionfs, Eryu Guan, Amir Goldstein

Test program expects only immutable on lower layer (test failure), but does
not expect the immutable file to be on the upper layer.  The later case is
actually what *should* happen, except overlayfs didn't properly implement
this case yet (but is now in the works).

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
---
 tests/overlay/040 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/overlay/040 b/tests/overlay/040
index 369fef3c3a47..4fff7570c2c6 100755
--- a/tests/overlay/040
+++ b/tests/overlay/040
@@ -41,7 +41,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 _cleanup()
 {
 	cd /
-	$CHATTR_PROG -i $lowerdir/foo
+	$CHATTR_PROG -i $lowerdir/foo > /dev/null 2>&1
+	$CHATTR_PROG -i $upperdir/foo > /dev/null 2>&1
 	rm -f $tmp.*
 }
 
@@ -63,6 +64,7 @@ _scratch_mkfs
 
 # prepare lower test file
 lowerdir=$OVL_BASE_SCRATCH_MNT/$OVL_LOWER
+upperdir=$OVL_BASE_SCRATCH_MNT/$OVL_UPPER
 mkdir -p $lowerdir
 touch $lowerdir/foo
 
-- 
2.14.3


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

end of thread, other threads:[~2018-04-16 15:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-16 10:41 [PATCH 1/2] overlay/40: clean up properly after setting immutable Miklos Szeredi
2018-04-16 10:41 ` [PATCH 2/2] overlay/013: do not expect failure Miklos Szeredi
2018-04-16 15:27   ` Amir Goldstein
2018-04-16 15:27 ` [PATCH 1/2] overlay/40: clean up properly after setting immutable Amir Goldstein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox