From 432f9bea6e8b264256f6a714df9d5af80a167375 Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Tue, 7 Apr 2020 15:45:58 +0000 Subject: [PATCH] clh: virtiofs: Add no_posix_lock option This will allow lock operations, needed by programs like `apt-get upgrade`. Fixes: #2594 Signed-off-by: Jose Carlos Venegas Munoz --- virtcontainers/virtiofsd.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/virtcontainers/virtiofsd.go b/virtcontainers/virtiofsd.go index 9b87c6bf9a..d15b5ca15a 100644 --- a/virtcontainers/virtiofsd.go +++ b/virtcontainers/virtiofsd.go @@ -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...)