Skip to content

Commit

Permalink
test: test
Browse files Browse the repository at this point in the history
Signed-off-by: Abhinandan Purkait <purkaitabhinandan@gmail.com>
  • Loading branch information
Abhinandan-Purkait committed Nov 11, 2024
1 parent acafd8e commit bf9177c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions control-plane/csi-driver/src/bin/node/mount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,11 @@ pub(crate) async fn filesystem_mount(
flags.insert(MountFlags::RDONLY);
}

let fs = FilesystemType::Manual(Box::leak(fstype.to_string().into_boxed_str()));
let _fstype = fstype.clone();
let _target = target.clone();
let _device = device.clone();
let blocking_task = runtime::spawn_blocking(move || {
let fs = FilesystemType::Manual(fstype.as_ref());
// I'm not certain if it's fine to pass "" so keep existing behaviour
let mntbuilder = if value.is_empty() {
Mount::builder()
Expand All @@ -180,7 +181,7 @@ pub(crate) async fn filesystem_mount(

debug!(
"Filesystem ({}) on device {} mounted onto target {} (options: {})",
fstype,
_fstype,
_device,
_target,
show(options)
Expand Down

0 comments on commit bf9177c

Please sign in to comment.