pub fn scan(&self) -> LvmResult<()> {
        unsafe {
            let retcode = lvm_scan(self.handle);
            if retcode < 0 {
                let err = self.get_error()?;
                return Err(LvmError::new((err.0, err.1)));
            }
        }
        Ok(())
    }
/// Scan all devices on the system for VGs and LVM metadata
Scan all devices on the system for VGs and LVM metadata
Scan all devices on the system for VGs and LVM metadata
pub fn scan(&self) -> LvmResult<()> {
        unsafe {
            let retcode = lvm_scan(self.handle);
            if retcode < 0 {
                let err = self.get_error()?;
                return Err(LvmError::new((err.0, err.1)));
            }
        }
        Ok(())
    }
pub fn scan ( & self ) -> LvmResult < ( ) > { unsafe { let retcode = lvm_scan ( self . handle ) ; if retcode < 0 { let err = self . get_error ( ) ? ; return Err ( LvmError :: new ( ( err . 0 , err . 1 ) ) ) ; } } Ok ( ( ) ) }
Scan all devices on the system for VGs and LVM metadata
Scan all devices on the system for VGs and LVM metadata
&self
&self