Lines Matching refs:bs
93 long lb, i, fd, ofd, bs, block, numblocks; in copy_sparse_file() local
115 if (ioctl(fd, FIGETBSZ, &bs) < 0) { in copy_sparse_file()
120 if (bs < 0) { in copy_sparse_file()
121 printf("%s: Invalid block size: %ld\n", src, bs); in copy_sparse_file()
125 printf("Blocksize of file %s is %ld\n", src, bs); in copy_sparse_file()
126 numblocks = (fileinfo.st_size + (bs-1)) / bs; in copy_sparse_file()
132 bs = 1024; in copy_sparse_file()
141 buf = malloc(bs); in copy_sparse_file()
152 should_be = ((off64_t) lb) * bs; in copy_sparse_file()
167 got = full_read(fd, buf, bs); in copy_sparse_file()
172 if (got == bs) { in copy_sparse_file()
173 for (i=0; i < bs; i++) in copy_sparse_file()
176 if (i == bs) { in copy_sparse_file()
177 lseek(ofd, bs, SEEK_CUR); in copy_sparse_file()
178 offset += bs; in copy_sparse_file()