vhost_user_backend: Rename start() to start_server()

The point being to identify clearly that we're running the backend as a
server. This anticipates the addition of a new function for running the
backend as a client.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2021-05-04 19:06:41 +02:00
parent b5c6b04b36
commit 904aea76ab
3 changed files with 3 additions and 3 deletions

View File

@ -157,7 +157,7 @@ impl<S: VhostUserBackend> VhostUserDaemon<S> {
/// all requests coming through this socket. This runs in an infinite loop /// all requests coming through this socket. This runs in an infinite loop
/// that should be terminating once the other end of the socket (the VMM) /// that should be terminating once the other end of the socket (the VMM)
/// disconnects. /// disconnects.
pub fn start(&mut self, listener: Listener) -> Result<()> { pub fn start_server(&mut self, listener: Listener) -> Result<()> {
let mut slave_listener = SlaveListener::new(listener, self.handler.clone()) let mut slave_listener = SlaveListener::new(listener, self.handler.clone())
.map_err(Error::CreateSlaveListener)?; .map_err(Error::CreateSlaveListener)?;
let mut slave_handler = slave_listener let mut slave_handler = slave_listener

View File

@ -507,7 +507,7 @@ pub fn start_block_backend(backend_command: &str) {
debug!("blk_daemon is created!\n"); debug!("blk_daemon is created!\n");
if let Err(e) = blk_daemon.start(listener) { if let Err(e) = blk_daemon.start_server(listener) {
error!( error!(
"Failed to start daemon for vhost-user-block with error: {:?}\n", "Failed to start daemon for vhost-user-block with error: {:?}\n",
e e

View File

@ -372,7 +372,7 @@ pub fn start_net_backend(backend_command: &str) {
.set_vring_worker(Some(vring_workers.remove(0))); .set_vring_worker(Some(vring_workers.remove(0)));
} }
if let Err(e) = net_daemon.start(listener) { if let Err(e) = net_daemon.start_server(listener) {
error!( error!(
"failed to start daemon for vhost-user-net with error: {:?}", "failed to start daemon for vhost-user-net with error: {:?}",
e e