Files
Ryan El KochtaandgVisor bot 93944659b5 tmpfs: support percentage size + update /proc/self/mounts to match Linux format
Adds support for size=n% as a fraction of physical RAM in tmpfs.

Linux always prints size= in kilobytes in /proc/self/mounts, so I've also
refactored tmpfs's MountOptions() implementation to match (and print opts
in the right order).

PiperOrigin-RevId: 914993536
2026-05-13 12:25:36 -07:00

23 lines
458 B
Python

load("//tools:defs.bzl", "go_library", "go_test")
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
go_library(
name = "hostos",
srcs = ["hostos.go"],
visibility = ["//:sandbox"],
deps = [
"@org_golang_x_mod//semver:go_default_library",
"@org_golang_x_sys//unix:go_default_library",
],
)
go_test(
name = "hostos_test",
srcs = ["hostos_test.go"],
library = ":hostos",
)