file-restore-daemon: disk: ignore "invalid fs" error

Mainly just causes log spam, we print a more useful error in the end if
all mounts fail anyway.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
Stefan Reiter 2021-05-17 14:31:35 +02:00 committed by Thomas Lamprecht
parent 7cb2ebba79
commit d34019e246

View File

@ -157,6 +157,7 @@ impl Filesystems {
info!("mounting '{}' succeeded, fstype: '{}'", source, fs); info!("mounting '{}' succeeded, fstype: '{}'", source, fs);
return Ok(()); return Ok(());
} }
Err(nix::Error::Sys(nix::errno::Errno::EINVAL)) => {}
Err(err) => { Err(err) => {
warn!("mount error on '{}' ({}) - {}", source, fs, err); warn!("mount error on '{}' ({}) - {}", source, fs, err);
} }