From 26cafe3e8066d9ae65230ff0aa17a5533cfa92f8 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 25 Aug 2025 21:31:45 +0900 Subject: hst/fs: implement link fstype Symlinks do not require special treatment, and doing this allows placing links in order. Signed-off-by: Ophestra --- hst/fs.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'hst/fs.go') diff --git a/hst/fs.go b/hst/fs.go index a2a75a78..1d330951 100644 --- a/hst/fs.go +++ b/hst/fs.go @@ -95,6 +95,12 @@ func (f *FilesystemConfigJSON) MarshalJSON() ([]byte, error) { *FSOverlay }{fsType{FilesystemOverlay}, cv} + case *FSLink: + v = &struct { + fsType + *FSLink + }{fsType{FilesystemLink}, cv} + default: return nil, FSImplError{f.FilesystemConfig} } @@ -120,6 +126,9 @@ func (f *FilesystemConfigJSON) UnmarshalJSON(data []byte) error { case FilesystemOverlay: *f = FilesystemConfigJSON{new(FSOverlay)} + case FilesystemLink: + *f = FilesystemConfigJSON{new(FSLink)} + default: return FSTypeError(t.Type) } -- cgit v1.3.1