Lines Matching refs:len
120 len: usize, in read_at()
124 if buf.len() < len { in read_at()
135 let start = inode.data.len().min(offset); in read_at()
136 let end = inode.data.len().min(offset + len); in read_at()
139 if buf.len() < (end - start) { in read_at()
145 buf[0..src.len()].copy_from_slice(src); in read_at()
146 return Ok(src.len()); in read_at()
152 len: usize, in write_at()
156 if buf.len() < len { in write_at()
171 if offset + len > data.len() { in write_at()
172 data.resize(offset + len, 0); in write_at()
175 let target = &mut data[offset..offset + len]; in write_at()
176 target.copy_from_slice(&buf[0..len]); in write_at()
177 return Ok(len); in write_at()
203 metadata.size = inode.data.len() as i64; in metadata()
220 fn resize(&self, len: usize) -> Result<(), SystemError> { in resize()
223 inode.data.resize(len, 0); in resize()
418 match key.len() { in get_entry_name()
421 …={key_len}>1, current inode_id={inode_id}, to find={to_find}", key_len=key.len(), inode_id = inode… in get_entry_name()