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

Commit

Permalink
clh: virtiofs: Add no_posix_lock option
Browse files Browse the repository at this point in the history
This will allow lock operations, needed by programs like
`apt-get upgrade`.

Fixes: #2594

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
  • Loading branch information
jcvenegas committed Apr 8, 2020
1 parent 02d8ec0 commit 432f9be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions virtcontainers/virtiofsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,11 @@ func (v *virtiofsd) args() ([]string, error) {

args := []string{
"-f",
"-o", "vhost_user_socket=" + v.socketPath,
"-o", "cache=" + v.cache,
"-o", "no_posix_lock",
"-o", "source=" + v.sourcePath,
"-o", "cache=" + v.cache}
"-o", "vhost_user_socket=" + v.socketPath,
}

if len(v.extraArgs) != 0 {
args = append(args, v.extraArgs...)
Expand Down

0 comments on commit 432f9be

Please sign in to comment.