URL:
https://github.com/freeipa/freeipa/pull/3268
Author: fcami
Title: #3268: [Backport][ipa-4-6] ipa-backup: better error message if ENOSPC
Action: opened
PR body:
"""
MANUAL BACKPORT of
https://github.com/freeipa/freeipa/pull/3112
The main change is that ipa-4-6 has:
filename = encrypt_file(filename, keyring)
while HEAD has:
filename = encrypt_file(filename)
due to
https://github.com/freeipa/freeipa/commit/8e165480ace76ab97e40e9396293ecc...
########
When the destination directory cannot store the complete backup
ipa-backup fails but does not explain why.
This commit adds error-checking to db2ldif(), db2bak() and
finalize_backup() and enhances the error message.
Fixes:
https://pagure.io/freeipa/issue/7647
Signed-off-by: François Cami <fcami(a)redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo(a)redhat.com>
Reviewed-By: Tibor Dudlák <tdudlak(a)redhat.com>
Reviewed-By: Christian Heimes <cheimes(a)redhat.com>
Reviewed-By: Thomas Woerner <twoerner(a)redhat.com>
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/3268/head:pr3268
git checkout pr3268