- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for fdatasync (0.3 sec)
-
internal/disk/fdatasync_linux.go
// (st_size, as made by say ftruncate(2)), would require a metadata flush. // // The aim of fdatasync() is to reduce disk activity for applications that // 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 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 29 23:40:28 UTC 2021 - 1.8K bytes - Viewed (0) -
cmd/os-instrumented.go
defer updateOSMetrics(osMetricCreate, name)(err) return os.Create(name) } // Fdatasync captures time taken to call Fdatasync func Fdatasync(f *os.File) (err error) { fn := "" if f != nil { fn = f.Name() } defer updateOSMetrics(osMetricFdatasync, fn)(err) return disk.Fdatasync(f) } // report returns all os metrics. func (o *osMetrics) report() madmin.OSMetrics {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Feb 15 01:09:38 UTC 2024 - 6.3K bytes - Viewed (0) -
internal/disk/fdatasync_unix.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. 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 Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 29 23:40:28 UTC 2021 - 1.1K bytes - Viewed (0) -
internal/disk/fdatasync_unsupported.go
// // You should have received a copy of the GNU Affero General Public License // 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
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 29 23:40:28 UTC 2021 - 1K bytes - Viewed (0) -
docs/distributed/README.md
**In our tests we also found ext4 does not honor POSIX O_DIRECT/Fdatasync semantics, ext4 trades performance for consistency guarantees. Please avoid ext4 in your setup.**
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 8.8K bytes - Viewed (0) -
internal/ioutil/ioutil.go
n, err = w.Write(buf[:len(buf)-remain]) if err != nil { return written, err } nw = int64(n) } // Disable O_DIRECT on fd's on unaligned buffer // perform an amortized Fdatasync(fd) on the fd at // the end, this is performed by the caller before // closing 'w'. if err = disk.DisableDirectIO(file); err != nil { return written, err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 26 12:55:01 UTC 2024 - 10.9K bytes - Viewed (0) -
cmd/xl-storage.go
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. // // This is an optimization mainly to ensure faster I/O. if len(b) > xioutil.DirectioAlignSize {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Oct 26 09:58:27 UTC 2024 - 91.3K bytes - Viewed (0) -
api/go1.txt
pkg syscall (linux-386), func Fchown(int, int, int) error pkg syscall (linux-386), func Fchownat(int, string, int, int, int) error pkg syscall (linux-386), func Fdatasync(int) error pkg syscall (linux-386), func Flock(int, int) error pkg syscall (linux-386), func ForkExec(string, []string, *ProcAttr) (int, error) pkg syscall (linux-386), func Fstat(int, *Stat_t) error
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0) -
api/go1.2.txt
pkg syscall (linux-arm-cgo), func Fchown(int, int, int) error pkg syscall (linux-arm-cgo), func Fchownat(int, string, int, int, int) error pkg syscall (linux-arm-cgo), func Fdatasync(int) error pkg syscall (linux-arm-cgo), func Flock(int, int) error pkg syscall (linux-arm-cgo), func ForkExec(string, []string, *ProcAttr) (int, error) pkg syscall (linux-arm-cgo), func Fstat(int, *Stat_t) error
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Oct 18 04:36:59 UTC 2013 - 1.9M bytes - Viewed (0)