pub fn import(
        &mut self,
        r: RafsIoReader,
        prefetch_files: Option<Vec<PathBuf>>,
    ) -> RafsResult<()> {
        if self.initialized {
            return Err(RafsError::AlreadyMounted);
        }
        if self.fs_prefetch {
            // Device should be ready before any prefetch.
            self.prefetch(r, prefetch_files)
        }
        self.initialized = true;

        Ok(())
    }
/// Import an rafs bootstrap to initialize the filesystem instance.
Import an rafs bootstrap to initialize the filesystem instance.
Import an rafs bootstrap to initialize the filesystem instance .
pub fn import(
        &mut self,
        r: RafsIoReader,
        prefetch_files: Option<Vec<PathBuf>>,
    ) -> RafsResult<()> {
        if self.initialized {
            return Err(RafsError::AlreadyMounted);
        }
        if self.fs_prefetch {
            // Device should be ready before any prefetch.
            self.prefetch(r, prefetch_files)
        }
        self.initialized = true;
        Ok(())
    }
pub fn import ( & mut self , r : RafsIoReader , prefetch_files : Option < Vec < PathBuf > > , ) -> RafsResult < ( ) > { if self . initialized { return Err ( RafsError :: AlreadyMounted ) ; } if self . fs_prefetch { // Device should be ready before any prefetch. self . prefetch ( r , prefetch_files ) } self . initialized = true ; Ok ( ( ) ) }
Import an rafs bootstrap to initialize the filesystem instance.
Import an rafs bootstrap to initialize the filesystem instance .
&mut self
r
RafsIoReader
prefetch_files
Option<Vec<PathBuf>>
&mut self
r
RafsIoReader
prefetch_files
Option<Vec<PathBuf>>