Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 511 for error (0.35 sec)

  1. cmd/storage-rest-server.go

    	done(nil)
    	vresp := &VerifyFileResp{}
    	if err != nil {
    		vresp.Err = StorageErr(err.Error())
    	}
    	encoder.Encode(vresp)
    }
    
    func checkDiskFatalErrs(errs []error) error {
    	// This returns a common error if all errors are
    	// same errors, then there is no point starting
    	// the server.
    	if countErrs(errs, errUnsupportedDisk) == len(errs) {
    		return errUnsupportedDisk
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  2. cmd/iam-object-store.go

    	return iamOS.saveIAMConfig(ctx, u, getUserIdentityPath(name, userType), opts...)
    }
    
    func (iamOS *IAMObjectStore) saveGroupInfo(ctx context.Context, name string, gi GroupInfo) error {
    	return iamOS.saveIAMConfig(ctx, gi, getGroupInfoPath(name))
    }
    
    func (iamOS *IAMObjectStore) deletePolicyDoc(ctx context.Context, name string) error {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  3. cmd/xl-storage-disk-id-check.go

    	startTime := time.Now()
    	trace := globalTrace.NumSubscribers(madmin.TraceStorage) > 0
    	return func(errp *error) {
    		duration := time.Since(startTime)
    
    		var err error
    		if errp != nil && *errp != nil {
    			err = *errp
    		}
    
    		atomic.AddUint64(&p.apiCalls[s], 1)
    		if IsErr(err, []error{
    			errFaultyDisk,
    			errFaultyRemoteDisk,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  4. tests/preload_test.go

    		t.Errorf("failed to query, got error %v, account: %#v", err, user4.Account)
    	}
    
    	if err := DB.Preload(clause.Associations, func(tx *gorm.DB) *gorm.DB {
    		return tx.Unscoped()
    	}).Take(&user4, "id = ?", users3[0].ID).Error; err != nil || user4.Account.ID == 0 {
    		t.Errorf("failed to query, got error %v, account: %#v", err, user4.Account)
    	}
    }
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/net.go

    	if err := s.netnsRunner(openNetns, func() error { return s.iptablesConfigurator.DeleteInpodRules() }); err != nil {
    		log.Errorf("failed to delete inpod rules %v", err)
    		return fmt.Errorf("failed to delete inpod rules %w", err)
    	}
    
    	if err := removePodFromHostNSIpset(pod, &s.hostsideProbeIPSet); err != nil {
    		log.Errorf("failed to remove pod %s from host ipset, error was: %v", pod.Name, err)
    		return err
    	}
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.2K bytes
    - Viewed (1)
  6. cmd/erasure-server-pool-decom.go

    	}
    }
    
    var (
    	errDecommissionAlreadyRunning = errors.New("decommission is already in progress")
    	errDecommissionComplete       = errors.New("decommission is complete, please remove the servers from command-line")
    	errDecommissionNotStarted     = errors.New("decommission is not in progress")
    )
    
    func (p *poolMeta) Decommission(idx int, pi poolSpaceInfo) error {
    	// Return an error when there is decommission on going - the user needs
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.3K bytes
    - Viewed (1)
  7. cmd/utils.go

    }
    
    // IsErrIgnored returns whether given error is ignored or not.
    func IsErrIgnored(err error, ignoredErrs ...error) bool {
    	return IsErr(err, ignoredErrs...)
    }
    
    // IsErr returns whether given error is exact error.
    func IsErr(err error, errs ...error) bool {
    	for _, exactErr := range errs {
    		if errors.Is(err, exactErr) {
    			return true
    		}
    	}
    	return false
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 31.3K bytes
    - Viewed (0)
  8. cni/pkg/iptables/iptables_linux.go

    	loopbackLink, err := netlink.LinkByName("lo")
    	if err != nil {
    		return fmt.Errorf("failed to find 'lo' link: %v", err)
    	}
    
    	// Set up netlink routes for localhost
    	cidrs := []string{"0.0.0.0/0"}
    	if cfg.EnableIPv6 {
    		cidrs = append(cidrs, "0::0/0")
    	}
    	for _, fullCIDR := range cidrs {
    		_, localhostDst, err := net.ParseCIDR(fullCIDR)
    		if err != nil {
    			return fmt.Errorf("parse CIDR: %v", err)
    		}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  9. cmd/peer-rest-client.go

    	err = gob.NewDecoder(waitReader).Decode(&result)
    	if err != nil {
    		return result, err
    	}
    	if result.Error != "" {
    		return result, errors.New(result.Error)
    	}
    	return result, nil
    }
    
    func (client *peerRESTClient) DriveSpeedTest(ctx context.Context, opts madmin.DriveSpeedTestOpts) (madmin.DriveSpeedTestResult, error) {
    	queryVals := make(url.Values)
    	if opts.Serial {
    		queryVals.Set("serial", "true")
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  10. cni/pkg/ipset/nldeps_linux.go

    			}
    		}
    	}
    
    	return errors.Join(delErrs...)
    }
    
    func (m *realDeps) listEntriesByIP(name string) ([]netip.Addr, error) {
    	var ipList []netip.Addr
    
    	res, err := netlink.IpsetList(name)
    	if err != nil {
    		return ipList, fmt.Errorf("failed to list ipset %s: %w", name, err)
    	}
    
    	for _, entry := range res.Entries {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
Back to top