Lines Matching refs:inode
46 let (inode, path) = user_path_at(&ProcessManager::current_pcb(), dirfd, path)?; in do_faccessat()
49 let _inode = inode.lookup_follow_symlink(path.as_str(), VFS_MAX_FOLLOW_SYMLINK_TIMES)?; in do_faccessat()
59 let (inode, path) = user_path_at(&ProcessManager::current_pcb(), dirfd, path)?; in do_fchmodat()
62 let _inode = inode.lookup_follow_symlink(path.as_str(), VFS_MAX_FOLLOW_SYMLINK_TIMES)?; in do_fchmodat()
83 let (inode, path) = user_path_at(&ProcessManager::current_pcb(), dirfd, path)?; in do_fchownat()
86 let inode = if follow_symlink { in do_fchownat() localVariable
87 inode.lookup_follow_symlink2(path.as_str(), VFS_MAX_FOLLOW_SYMLINK_TIMES, false) in do_fchownat()
89 inode.lookup(path.as_str()) in do_fchownat()
92 if inode.is_err() { in do_fchownat()
93 let errno = inode.clone().unwrap_err(); in do_fchownat()
100 let inode = inode.unwrap(); in do_fchownat() localVariable
102 return chown_common(inode, uid, gid); in do_fchownat()
105 fn chown_common(inode: Arc<dyn IndexNode>, uid: usize, gid: usize) -> Result<usize, SystemError> { in chown_common()
106 let mut meta = inode.metadata()?; in chown_common()
134 inode.set_metadata(&meta)?; in chown_common()
143 let inode = fd_table.get_file_by_fd(fd).unwrap().inode(); in ksys_fchown() localVariable
145 let result = chown_common(inode, uid, gid); in ksys_fchown()
173 let inode: Result<Arc<dyn IndexNode>, SystemError> = inode_begin.lookup_follow_symlink( in do_sys_openat2() localVariable
182 let inode: Arc<dyn IndexNode> = match inode { in do_sys_openat2() localVariable
183 Ok(inode) => inode, in do_sys_openat2()
195 let inode: Arc<dyn IndexNode> = parent_inode.create( in do_sys_openat2() localVariable
200 inode in do_sys_openat2()
208 let file_type: FileType = inode.metadata()?.file_type; in do_sys_openat2()
216 let file: File = File::new(inode, how.o_flags)?; in do_sys_openat2()
255 let inode = match pathname { localVariable
259 let inode = if flags.contains(UtimensFlags::AT_SYMLINK_NOFOLLOW) { localVariable
264 inode
272 file.inode()
276 let mut meta = inode.metadata()?;
289 inode.set_metadata(&meta).unwrap();
293 inode.set_metadata(&meta).unwrap();
305 let inode = inode_begin.lookup_follow_symlink(path.as_str(), VFS_MAX_FOLLOW_SYMLINK_TIMES)?; localVariable
306 let mut meta = inode.metadata()?;
311 inode.set_metadata(&meta)?;
316 inode.set_metadata(&meta)?;