* it should be used for next operations, and need to be closed
* at the end.
*/
-static bool open_bootstrap_file(JCR *jcr, struct bootstrap_info &info)
+static bool open_bootstrap_file(JCR *jcr, bootstrap_info &info)
{
FILE *bs;
UAContext *ua;
* Returns true if we need to change the storage, and it set the new
* Storage resource name in "storage" arg.
*/
-static bool check_for_new_storage(JCR *jcr, struct bootstrap_info &info)
+static bool check_for_new_storage(JCR *jcr, bootstrap_info &info)
{
UAContext *ua = info.ua;
parse_ua_args(ua);
* Send bootstrap file to Storage daemon section by section.
*/
static bool send_bootstrap_file(JCR *jcr, BSOCK *sock,
- struct bootstrap_info &info)
+ bootstrap_info &info)
{
boffset_t pos;
const char *bootstrap = "bootstrap\n";
/*
* Change the read storage resource for the current job.
*/
-static void select_rstore(JCR *jcr, struct bootstrap_info &info)
+static void select_rstore(JCR *jcr, bootstrap_info &info)
{
USTORE ustore;
if (!strcmp(jcr->rstore->name(), info.storage)) {
}
/*
- * Clean the struct bootstrap_info struct
+ * Clean the bootstrap_info struct
*/
-static void close_bootstrap_file(struct bootstrap_info &info)
+static void close_bootstrap_file(bootstrap_info &info)
{
if (info.bs) {
fclose(info.bs);
*/
bool restore_bootstrap(JCR *jcr)
{
- BSOCK *fd=NULL, *sd;
- bool end_loop=false;
- bool first_time=true;
- struct bootstrap_info info;
+ BSOCK *fd = NULL, *sd;
+ bool end_loop = false;
+ bool first_time = true;
+ bootstrap_info info;
POOL_MEM restore_cmd(PM_MESSAGE);
- bool ret=false;
+ bool ret = false;
/* this command is used for each part */
build_restore_command(jcr, restore_cmd);