The Samba-Bugzilla – Attachment 11960 Details for
Bug 11668
incorrect/inconsistent behavior when --backup-dir is on a full filesystem
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Test case for test suite
mkbkdir-test.diff (text/plain), 1.25 KB, created by
Jim Nelson
on 2016-04-01 19:03:51 UTC
(
hide
)
Description:
Test case for test suite
Filename:
MIME Type:
Creator:
Jim Nelson
Created:
2016-04-01 19:03:51 UTC
Size:
1.25 KB
patch
obsolete
>diff --git a/testsuite/backup.test b/testsuite/backup.test >index e28dd54..edab82a 100644 >--- a/testsuite/backup.test >+++ b/testsuite/backup.test >@@ -62,5 +62,41 @@ diff -r $diffopt "$chkdir" "$bakdir" || test_fail "backup dir contents are bogus > > checkit "$RSYNC -ai --info=backup --inplace --no-whole-file '$fromdir/' '$bakdir/'" "$fromdir" "$bakdir" > >+# >+# Bug 11668: Returns zero exit code when unable to make backup dir on a full filesystem >+# >+ >+cleanup() >+{ >+ umount "$tmpdir/bup" || true >+} >+ >+trap cleanup EXIT >+ >+mkdir -p "$fromdir/s" >+echo "file1" > "$fromdir/s/file1" >+ >+mkdir -p "$todir/d/s" >+echo "file1 different" > "$todir/d/s/file1" >+ >+# create small filesystem and mount it >+umount "$tmpdir/bup" || true >+dd if=/dev/zero of="$tmpdir/fake.fs" bs=1024 count=1024 >+mkfs.ext4 -F "$tmpdir/fake.fs" >+mkdir -p "$tmpdir/bup" >+mount "$tmpdir/fake.fs" "$tmpdir/bup" >+ >+# fill >+dd if=/dev/zero of="$tmpdir/bup/fill.bin" bs=1024 count=2048 > /dev/null 2>&1 || true >+ >+# don't exit on non-zero; that's what's being tested >+set +e >+$RSYNC -av -b --backup-dir="$tmpdir/bup" "$fromdir/s" "$todir/d/." >+if [ $? -eq 0 ]; then >+ echo "Backup mkdir failed but exited with" $? >+ exit 1 >+fi >+set -e >+ > # The script would have aborted on error, so getting here means we've won. > exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11668
: 11960 |
11961