From: Rachita Kothiyal Date: Fri, 28 Dec 2007 04:10:42 +0000 (-0500) Subject: Unionfs ODF regression: Import changes to mknod from unionfs regression X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=ab1cdb96d7dcd951150f1e9196a53b43d3c1266b;p=unionfs-regression-odf.git Unionfs ODF regression: Import changes to mknod from unionfs regression Signed-off-by: Rachita Kothiyal --- 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