|
4 | 4 | "fmt"
|
5 | 5 | "net"
|
6 | 6 |
|
7 |
| - "github.com/linuxkit/virtsock/pkg/hvsock" |
8 | 7 | "github.com/sirupsen/logrus"
|
9 | 8 | )
|
10 | 9 |
|
@@ -59,24 +58,6 @@ func StartShares(mounts []Mount9p) (servers []*Server, defErr error) {
|
59 | 58 | // StartVsockShares starts serving the given shares on vsocks instead of TCP sockets.
|
60 | 59 | // The vsocks used must already be defined before StartVsockShares is called.
|
61 | 60 | 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 |
82 | 63 | }
|
0 commit comments