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 <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
Jose Carlos Venegas Munoz 2020-04-07 15:45:58 +00:00
parent 02d8ec0bf8
commit 432f9bea6e

View File

@ -126,9 +126,11 @@ func (v *virtiofsd) args() ([]string, error) {
args := []string{ args := []string{
"-f", "-f",
"-o", "vhost_user_socket=" + v.socketPath, "-o", "cache=" + v.cache,
"-o", "no_posix_lock",
"-o", "source=" + v.sourcePath, "-o", "source=" + v.sourcePath,
"-o", "cache=" + v.cache} "-o", "vhost_user_socket=" + v.socketPath,
}
if len(v.extraArgs) != 0 { if len(v.extraArgs) != 0 {
args = append(args, v.extraArgs...) args = append(args, v.extraArgs...)