Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for direction (0.15 sec)

  1. internal/disk/directio_unix.go

    	"os"
    	"syscall"
    
    	"github.com/ncw/directio"
    	"golang.org/x/sys/unix"
    )
    
    // ODirectPlatform indicates if the platform supports O_DIRECT
    const ODirectPlatform = true
    
    // OpenFileDirectIO - bypass kernel cache.
    func OpenFileDirectIO(filePath string, flag int, perm os.FileMode) (*os.File, error) {
    	return directio.OpenFile(filePath, flag, perm)
    }
    
    // DisableDirectIO - disables directio mode.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Jun 17 14:31:36 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  2. internal/grid/msg.go

    const (
    	// FlagCRCxxh3 indicates that, the lower 32 bits of xxhash3 of the serialized
    	// message will be sent after the serialized message as little endian.
    	FlagCRCxxh3 Flags = 1 << iota
    
    	// FlagEOF the stream (either direction) is at EOF.
    	FlagEOF
    
    	// FlagStateless indicates the message is stateless.
    	// This will retain clients across reconnections or
    	// if sequence numbers are unexpected.
    	FlagStateless
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 28 19:22:29 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  3. internal/config/browser/browser.go

    }
    
    // IsHSTSIncludeSubdomains - is HSTS 'includeSubdomains' directive enabled
    func (browseCfg *Config) IsHSTSIncludeSubdomains() string {
    	configLock.RLock()
    	defer configLock.RUnlock()
    	if browseCfg.HSTSSeconds > 0 && browseCfg.HSTSIncludeSubdomains {
    		return config.EnableOn
    	}
    	return config.EnableOff
    }
    
    // IsHSTSPreload - is HSTS 'preload' directive enabled
    func (browseCfg *Config) IsHSTSPreload() string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  4. cmd/object-handlers.go

    	// Storage class is special, it can be replaced regardless of the
    	// metadata directive, if set should be preserved and replaced
    	// to the destination metadata.
    	sc := r.Header.Get(xhttp.AmzStorageClass)
    	if sc == "" {
    		sc = r.Form.Get(xhttp.AmzStorageClass)
    	}
    
    	// if x-amz-metadata-directive says REPLACE then
    	// we extract metadata from the input headers.
    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)
  5. cmd/api-errors.go

    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInvalidMetadataDirective: {
    		Code:           "InvalidArgument",
    		Description:    "Unknown metadata directive.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInvalidStorageClass: {
    		Code:           "InvalidStorageClass",
    		Description:    "Invalid storage class.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  6. cmd/leak-detect_test.go

    	"strings"
    	"time"
    )
    
    const (
    	// deadline (in seconds) up to which the go routine leak detection has to be retried.
    	leakDetectDeadline = 5
    	// pause time (in milliseconds) between each snapshot at the end of the go routine leak detection.
    	leakDetectPauseTimeMs = 50
    )
    
    // LeakDetect - type with  methods for go routine leak detection.
    type LeakDetect struct {
    	relevantRoutines map[string]bool
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  7. internal/grid/handlers.go

    	StreamHandlerFn func(ctx context.Context, payload []byte, in <-chan []byte, out chan<- []byte) *RemoteErr
    
    	// StreamHandler handles fully bidirectional streams,
    	// There is flow control in both directions.
    	StreamHandler struct {
    		// Handle an incoming request. Initial payload is sent.
    		// Additional input packets (if any) are streamed to request.
    		// Upstream will block when request channel is full.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  8. cmd/handler-utils.go

    }
    
    // isDirectiveValid - check if tagging-directive is valid.
    func isDirectiveValid(v string) bool {
    	// Check if set metadata-directive is valid.
    	return isDirectiveCopy(v) || isDirectiveReplace(v)
    }
    
    // Check if the directive COPY is requested.
    func isDirectiveCopy(value string) bool {
    	// By default if directive is not set we
    	// treat it as 'COPY' this function returns true.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  9. cmd/auth-handler_test.go

    		}
    	}
    }
    
    // TestIsRequestPresignedSignatureV4 - Test validates the logic for presign signature version v4 detection.
    func TestIsRequestPresignedSignatureV4(t *testing.T) {
    	testCases := []struct {
    		inputQueryKey   string
    		inputQueryValue string
    		expectedResult  bool
    	}{
    		// Test case - 1.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  10. cmd/xl-storage.go

    	if err = checkPathLength(filePath); err != nil {
    		return err
    	}
    
    	flags := os.O_CREATE | os.O_WRONLY | os.O_TRUNC
    
    	var w *os.File
    	if sync {
    		// Perform DirectIO along with fdatasync for larger xl.meta, mostly when
    		// xl.meta has "inlined data" we prefer writing O_DIRECT and then doing
    		// fdatasync() at the end instead of opening the file with O_DSYNC.
    		//
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
Back to top