Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for FadviseDontNeed (0.09 sec)

  1. internal/disk/fdatasync_linux.go

    // do not require all metadata to be synchronized with the disk.
    func Fdatasync(f *os.File) error {
    	return syscall.Fdatasync(int(f.Fd()))
    }
    
    // FadviseDontNeed invalidates page-cache
    func FadviseDontNeed(f *os.File) error {
    	return unix.Fadvise(int(f.Fd()), 0, 0, unix.FADV_DONTNEED)
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Sep 29 23:40:28 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  2. internal/disk/fdatasync_unix.go

    package disk
    
    import (
    	"os"
    	"syscall"
    )
    
    // Fdatasync is fsync on freebsd/darwin
    func Fdatasync(f *os.File) error {
    	return syscall.Fsync(int(f.Fd()))
    }
    
    // FadviseDontNeed is a no-op
    func FadviseDontNeed(f *os.File) error {
    	return nil
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Sep 29 23:40:28 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  3. internal/disk/fdatasync_unsupported.go

    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
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Sep 29 23:40:28 UTC 2021
    - 1K bytes
    - Viewed (0)
Back to top