Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 7,250 for return (0.07 sec)

  1. cmd/admin-heal-ops.go

    		return err
    	}
    
    	if bucketsOnly {
    		return nil
    	}
    
    	if !h.settings.Recursive {
    		if h.object != "" {
    			if err := h.healObject(bucket, h.object, "", h.settings.ScanMode); err != nil {
    				return err
    			}
    		}
    
    		return nil
    	}
    
    	if err := objAPI.HealObjects(h.ctx, bucket, h.object, h.settings, h.healObject); err != nil {
    		return errFnHealFromAPIErr(h.ctx, err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    		}
    		if osIsPermission(err) {
    			return errDiskAccessDenied
    		} else if isSysErrIO(err) {
    			return errFaultyDisk
    		}
    		return err
    	}
    
    	// Stat succeeds we return errVolumeExists.
    	return errVolumeExists
    }
    
    // ListVols - list volumes.
    func (s *xlStorage) ListVols(ctx context.Context) (volsInfo []VolInfo, err error) {
    	return listVols(ctx, s.drivePath)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  3. internal/grid/msg_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteTime(z.Time)
    	if err != nil {
    		err = msgp.WrapError(err, "Time")
    		return
    	}
    	// write "Token"
    	err = en.Append(0xa5, 0x54, 0x6f, 0x6b, 0x65, 0x6e)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.Token)
    	if err != nil {
    		err = msgp.WrapError(err, "Token")
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  4. cmd/last-minute.go

    	case sizeLessThan1KiB:
    		return "LESS_THAN_1_KiB"
    	case sizeLessThan1MiB:
    		return "LESS_THAN_1_MiB"
    	case sizeLessThan10MiB:
    		return "LESS_THAN_10_MiB"
    	case sizeLessThan100MiB:
    		return "LESS_THAN_100_MiB"
    	case sizeLessThan1GiB:
    		return "LESS_THAN_1_GiB"
    	case sizeGreaterThan1GiB:
    		return "GREATER_THAN_1_GiB"
    	default:
    		return "unknown"
    	}
    }
    
    // AccElem holds information for calculating an average value
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 05 17:40:45 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/LruHashSet.java

         *
         * @return the number of elements in this set (its cardinality).
         */
        @Override
        public int size() {
            return map.size();
        }
    
        /**
         * Returns true if this set contains no elements.
         *
         * @return true if this set contains no elements.
         */
        @Override
        public boolean isEmpty() {
            return map.isEmpty();
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. cmd/generic-handlers.go

    				if r.TLS != nil {
    					scheme = "https"
    				}
    				return scheme
    			}(),
    		}
    	}
    	return nil
    }
    
    // guessIsHealthCheckReq - returns true if incoming request looks
    // like healthCheck request
    func guessIsHealthCheckReq(req *http.Request) bool {
    	if req == nil {
    		return false
    	}
    	aType := getRequestAuthType(req)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  7. internal/config/bool-flag.go

    	case "1", "t", "T", "true", "TRUE", "True", "on", "ON", "On":
    		return true, nil
    	case "0", "f", "F", "false", "FALSE", "False", "off", "OFF", "Off":
    		return false, nil
    	}
    	if strings.EqualFold(str, "enabled") {
    		return true, nil
    	}
    	if strings.EqualFold(str, "disabled") {
    		return false, nil
    	}
    	return false, fmt.Errorf("ParseBool: parsing '%s': %w", str, strconv.ErrSyntax)
    }
    
    // ParseBoolFlag - parses string into BoolFlag.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 07 15:10:40 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  8. src/archive/tar/reader.go

    	}
    
    	n = len(b0) - len(b)
    	switch {
    	case err == io.EOF:
    		return n, errMissData // Less data in dense file than sparse file
    	case err != nil:
    		return n, err
    	case sr.logicalRemaining() == 0 && sr.physicalRemaining() > 0:
    		return n, errUnrefData // More data in dense file than sparse file
    	case finished:
    		return n, io.EOF
    	default:
    		return n, nil
    	}
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  9. internal/grid/manager.go

    		return ErrHandlerAlreadyExists
    	}
    	m.handlers.subStreams[subID] = &h
    	// Copy so clients can also pick it up for other subpaths.
    	m.handlers.subStreams[makeZeroSubHandlerID(id)] = &h
    	return nil
    }
    
    // HostName returns the name of the local host.
    func (m *Manager) HostName() string {
    	return m.local
    }
    
    // Targets returns the names of all remote targets.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. cmd/erasure-server-pool-rebalance_gen.go

    		return
    	}
    	// write "id"
    	err = en.Append(0xa2, 0x69, 0x64)
    	if err != nil {
    		return
    	}
    	err = en.WriteString(z.ID)
    	if err != nil {
    		err = msgp.WrapError(err, "ID")
    		return
    	}
    	// write "pf"
    	err = en.Append(0xa2, 0x70, 0x66)
    	if err != nil {
    		return
    	}
    	err = en.WriteFloat64(z.PercentFreeGoal)
    	if err != nil {
    		err = msgp.WrapError(err, "PercentFreeGoal")
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 26.8K bytes
    - Viewed (0)
Back to top