[pbs-devel] [PATCH proxmox-backup 01/23] tools: add disks utility functions
    Lukas Wagner 
    l.wagner at proxmox.com
       
    Tue Sep 19 15:37:47 CEST 2023
    
    
  
On 9/15/23 08:54, Hannes Laimer wrote:
> +/// Mount a disk by its UUID and the mount point.
> +pub fn mount_by_uuid(uuid: &str, mount_point: &Path) -> Result<(), Error> {
> +    let mut command = std::process::Command::new("mount");
> +    command.args([&format!("UUID={}", uuid)]);
nit: you can use `format!("UUID={uuid}")` here
-- 
- Lukas
    
    
More information about the pbs-devel
mailing list