carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1//go:build !linux
2
3package host
4
5import (
6 "time"
7
8 "github.com/carlosframework/platform/internal/moves"
9)
10
11// measureDiskSize is how much T11's disk measurement writes and reads back.
12const measureDiskSize = 64 << 20
13
14// measureDiskRate has no O_DIRECT off linux (F12): it writes, fsyncs and
15// reads back.
16func measureDiskRate(dir string, now func() time.Time) (moves.MeasuredRate, error) {
17 return measureDiskSynced(dir, now)
18}
19