From ab1cdb96d7dcd951150f1e9196a53b43d3c1266b Mon Sep 17 00:00:00 2001 From: Rachita Kothiyal Date: Thu, 27 Dec 2007 23:10:42 -0500 Subject: [PATCH] Unionfs ODF regression: Import changes to mknod from unionfs regression Signed-off-by: Rachita Kothiyal --- t-mknod.sh | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/t-mknod.sh b/t-mknod.sh index 4aae653..fee48d9 100755 --- a/t-mknod.sh +++ b/t-mknod.sh @@ -31,6 +31,7 @@ FILES function beforefiles { cat < $MOUNTPOINT/devnull +checkperms $MOUNTPOINT/devnull 666 + unmount_union ( directories ; afterfiles_rw ) | check_hierarchy discard_odf +echo -n "[rw] " +} +function test_ro { init_odf $LOWER_DIR0 $LOWER_DIR1=ro ( directories ; beforefiles) | create_hierarchy mount_union "" $LOWER_DIR0 $LOWER_DIR1=ro @@ -106,8 +113,17 @@ checktype "$MOUNTPOINT/d5/b" 'c' mknod $MOUNTPOINT/d1/d2/d3/d4/c b 200 0 checktype "$MOUNTPOINT/d1/d2/d3/d4/c" 'b' +checkperms $MOUNTPOINT/devnull 644 +chmod 666 $MOUNTPOINT/devnull +echo > $MOUNTPOINT/devnull +checkperms $MOUNTPOINT/devnull 666 + unmount_union ( directories ; afterfiles_ro ) | check_hierarchy discard_odf +echo -n "[ro] " +} +test_rw +test_ro complete_test -- 2.43.0