bareos2015: bareos-14.2 301e17b1
|mvwieringen||mvwieringen||bareos-14.2||2013-07-13 17:29:43||bareos-14.2 ccdb4543||Pending|
|Affected Issues||0000207: Implement plugin options passing.|
|Changeset||Implement plugin options passing.
Implement a new feature to pass plugin option as part of the restore process.
Most of the plugin options input was already implemented but for the restore
the options were never pushed to the file daemon. We should pass it to the
filed and raise a bEventPluginCommand event. This way a user can pass in extra
hints to the plugin for the restore process. Currently the plugin only gets
passed in the plugin options that were defined at the moment the backup was made.
The options defined by the user at restore time are passed before the actual
options saved at backup time are passed so the plugin should take care to ignore
any of the options passed in as part of the backup stream being restored
when it already got a override at restore time.
We increased the FD protocol number to 52 to be able to detect if the file daemon
understand the new protocol keyword.
Along the way we tweaked the layout of fileset traversal code somewhat. Added
some spaces and fixed the scoping of the variables somewhat. So you understand
what is going on. And fixed the comments in the filed plugin code.
Fixes 0000207: Implement plugin options passing.
|mod - src/dird/dird.h||Diff File|
|mod - src/dird/fd_cmds.c||Diff File|
|mod - src/dird/protos.h||Diff File|
|mod - src/dird/restore.c||Diff File|
|mod - src/dird/ua_run.c||Diff File|
|mod - src/filed/authenticate.c||Diff File|
|mod - src/filed/dir_cmd.c||Diff File|
|mod - src/filed/fd_plugins.c||Diff File|