The Samba-Bugzilla – Attachment 18351 Details for
Bug 15668
lmdb backendStore: samba-tool domain backup offline deadlocks with parallel sam.ldb modifications
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
reproduce-lmdb-backup-deadlock-part-2-run-samba-backup.sh
reproduce-lmdb-backup-deadlock-part-2-run-samba-backup.sh (text/plain), 677 bytes, created by
Arvid Requate
on 2024-06-24 07:04:19 UTC
(
hide
)
Description:
reproduce-lmdb-backup-deadlock-part-2-run-samba-backup.sh
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2024-06-24 07:04:19 UTC
Size:
677 bytes
patch
obsolete
>#!/bin/bash ># ># Reproduce deadlock of samba-tool domain backup offline with parallel ldb modifictions ># ># Part 2: Run "domain backup offline" > >private_dir="/var/lib/samba/private" >backendStore=$(ldbsearch -H "/var/lib/samba/private"/sam.ldb -s base -b '@PARTITION' backendStore | sed -n 's/^backendStore: //p') > >if [ "$backendStore" != "mdb" ]; then > echo "Test only applies to mdb backed sam.ldb" > exit 2 >fi > >rm -f "$private_dir"/sam.ldb.d/*.{copy.mdb,bak-offline} ## cleanup in case of previous failed run > >target_dir=$(mktemp -d --suffix=.samba) >cleanup() { > rm -rf "${target_dir:?}" >} >trap cleanup EXIT > >/usr/bin/samba-tool domain backup offline --targetdir="$target_dir" >
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 15668
:
18350
| 18351