Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for saveFormatErasure (0.11 sec)

  1. cmd/format-erasure.go

    				// online.
    				storageDisks[index].SetDiskID(format.Erasure.This)
    			}
    			return nil
    		}, index)
    	}
    
    	// Return all formats and errors if any.
    	return formats, g.Wait()
    }
    
    func saveFormatErasure(disk StorageAPI, format *formatErasureV3, healID string) error {
    	if disk == nil || format == nil {
    		return errDiskNotFound
    	}
    
    	// Marshal and write to disk.
    	formatData, err := json.Marshal(format)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  2. cmd/erasure-sets.go

    		}
    
    		// Save new formats `format.json` on unformatted disks.
    		for index, format := range tmpNewFormats {
    			if storageDisks[index] == nil || format == nil {
    				continue
    			}
    			if err := saveFormatErasure(storageDisks[index], format, formatOpID); err != nil {
    				healingLogIf(ctx, fmt.Errorf("Drive %s failed to write updated 'format.json': %v", storageDisks[index], err))
    				storageDisks[index].Close()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 27 10:41:37 UTC 2024
    - 37K bytes
    - Viewed (0)
Back to top