[pbs-devel] [PATCH proxmox-backup v3 07/24] api2: removable datastore creation

Dietmar Maurer dietmar at proxmox.com
Wed Apr 10 11:33:05 CEST 2024


> +        mount_point.push(".chunks");
> +        if mount_point.is_dir() {
> +            config.set_data(&datastore.name, "datastore", &datastore)?;
> +            pbs_config::datastore::save_config(&config)?;
> +            if let Some(worker) = worker {
> +                task_log!(
> +                    worker,
> +                    "created removable datastore, chunkstore already exists"
> +                );
> +                return Ok(());

I guess you should also do:

  jobstate::create_state_file("garbage_collection", &datastore.name)

> +            }
> +        }
> +    }




More information about the pbs-devel mailing list