Lines Matching refs:metadata
51 metadata: Metadata, field
83 metadata: Metadata { in new()
131 if inode.metadata.file_type == FileType::Dir { in read_at()
164 if inode.metadata.file_type == FileType::Dir { in write_at()
185 if inode.metadata.file_type == FileType::Dir { in poll()
200 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() method
202 let mut metadata = inode.metadata.clone(); in metadata() localVariable
203 metadata.size = inode.data.len() as i64; in metadata()
205 return Ok(metadata); in metadata()
208 fn set_metadata(&self, metadata: &Metadata) -> Result<(), SystemError> { in set_metadata()
210 inode.metadata.atime = metadata.atime; in set_metadata()
211 inode.metadata.mtime = metadata.mtime; in set_metadata()
212 inode.metadata.ctime = metadata.ctime; in set_metadata()
213 inode.metadata.mode = metadata.mode; in set_metadata()
214 inode.metadata.uid = metadata.uid; in set_metadata()
215 inode.metadata.gid = metadata.gid; in set_metadata()
222 if inode.metadata.file_type == FileType::File { in resize()
240 if inode.metadata.file_type != FileType::Dir { in create_with_data()
254 metadata: Metadata { in create_with_data()
290 if inode.metadata.file_type != FileType::Dir { in link()
295 if other_locked.metadata.file_type == FileType::Dir { in link()
309 other_locked.metadata.nlinks += 1; in link()
316 if inode.metadata.file_type != FileType::Dir { in unlink()
326 if to_delete.0.lock().metadata.file_type == FileType::Dir { in unlink()
330 to_delete.0.lock().metadata.nlinks -= 1; in unlink()
339 if inode.metadata.file_type != FileType::Dir { in rmdir()
344 if to_delete.0.lock().metadata.file_type != FileType::Dir { in rmdir()
348 to_delete.0.lock().metadata.nlinks -= 1; in rmdir()
376 if inode.metadata.file_type != FileType::Dir { in find()
397 if inode.metadata.file_type != FileType::Dir { in get_entry_name()
414 .filter(|k| inode.children.get(*k).unwrap().0.lock().metadata.inode_id == ino) in get_entry_name()
421 …_id={inode_id}, to find={to_find}", key_len=key.len(), inode_id = inode.metadata.inode_id, to_find… in get_entry_name()
428 let info = self.metadata()?; in list()