* Adervtise, if loader needds to exchange tapes
that takes some time ....
* volume handling update
* improve verbose message output
* correct media detection in drive slot
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
- if qgroup usage is requested, need to check if it is already enabled
if not, turn on this filesystem option an rescan for the given
subvolume
- even rescanning and calculation the qgroup values might be faster
for large subvolumes, than using plain 'du'
- just enable the qgroup usage for dsnap-sync runs. Upstream
still encounters performance hits for regular production
usage (v4.7: consult the wiki)
this is controlled via enabling the global 'btrfs_quota_tmp' flag
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
- if creation fails, return negative value for snapper_source_id
- terminate following execution with stating the error
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
* tape-admin call on remote machine
* output of BTRFS_PIPE if btrfs-send terminates with unexpected status
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
- handle function-calls with an error message, if the given
volume_name is not a member of the requested mediapool
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
- if a call to a secondary function returns an error, terminate the
calling function with exit code 1
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
- only reformat the tape, if the given volume_name is a
member of the requested pool
- only call mtx to exchange tapes, if the requested
volume_name is not the loaded and active tape in given drive (slot 0)
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
- introduce a quiet switch
- force calls to 1st level functions suppress any output if quiet is selected
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
- make ltfs_devname a global variable
- update all references in functions using the variable
- introduce new function ltfs_get_devname()
- call ltfs_get_devname on startup
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
- use '--mode full' to force btrfs-send to transfer the complet
snapshot without searching for parents
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
- when you take regular btrfs-snapshots to a remote system, the
location of the remote "backup_root" is saved as parameter SUBVOLUME
in the constucted snapper-config.
In case you need to make a interactive backup/clone to a different
target, the commandline options need to have priority, thus
overriding the SUBVOLUME default.
- in verbose mode, show the result of the constructed backupdir and backup_root
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>