aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/fsbind.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-07 21:38:31 +0900
committerOphestra <cat@gensokyo.uk>2025-10-07 21:38:31 +0900
commit584ce3da685352847e5c6189e5050bd5cb0307e9 (patch)
tree4bd313118df607449569bbe23a910af501e9166b /hst/fsbind.go
parent5d18af00077ae6ba8ef686d1fd93d888f69681b2 (diff)
container/bits: move bind bits
This allows referring to the bits without importing container. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/fsbind.go')
-rw-r--r--hst/fsbind.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/hst/fsbind.go b/hst/fsbind.go
index 8b7b5fe8..f94e467b 100644
--- a/hst/fsbind.go
+++ b/hst/fsbind.go
@@ -4,7 +4,7 @@ import (
"encoding/gob"
"strings"
- "hakurei.app/container"
+ "hakurei.app/container/bits"
"hakurei.app/container/check"
"hakurei.app/container/fhs"
)
@@ -96,16 +96,16 @@ func (b *FSBind) Apply(z *ApplyState) {
}
var flags int
if b.Write {
- flags |= container.BindWritable
+ flags |= bits.BindWritable
}
if b.Device {
- flags |= container.BindDevice | container.BindWritable
+ flags |= bits.BindDevice | bits.BindWritable
}
if b.Ensure {
- flags |= container.BindEnsure
+ flags |= bits.BindEnsure
}
if b.Optional {
- flags |= container.BindOptional
+ flags |= bits.BindOptional
}
switch {