Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for VolsInfo (0.04 sec)

  1. cmd/storage-datatypes_gen_test.go

    	}
    }
    
    func BenchmarkMarshalMsgVolsInfo(b *testing.B) {
    	v := VolsInfo{}
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.MarshalMsg(nil)
    	}
    }
    
    func BenchmarkAppendMsgVolsInfo(b *testing.B) {
    	v := VolsInfo{}
    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 73.9K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    		}
    		return nil, err
    	}
    	volsInfo := make([]VolInfo, 0, len(entries))
    	for _, entry := range entries {
    		if !HasSuffix(entry, SlashSeparator) || !isValidVolname(pathutil.Clean(entry)) {
    			// Skip if entry is neither a directory not a valid volume name.
    			continue
    		}
    		volsInfo = append(volsInfo, VolInfo{
    			Name: pathutil.Clean(entry),
    		})
    	}
    	return volsInfo, nil
    }
    
    // StatVol - get volume info.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 91.7K bytes
    - Viewed (0)
Back to top