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