Lines Matching refs:u64
39 typedef unsigned long u64; typedef
48 static u64 get_free_space(const char * const path) { in get_free_space()
56 return (u64)s.f_bsize * (u64)s.f_bfree; in get_free_space()
60 static u64 get_random_num(const u64 start, const u64 end) { in get_random_num()
65 return start + (((u64)random() << 31) | (u64)random()) % (end - start); in get_random_num()
73 static bool create_unique_file(const char * const dir_path, const u64 size, in create_unique_file()
74 const u64 id, char * const base, in create_unique_file()
75 const u64 base_length) { in create_unique_file()
76 u64 length = 0; in create_unique_file()
139 static bool puncture_fs (const char * const path, const u64 total_size, in puncture_fs()
140 const u64 hole_size, const u64 total_hole_size) { in puncture_fs()
141 u64 increments = (hole_size * total_size) / total_hole_size; in puncture_fs()
142 u64 hole_max; in puncture_fs()
143 u64 starting_max = 0; in puncture_fs()
144 u64 ending_max = increments; in puncture_fs()
147 u64 file_id = 1; in puncture_fs()
149 u64 i = 0; in puncture_fs()
208 u64 total_size = 0; in main()
209 u64 hole_size = 0; in main()
210 u64 total_hole_size = 0; in main()