mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
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
23 lines
458 B
Python
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",
|
|
)
|