- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 132 for sysctls (0.08 sec)
-
cmd/xl-storage_noatime_supported.go
package cmd import ( "os" "syscall" ) var ( // Disallow updating access times // Add non-block to avoid syscall to attempt to set epoll on files. readMode = os.O_RDONLY | 0x40000 | syscall.O_NONBLOCK // O_NOATIME // Write with data sync only used only for `xl.meta` writes writeMode = 0x1000 | syscall.O_NONBLOCK // O_DSYNC
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jul 23 16:36:24 UTC 2024 - 1.1K bytes - Viewed (0) -
internal/disk/stat_linux_32bit.go
if !ok { return "UNKNOWN" } return fsTypeString } // GetInfo returns total and free bytes available in a directory, e.g. `/`. func GetInfo(path string, _ bool) (info Info, err error) { s := syscall.Statfs_t{} err = syscall.Statfs(path, &s) if err != nil { return Info{}, err } reservedBlocks := s.Bfree - s.Bavail info = Info{ Total: uint64(s.Frsize) * (s.Blocks - reservedBlocks),
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 2.6K bytes - Viewed (0) -
cni/pkg/nodeagent/podcgroupns_linux.go
// See the License for the specific language governing permissions and // limitations under the License. package nodeagent import ( "fmt" "io/fs" "syscall" ) func GetInode(fi fs.FileInfo) (uint64, error) { if stat, ok := fi.Sys().(*syscall.Stat_t); ok { return stat.Ino, nil } return 0, fmt.Errorf("unable to get inode")
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 814 bytes - Viewed (0) -
internal/disk/fdatasync_linux.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" "syscall" "golang.org/x/sys/unix" ) // Fdatasync - fdatasync() is similar to fsync(), but does not flush modified metadata // unless that metadata is needed in order to allow a subsequent data retrieval
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Sep 29 23:40:28 UTC 2021 - 1.8K bytes - Viewed (0) -
api/go1.10.txt
pkg strings, type Builder struct pkg syscall (freebsd-386), const SYS_UTIMENSAT = 547 pkg syscall (freebsd-386), const SYS_UTIMENSAT ideal-int pkg syscall (freebsd-386-cgo), const SYS_UTIMENSAT = 547 pkg syscall (freebsd-386-cgo), const SYS_UTIMENSAT ideal-int pkg syscall (freebsd-amd64), const SYS_UTIMENSAT = 547 pkg syscall (freebsd-amd64), const SYS_UTIMENSAT ideal-int pkg syscall (freebsd-amd64-cgo), const SYS_UTIMENSAT = 547
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Feb 06 05:00:01 UTC 2018 - 30.1K bytes - Viewed (0) -
cmd/os-dirent_ino.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. //go:build (linux || darwin) && !appengine // +build linux darwin // +build !appengine package cmd import "syscall" func direntInode(dirent *syscall.Dirent) uint64 { return dirent.Ino
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 19 01:35:22 UTC 2021 - 953 bytes - Viewed (0) -
src/cmd/api/api_test.go
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jan 04 17:31:12 UTC 2024 - 7.1K bytes - Viewed (0) -
cmd/os-dirent_namelen_linux.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "bytes" "fmt" "syscall" "unsafe" ) func direntNamlen(dirent *syscall.Dirent) (uint64, error) { const fixedHdr = uint16(unsafe.Offsetof(syscall.Dirent{}.Name)) nameBuf := (*[unsafe.Sizeof(dirent.Name)]byte)(unsafe.Pointer(&dirent.Name[0])) const nameBufLen = uint16(len(nameBuf))
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 19 01:35:22 UTC 2021 - 1.5K bytes - Viewed (0) -
internal/disk/stat_linux.go
"errors" "fmt" "io" "os" "path/filepath" "strconv" "strings" "syscall" "github.com/prometheus/procfs/blockdevice" "golang.org/x/sys/unix" ) // GetInfo returns total and free bytes available in a directory, e.g. `/`. func GetInfo(path string, firstTime bool) (info Info, err error) { s := syscall.Statfs_t{} err = syscall.Statfs(path, &s) if err != nil { return Info{}, err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 4.8K bytes - Viewed (0) -
internal/disk/type_windows.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 ( "path/filepath" "syscall" "unsafe" ) // GetVolumeInformation provides windows drive volume information. var GetVolumeInformation = kernel32.NewProc("GetVolumeInformationW")
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 2.2K bytes - Viewed (0)