Lines Matching refs:fid
188 fn check_attr(server: &mut Server, fid: u32, md: &fs::Metadata) { in check_attr()
190 fid, in check_attr()
227 fn check_content(server: &mut Server, content: &[u8], fid: u32) { in check_content()
230 fid, in check_content()
243 fid: u32, in walk()
258 fid, in walk()
275 fid: u32, in open()
283 walk(server, dir, dir_fid, fid, wnames); in open()
285 let tlopen = Tlopen { fid, flags }; in open()
290 fn write<P: AsRef<Path>>(server: &mut Server, dir: P, name: &str, fid: u32, flags: u32) { in write()
305 fid, in write()
313 let tfsync = Tfsync { fid, datasync: 0 }; in write()
328 fid: u32, in create()
337 walk(server, dir, dir_fid, fid, Vec::new()); in create()
340 fid, in create()
352 fid: u32, field
363 fid: self.fid, in next()
387 fn readdir(server: &mut Server, fid: u32) -> Readdir { in readdir()
390 fid, in readdir()
481 fid: ROOT_FID, in setup()
531 let tclunk = Tclunk { fid: ROOT_FID }; in clunk()
571 let fid = next_fid; in tree_walk() localVariable
573 open(&mut server, &dir, dfid, "", fid, P9_DIRECTORY).expect("Failed to open directory"); in tree_walk()
574 for dirent in readdir(&mut server, fid) { in tree_walk()
602 let tclunk = Tclunk { fid }; in tree_walk()
614 let fid = ROOT_FID + 1; in create_existing_file() localVariable
619 fid, in create_existing_file()
660 let fid = ROOT_FID + 1; in set_attr_test() localVariable
665 fid, in set_attr_test()
670 fid, in set_attr_test()
805 let fid = dfid + 1; in huge_directory() localVariable
806 open(&mut server, &newdir, dfid, "", fid, P9_DIRECTORY).expect("Failed to open directory"); in huge_directory()
807 for f in readdir(&mut server, fid) { in huge_directory()
863 let fid = next_fid; in unlink_all() localVariable
873 walk(&mut server, &*test_dir, ROOT_FID, fid, wnames); in unlink_all()
874 dirs.push_back((fid, entry.path())); in unlink_all()
935 fn setlk_tlock(fid: u32, len: u64, start: u64, type_: i32) -> Tlock { in setlk_tlock()
937 fid, in setlk_tlock()
947 fn getlk_tgetlock(fid: u32, type_: i32) -> Tgetlock { in getlk_tgetlock()
949 fid, in getlk_tgetlock()
1106 let fid = ROOT_FID + 1; localVariable
1110 let rlopen = open(&mut server, &*test_dir, ROOT_FID, name, fid, $flags as u32)
1118 check_attr(&mut server, fid, &md);
1123 check_content(&mut server, &content, fid);
1128 write(&mut server, &test_dir, name, fid, $flags);
1131 let tclunk = Tclunk { fid };
1140 let fid = ROOT_FID + 1; localVariable
1144 let err = open(&mut server, &*test_dir, ROOT_FID, name, fid, $flags as u32)
1148 let tclunk = Tclunk { fid };
1245 let fid = ROOT_FID + 1; localVariable
1246 let rlcreate = create(&mut server, &*test_dir, ROOT_FID, fid, name, $flags, $mode)
1253 check_attr(&mut server, fid, &md);
1257 write(&mut server, &test_dir, name, fid, $flags);
1260 let tclunk = Tclunk { fid };
1274 let fid = ROOT_FID + 1; localVariable
1275 let err = create(&mut server, &*test_dir, ROOT_FID, fid, name, $flags, $mode)
1299 let fid = ROOT_FID + 1; in lcreate_set_len() localVariable
1304 fid, in lcreate_set_len()
1312 fid, in lcreate_set_len()
1328 let tclunk = Tclunk { fid }; in lcreate_set_len()
1337 let fid = ROOT_FID + 1; in readlink() localVariable
1342 fid, in readlink()
1346 let treadlink = Treadlink { fid }; in readlink()