Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 65 for op (0.14 sec)

  1. cmd/xl-storage-disk-id-check.go

    	}
    )
    
    // logSuccess will update the last successful operation time.
    func (h *healthDiskCtxValue) logSuccess() {
    	atomic.StoreInt64(h.lastSuccess, time.Now().UnixNano())
    }
    
    // noopDoneFunc is a no-op done func.
    // Can be reused.
    var noopDoneFunc = func(_ *error) {}
    
    // TrackDiskHealth for this request.
    // When a non-nil error is returned 'done' MUST be called
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  2. cmd/os_other.go

    			} else if fi.Mode().IsRegular() {
    				entries = append(entries, fi.Name())
    			}
    			if opts.count > 0 {
    				remaining--
    			}
    		}
    	}
    	return entries, nil
    }
    
    func globalSync() {
    	// no-op not sure about plan9/solaris support for syscall support
    	defer globalOSMetrics.time(osMetricSync)()
    	syscall.Sync()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 13 15:14:36 GMT 2023
    - 4K bytes
    - Viewed (0)
  3. internal/disk/fdatasync_unsupported.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    import (
    	"os"
    )
    
    // Fdatasync is a no-op
    func Fdatasync(f *os.File) error {
    	return nil
    }
    
    // FadviseDontNeed is a no-op
    func FadviseDontNeed(f *os.File) error {
    	return nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 29 23:40:28 GMT 2021
    - 1K bytes
    - Viewed (0)
  4. internal/grid/muxserver.go

    func (m *muxServer) disconnect(msg string) {
    	if debugPrint {
    		fmt.Println("Mux", m.ID, "disconnecting. Reason:", msg)
    	}
    	if msg != "" {
    		m.send(message{Op: OpMuxServerMsg, MuxID: m.ID, Flags: FlagPayloadIsErr | FlagEOF, Payload: []byte(msg)})
    	} else {
    		m.send(message{Op: OpDisconnectClientMux, MuxID: m.ID})
    	}
    	m.parent.deleteMux(true, m.ID)
    }
    
    func (m *muxServer) send(msg message) {
    	m.sendMu.Lock()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  5. cmd/object-handlers.go

    		srcInfo.UserDefined[xhttp.AmzBucketReplicationStatus] = rs
    	}
    
    	op := replication.ObjectReplicationType
    	if srcInfo.metadataOnly {
    		op = replication.MetadataReplicationType
    	}
    	if dsc := mustReplicate(ctx, dstBucket, dstObject, srcInfo.getMustReplicateOptions(op, dstOpts)); dsc.ReplicateAny() {
    		srcInfo.UserDefined[ReservedMetadataPrefixLower+ReplicationStatus] = dsc.PendingStatus()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  6. internal/disk/directio_unsupported.go

    // OpenFileDirectIO wrapper around os.OpenFile nothing special
    func OpenFileDirectIO(filePath string, flag int, perm os.FileMode) (*os.File, error) {
    	return os.OpenFile(filePath, flag, perm)
    }
    
    // DisableDirectIO is a no-op
    func DisableDirectIO(f *os.File) error {
    	return nil
    }
    
    // AlignedBlock simply returns an unaligned buffer
    // for systems that do not support DirectIO.
    func AlignedBlock(blockSize int) []byte {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  7. internal/rest/client_test.go

    		name   string
    		err    error
    		target interface{}
    		want   bool
    	}{
    		{
    			name:   "url.Error",
    			err:    &url.Error{Op: "PUT", URL: "http://localhost/1234", Err: restError("remote server offline")},
    			target: &url.Error{},
    			want:   true,
    		},
    		{
    			name: "net.Error",
    			err:  &url.Error{Op: "PUT", URL: "http://localhost/1234", Err: restError("remote server offline")},
    			want: true,
    		},
    		{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 1.9K bytes
    - Viewed (0)
  8. cmd/admin-handlers-site-replication.go

    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    	vars := mux.Vars(r)
    	op := madmin.SiteResyncOp(vars["operation"])
    	var (
    		status madmin.SRResyncOpStatus
    		err    error
    	)
    	switch op {
    	case madmin.SiteResyncStart:
    		status, err = globalSiteReplicationSys.startResync(ctx, objectAPI, peerSite)
    	case madmin.SiteResyncCancel:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 09:40:39 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  9. internal/lock/lock_solaris.go

    	case syscall.O_RDWR:
    		fallthrough
    	case syscall.O_WRONLY | syscall.O_CREAT:
    		fallthrough
    	case syscall.O_RDWR | syscall.O_CREAT:
    		lockType = syscall.F_WRLCK
    	default:
    		return nil, &os.PathError{
    			Op:   "open",
    			Path: path,
    			Err:  syscall.EINVAL,
    		}
    	}
    
    	lock := syscall.Flock_t{
    		Start:  0,
    		Len:    0,
    		Pid:    0,
    		Type:   lockType,
    		Whence: 0,
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 2.8K bytes
    - Viewed (0)
  10. internal/s3select/sql/parser.go

    // terms separated by +/-
    type Operand struct {
    	Left  *MultOp     `parser:"@@"`
    	Right []*OpFactor `parser:"(@@)*"`
    }
    
    // OpFactor represents the right-side of a +/- operation.
    type OpFactor struct {
    	Op    string  `parser:"@(\"+\" | \"-\")"`
    	Right *MultOp `parser:"@@"`
    }
    
    // MultOp represents a single term followed by an optional sequence of
    // terms separated by *, / or % operators.
    type MultOp struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.9K bytes
    - Viewed (0)
Back to top