Skip to content

Commit d9dc86b

Browse files
committed
9p: temporarily removed StartVsockShares until vsock support is added into 9pfs client
1 parent e6c485d commit d9dc86b

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

pkg/fileserver/fs9p/shares.go

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"fmt"
55
"net"
66

7-
"github.com/linuxkit/virtsock/pkg/hvsock"
87
"github.com/sirupsen/logrus"
98
)
109

@@ -59,24 +58,6 @@ func StartShares(mounts []Mount9p) (servers []*Server, defErr error) {
5958
// StartVsockShares starts serving the given shares on vsocks instead of TCP sockets.
6059
// The vsocks used must already be defined before StartVsockShares is called.
6160
func StartVsockShares(mounts []VsockMount9p) ([]*Server, error) {
62-
mounts9p := []Mount9p{}
63-
for _, mount := range mounts {
64-
service, err := hvsock.GUIDFromString(mount.VsockGUID)
65-
if err != nil {
66-
return nil, fmt.Errorf("parsing vsock guid %s: %w", mount.VsockGUID, err)
67-
}
68-
69-
listener, err := hvsock.Listen(hvsock.Addr{
70-
VMID: hvsock.GUIDWildcard,
71-
ServiceID: service,
72-
})
73-
if err != nil {
74-
return nil, fmt.Errorf("retrieving listener for vsock %s: %w", mount.VsockGUID, err)
75-
}
76-
77-
logrus.Debugf("Going to serve directory %s on vsock %s", mount.Path, mount.VsockGUID)
78-
mounts9p = append(mounts9p, Mount9p{Path: mount.Path, Listener: listener})
79-
}
80-
81-
return StartShares(mounts9p)
61+
// temporarily removed until vsock support is added into 9pfs client
62+
return nil, nil
8263
}

0 commit comments

Comments
 (0)