Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,079 for directio (0.04 sec)

  1. internal/disk/directio_unsupported.go

    // For these systems we do not attempt to build the 'directio' dependency since
    // the O_DIRECT symbol may not be exposed resulting in a failed build.
    //
    //
    // On illumos an explicit O_DIRECT flag is not necessary for two primary
    // reasons. Note that ZFS is effectively the default filesystem on illumos
    // systems.
    //
    // One benefit of using DirectIO on Linux is that the page cache will not be
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. internal/disk/directio_darwin.go

    import (
    	"os"
    
    	"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.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sat Jun 17 14:31:36 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. 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.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sat Jun 17 14:31:36 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. internal/ioutil/ioutil.go

    	if !fi1.ModTime().Equal(fi2.ModTime()) {
    		return false
    	}
    	if fi1.Mode() != fi2.Mode() {
    		return false
    	}
    	return fi1.Size() == fi2.Size()
    }
    
    // DirectioAlignSize - DirectIO alignment needs to be 4K. Defined here as
    // directio.AlignSize is defined as 0 in MacOS causing divide by 0 error.
    const DirectioAlignSize = 4096
    
    // CopyAligned - copies from reader to writer using the aligned input
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. cmd/prepare-storage.go

    		storageLogIf(GlobalContext, fmt.Errorf("unable to create (%s) %w, drive may be faulty, please investigate",
    			pathJoin(diskPath, minioMetaTmpBucket),
    			err))
    	}
    
    	// Delete all temporary files created for DirectIO write check
    	files, _ := filepath.Glob(filepath.Join(diskPath, ".writable-check-*.tmp"))
    	for _, file := range files {
    		go removeAll(file)
    	}
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 11.1K bytes
    - Viewed (1)
  6. go.mod

    	github.com/minio/zipindex v0.4.0
    	github.com/mitchellh/go-homedir v1.1.0
    	github.com/nats-io/nats-server/v2 v2.11.1
    	github.com/nats-io/nats.go v1.41.2
    	github.com/nats-io/stan.go v0.10.4
    	github.com/ncw/directio v1.0.5
    	github.com/nsqio/go-nsq v1.1.0
    	github.com/philhofer/fwd v1.2.0
    	github.com/pierrec/lz4/v4 v4.1.22
    	github.com/pkg/errors v0.9.1
    	github.com/pkg/sftp v1.13.9
    	github.com/pkg/xattr v0.4.10
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 10 18:57:03 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  7. go.sum

    github.com/nats-io/stan.go v0.10.4 h1:19GS/eD1SeQJaVkeM9EkvEYattnvnWrZ3wkSWSw4uXw=
    github.com/nats-io/stan.go v0.10.4/go.mod h1:3XJXH8GagrGqajoO/9+HgPyKV5MWsv7S5ccdda+pc6k=
    github.com/ncw/directio v1.0.5 h1:JSUBhdjEvVaJvOoyPAbcW0fnd0tvRXD76wEfZ1KcQz4=
    github.com/ncw/directio v1.0.5/go.mod h1:rX/pKEYkOXBGOggmcyJeJGloCkleSvphPx2eV3t6ROk=
    github.com/nsqio/go-nsq v1.1.0 h1:PQg+xxiUjA7V+TLdXw7nVrJ5Jbl3sN86EhGCQj4+FYE=
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 79.8K bytes
    - Viewed (0)
  8. cmd/xl-storage.go

    func (s *xlStorage) writeAllInternal(ctx context.Context, filePath string, b []byte, sync bool, skipParent string) (err error) {
    	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.
    		//
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 91.7K bytes
    - Viewed (0)
  9. docs/es/docs/advanced/using-request-directly.md

    Pero hay casos específicos donde es útil obtener el objeto `Request`.
    
    ## Usa el objeto `Request` directamente { #use-the-request-object-directly }
    
    Imaginemos que quieres obtener la dirección IP/host del cliente dentro de tu *path operation function*.
    
    Para eso necesitas acceder al request directamente.
    
    {* ../../docs_src/using_request_directly/tutorial001_py39.py hl[1,7:8] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/response-directly.md

    # Return a Response Directly { #return-a-response-directly }
    
    When you create a **FastAPI** *path operation* you can normally return any data from it: a `dict`, a `list`, a Pydantic model, a database model, etc.
    
    By default, **FastAPI** would automatically convert that return value to JSON using the `jsonable_encoder` explained in [JSON Compatible Encoder](../tutorial/encoder.md){.internal-link target=_blank}.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.1K bytes
    - Viewed (0)
Back to top