mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-24 21:26:28 +00:00
test get_format_file_in_quorum
This commit is contained in:
@@ -50,10 +50,14 @@ pub async fn do_init_format_file(
|
|||||||
set_drive_count: usize,
|
set_drive_count: usize,
|
||||||
deployment_id: Option<Uuid>,
|
deployment_id: Option<Uuid>,
|
||||||
) -> Result<FormatV3, Error> {
|
) -> Result<FormatV3, Error> {
|
||||||
|
warn!("do_init_format_file id: {:?}, first_disk: {}", deployment_id, first_disk);
|
||||||
|
|
||||||
let (formats, errs) = read_format_file_all(disks, false).await;
|
let (formats, errs) = read_format_file_all(disks, false).await;
|
||||||
|
|
||||||
DiskError::check_disk_fatal_errs(&errs)?;
|
DiskError::check_disk_fatal_errs(&errs)?;
|
||||||
|
|
||||||
|
warn!("read_format_file_all errs {:?}", &errs);
|
||||||
|
|
||||||
check_format_erasure_values(&formats, set_drive_count)?;
|
check_format_erasure_values(&formats, set_drive_count)?;
|
||||||
|
|
||||||
if first_disk && DiskError::should_init_erasure_disks(&errs) {
|
if first_disk && DiskError::should_init_erasure_disks(&errs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user