diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-15 03:30:51 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-15 04:00:55 +0900 |
| commit | 9ed3ba85eaba4bc4bd12b290dc4daf00ffe159dc (patch) | |
| tree | 03301910c40c59eb94029f1a93b1e74e21b5226a /hst/fs.go | |
| parent | 4433c993fae86634b813ee212803a84aaeedd374 (diff) | |
hst/fs: implement overlay fstype
This finally exposes overlay mounts in the high level hakurei API.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/fs.go')
| -rw-r--r-- | hst/fs.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -81,6 +81,12 @@ func (f *FilesystemConfigJSON) MarshalJSON() ([]byte, error) { *FSEphemeral }{fsType{FilesystemEphemeral}, cv} + case *FSOverlay: + v = &struct { + fsType + *FSOverlay + }{fsType{FilesystemOverlay}, cv} + default: return nil, FSImplError{f.FilesystemConfig} } @@ -103,6 +109,9 @@ func (f *FilesystemConfigJSON) UnmarshalJSON(data []byte) error { case FilesystemEphemeral: *f = FilesystemConfigJSON{new(FSEphemeral)} + case FilesystemOverlay: + *f = FilesystemConfigJSON{new(FSOverlay)} + default: return FSTypeError(t.Type) } |
