diff --git a/docs/fs.md b/docs/fs.md index fc35ec9fd..86b3c63c8 100644 --- a/docs/fs.md +++ b/docs/fs.md @@ -26,7 +26,7 @@ _Run virtiofsd_ ```bash ./virtiofsd \ -d \ - -o vhost_user_socket=/tmp/virtiofs \ + --socket-path=/tmp/virtiofs \ -o source=/tmp/shared_dir \ -o cache=none ``` diff --git a/src/main.rs b/src/main.rs index 682e8efb4..3a943cf86 100755 --- a/src/main.rs +++ b/src/main.rs @@ -1718,10 +1718,7 @@ mod tests { // Start the daemon let child = Command::new(virtiofsd_path.as_str()) - .args(&[ - "-o", - format!("vhost_user_socket={}", virtiofsd_socket_path).as_str(), - ]) + .args(&[format!("--socket-path={}", virtiofsd_socket_path).as_str()]) .args(&["-o", format!("source={}", shared_dir).as_str()]) .args(&["-o", format!("cache={}", cache).as_str()]) .spawn()