Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for DiskIndex (0.09 sec)

  1. cmd/erasure-healing-common_test.go

    		t.Errorf("Unexpected number of drives: %d", len(filteredDisks))
    	}
    	for diskIndex, disk := range filteredDisks {
    		if diskIndex == 0 && disk != nil {
    			t.Errorf("Drive not filtered as expected, drive: %d", diskIndex)
    		}
    		if diskIndex != 0 && disk == nil {
    			t.Errorf("Drive erroneously filtered, driveIndex: %d", diskIndex)
    		}
    	}
    	partsMetadata[0] = partsMetadataBackup // Revert before going to the next test
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 15:19:10 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. cmd/background-newdisks-heal-ops_gen.go

    				return
    			}
    		case "SetIndex":
    			z.SetIndex, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "SetIndex")
    				return
    			}
    		case "DiskIndex":
    			z.DiskIndex, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "DiskIndex")
    				return
    			}
    		case "Path":
    			z.Path, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "Path")
    				return
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 20 15:42:49 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  3. cmd/background-newdisks-heal-ops.go

    // If the tracker has been deleted an error is returned.
    func (h *healingTracker) update(ctx context.Context) error {
    	h.mu.Lock()
    	if h.ID == "" || h.PoolIndex < 0 || h.SetIndex < 0 || h.DiskIndex < 0 {
    		h.ID, _ = h.disk.GetDiskID()
    		h.PoolIndex, h.SetIndex, h.DiskIndex = h.disk.GetDiskLoc()
    	}
    	h.mu.Unlock()
    	return h.save(ctx)
    }
    
    // save will unconditionally save the tracker and will be created if not existing.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. cmd/erasure-sets.go

    					s.erasureDisksMu.Unlock()
    					return
    				}
    				s.erasureDisks[setIndex][diskIndex].Close()
    			}
    
    			disk.SetDiskID(format.Erasure.This)
    			s.erasureDisks[setIndex][diskIndex] = disk
    
    			if disk.IsLocal() {
    				globalLocalDrivesMu.Lock()
    				if globalIsDistErasure {
    					globalLocalSetDrives[s.poolIndex][setIndex][diskIndex] = disk
    				}
    				globalLocalDrivesMap[disk.Endpoint().String()] = disk
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 27 10:41:37 UTC 2024
    - 37K bytes
    - Viewed (1)
  5. cmd/global-heal.go

    						versionNotFound++
    						continue
    					}
    				} else {
    					// Look for the healing results
    					if res.After.Drives[tracker.DiskIndex].State != madmin.DriveStateOk {
    						err = fmt.Errorf("unexpected after heal state: %s", res.After.Drives[tracker.DiskIndex].State)
    					}
    				}
    
    				if err == nil {
    					bgSeq.countHealed(madmin.HealItemObject)
    					result = healEntrySuccess(uint64(version.Size))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  6. cmd/admin-heal-ops.go

    		a, b := &disks[i], &disks[j]
    		if a.PoolIndex != b.PoolIndex {
    			return a.PoolIndex < b.PoolIndex
    		}
    		if a.SetIndex != b.SetIndex {
    			return a.SetIndex < b.SetIndex
    		}
    		return a.DiskIndex < b.DiskIndex
    	})
    }
    
    // getLocalHealingDisks returns local healing disks indexed by endpoint.
    func (ahs *allHealState) getLocalHealingDisks() map[string]madmin.HealingDisk {
    	ahs.RLock()
    	defer ahs.RUnlock()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  7. cmd/erasure.go

    		index := index
    		g.Go(func() error {
    			di := madmin.Disk{
    				Endpoint:  endpoints[index].String(),
    				PoolIndex: endpoints[index].PoolIdx,
    				SetIndex:  endpoints[index].SetIdx,
    				DiskIndex: endpoints[index].DiskIdx,
    				Local:     endpoints[index].IsLocal,
    			}
    			if disks[index] == OfflineDisk {
    				di.State = diskErrToDriveState(errDiskNotFound)
    				disksInfo[index] = di
    				return nil
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 22:23:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  8. cmd/notification.go

    				offlineDisks = append(offlineDisks, madmin.Disk{
    					Endpoint:  ep.String(),
    					State:     string(madmin.ItemOffline),
    					PoolIndex: ep.PoolIdx,
    					SetIndex:  ep.SetIdx,
    					DiskIndex: ep.DiskIdx,
    				})
    			}
    		}
    	}
    	return offlineDisks
    }
    
    // StorageInfo returns disk information across all peers
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
Back to top