Searched refs:to_dir_fd (Results 1 – 1 of 1) sorted by relevance
/system/vold/bench/inodeop_bench/ |
D | inodeop_bench.cpp | 203 int to_dir_fd = open(to_dir.c_str(), OPEN_DIR_FLAGS); in move_files() local 204 if (to_dir_fd == -1) { in move_files() 217 (renameat(from_dir_fd, from_filename.c_str(), to_dir_fd, to_filename.c_str()) == 0); in move_files() 235 int to_dir_fd = open(to_dir.c_str(), OPEN_DIR_FLAGS); in hardlink_files() local 236 if (to_dir_fd == -1) { in hardlink_files() 249 (linkat(from_dir_fd, from_filename.c_str(), to_dir_fd, to_filename.c_str(), 0) == 0); in hardlink_files() 254 close(to_dir_fd); in hardlink_files() 261 int to_dir_fd = open(to_dir.c_str(), OPEN_DIR_FLAGS); in symlink_files() local 262 if (to_dir_fd == -1) { in symlink_files() 273 ret = ret && (symlinkat(from_filepath.c_str(), to_dir_fd, to_filename.c_str()) == 0); in symlink_files() [all …]
|