Lines Matching full:bs
33 int tst_fill_fd(int fd, char pattern, size_t bs, size_t bcount) in tst_fill_fd() argument
39 buf = malloc(bs); in tst_fill_fd()
43 for (i = 0; i < bs; i++) in tst_fill_fd()
48 if (write(fd, buf, bs) != (ssize_t)bs) { in tst_fill_fd()
59 int tst_prealloc_size_fd(int fd, size_t bs, size_t bcount) in tst_prealloc_size_fd() argument
64 ret = fallocate(fd, 0, 0, bs * bcount); in tst_prealloc_size_fd()
70 ret = tst_fill_fd(fd, 0, bs, bcount); in tst_prealloc_size_fd()
75 int tst_fill_file(const char *path, char pattern, size_t bs, size_t bcount) in tst_fill_file() argument
83 if (tst_fill_fd(fd, pattern, bs, bcount)) { in tst_fill_file()
98 int tst_prealloc_file(const char *path, size_t bs, size_t bcount) in tst_prealloc_file() argument
106 if (tst_prealloc_size_fd(fd, bs, bcount)) { in tst_prealloc_file()