pub fn sys_truncate(&self, path: UserInPtr<u8>, len: usize) -> SysResult {
        let path = path.read_cstring()?;
        info!("truncate: path={:?}, len={}", path, len);
        let proc = self.linux_process();
        proc.lookup_inode(&path)?.resize(len)?;
        Ok(0)
    }
/// cause the regular file named by path to be truncated to a size of precisely length bytes.
cause the regular file named by path to be truncated to a size of precisely length bytes.
cause the regular file named by path to be truncated to a size of precisely length bytes .
pub fn sys_truncate(&self, path: UserInPtr<u8>, len: usize) -> SysResult {
        let path = path.read_cstring()?;
        info!("truncate: path={:?}, len={}", path, len);
        let proc = self.linux_process();
        proc.lookup_inode(&path)?.resize(len)?;
        Ok(0)
    }
pub fn sys_truncate ( & self , path : UserInPtr < u8 > , len : usize ) -> SysResult { let path = path . read_cstring ( ) ? ; info ! ( " " path len ) ; let proc = self . linux_process ( ) ; proc . lookup_inode ( & path ) ? . resize ( len ) ? ; Ok ( 0 ) }
cause the regular file named by path to be truncated to a size of precisely length bytes.
cause the regular file named by path to be truncated to a size of precisely length bytes .
&self
path
UserInPtr<u8>
len
usize
&self
path
UserInPtr<u8>
len
usize