Lines Matching refs:n_file

82     int n_file;  member
95 string_repr << "\t.n_file = " << n_file << "\n"; in to_string()
106 n_file = 0; in reset()
134 ostr << "\t-n N_FILES\t: Number of files to create/delete etc. (default " << command.n_file in usage()
149 bool delete_files(const std::string& dir, int n_file, const std::string& basename) { in delete_files() argument
159 for (int i = 0; i < n_file; i++) { in delete_files()
169 bool create_files(const std::string& dir, int n_file, const std::string& basename) { in create_files() argument
179 for (int i = 0; i < n_file; i++) { in create_files()
189 delete_files(dir, n_file, basename); in create_files()
194 bool move_files(const std::string& from_dir, const std::string& to_dir, int n_file, in move_files() argument
213 for (int i = 0; i < n_file; i++) { in move_files()
226 bool hardlink_files(const std::string& from_dir, const std::string& to_dir, int n_file, in hardlink_files() argument
245 for (int i = 0; i < n_file; i++) { in hardlink_files()
258 bool symlink_files(std::string from_dir, const std::string& to_dir, int n_file, in symlink_files() argument
270 for (int i = 0; i < n_file; i++) { in symlink_files()
305 if (create_files(command.from_dir, command.n_file, command.from_basename)) in create_workload()
308 delete_files(command.from_dir, command.n_file, command.from_basename); in create_workload()
312 if (!create_files(command.from_dir, command.n_file, command.from_basename)) return; in delete_workload()
316 if (delete_files(command.from_dir, command.n_file, command.from_basename)) in delete_workload()
321 if (!create_files(command.from_dir, command.n_file, command.from_basename)) return; in move_workload()
325 if (move_files(command.from_dir, command.to_dir, command.n_file, command.from_basename, in move_workload()
329 delete_files(command.to_dir, command.n_file, command.to_basename); in move_workload()
333 if (!create_files(command.from_dir, command.n_file, command.from_basename)) return; in hardlink_workload()
337 if (hardlink_files(command.from_dir, command.to_dir, command.n_file, command.from_basename, in hardlink_workload()
341 delete_files(command.from_dir, command.n_file, command.from_basename); in hardlink_workload()
342 delete_files(command.to_dir, command.n_file, command.to_basename); in hardlink_workload()
346 if (!create_files(command.from_dir, command.n_file, command.from_basename)) return; in symlink_workload()
350 if (symlink_files(command.from_dir, command.to_dir, command.n_file, command.from_basename, in symlink_workload()
354 delete_files(command.to_dir, command.n_file, command.to_basename); in symlink_workload()
355 delete_files(command.from_dir, command.n_file, command.from_basename); in symlink_workload()
359 if (!create_files(command.from_dir, command.n_file, command.from_basename)) return; in readdir_workload()
365 delete_files(command.from_dir, command.n_file, command.from_basename); in readdir_workload()
407 command.n_file = std::stoi(optarg); in main()