Lines Matching refs:metadata

98     metadata: Metadata,  field
243 metadata: Metadata { in new()
327 if let FileType::Dir = inode.metadata.file_type { in open()
340 inode.metadata.size = file_size; in open()
348 if let FileType::Dir = guard.metadata.file_type { in close()
377 if inode.metadata.file_type == FileType::Dir { in read_at()
425 if inode.metadata.file_type == FileType::Dir { in poll()
442 fn metadata(&self) -> Result<Metadata, i32> { in metadata() method
444 let metadata = inode.metadata.clone(); in metadata() localVariable
446 return Ok(metadata); in metadata()
449 fn set_metadata(&self, metadata: &Metadata) -> Result<(), i32> { in set_metadata()
451 inode.metadata.atime = metadata.atime; in set_metadata()
452 inode.metadata.mtime = metadata.mtime; in set_metadata()
453 inode.metadata.ctime = metadata.ctime; in set_metadata()
454 inode.metadata.mode = metadata.mode; in set_metadata()
455 inode.metadata.uid = metadata.uid; in set_metadata()
456 inode.metadata.gid = metadata.gid; in set_metadata()
463 if inode.metadata.file_type == FileType::File { in resize()
481 if inode.metadata.file_type != FileType::Dir { in create_with_data()
496 metadata: Metadata { in create_with_data()
536 if inode.metadata.file_type != FileType::Dir { in link()
541 if other_locked.metadata.file_type == FileType::Dir { in link()
555 other_locked.metadata.nlinks += 1; in link()
562 if inode.metadata.file_type != FileType::Dir { in unlink()
573 to_delete.0.lock().metadata.nlinks -= 1; in unlink()
591 if inode.metadata.file_type != FileType::Dir { in find()
612 if inode.metadata.file_type != FileType::Dir { in get_entry_name()
629 .filter(|k| inode.children.get(*k).unwrap().0.lock().metadata.inode_id == ino) in get_entry_name()
636 …_id={inode_id}, to find={to_find}", key_len=key.len(), inode_id = inode.metadata.inode_id, to_find… in get_entry_name()
643 let info = self.metadata()?; in list()