Merge pull request #3331 from dubek/mount-remove-var

agent: mount: Remove unneeded mount_point local variable
This commit is contained in:
Peng Tao 2021-12-23 11:53:14 +08:00 committed by GitHub
commit 8b6fbf9108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -449,18 +449,17 @@ fn mount_storage(logger: &Logger, storage: &Storage) -> Result<()> {
let (flags, options) = parse_mount_flags_and_options(options_vec);
let source = Path::new(&storage.source);
let mount_point = Path::new(&storage.mount_point);
info!(logger, "mounting storage";
"mount-source" => source.display(),
"mount-destination" => mount_point.display(),
"mount-destination" => mount_path.display(),
"mount-fstype" => storage.fstype.as_str(),
"mount-options" => options.as_str(),
);
baremount(
source,
mount_point,
mount_path,
storage.fstype.as_str(),
flags,
options.as_str(),