Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
clh: Fix shared directory path for virtiofsd
Browse files Browse the repository at this point in the history
The shared directory path changed recently as part of a backport:

4d0f3c5 vc: make host shared path readonly

The backport was missing update the new path to be used by virtiofsd in
the cloud-hypervisor driver.

Fixes: #2757

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
  • Loading branch information
jcvenegas committed Jun 10, 2020
1 parent 06e0be0 commit eb8bf66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtcontainers/clh.go
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ func (clh *cloudHypervisor) waitVirtiofsd(start time.Time, timeout int, ready ch

func (clh *cloudHypervisor) virtiofsdArgs(sockPath string) ([]string, error) {

sourcePath := filepath.Join(kataHostSharedDir(), clh.id)
sourcePath := filepath.Join(getSharePath(clh.id))
if _, err := os.Stat(sourcePath); os.IsNotExist(err) {
if err = os.MkdirAll(sourcePath, os.ModePerm); err != nil {
return nil, err
Expand Down

0 comments on commit eb8bf66

Please sign in to comment.