You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: fsfile.rs
    path of file: ./repos/core-os-riscv/kernel/src/file
    
    the code of the file until where you have to start completion: // Copyright (c) 2020 Alex Chi
//
// This software 
    
    pub fn open(path: &str, mode: usize) -> Self {
        let virtio = VIRTIO();
        let (offset, sz) = match Self::get_file_info(virtio, path) {
            Some(x) => x,
            None => { panic!("{} not found", path); }
        };
        Self {
            offset,
            sz,
            rw_offset: Mutex::new((0, 0), "file rw offset"),
            readable: true,
            writable: true,
        }
    }