Searched refs:sparse_write (Results 1 - 6 of 6) sorted by relevance

/freebsd-current/usr.bin/mkimg/
H A Dmkimg.h85 #define sparse_write write macro
87 ssize_t sparse_write(int, const void *, size_t);
H A Dvmdk.c202 if (!error && sparse_write(fd, &hdr, VMDK_SECTOR_SIZE) < 0)
204 if (!error && sparse_write(fd, desc, desc_len) < 0)
206 if (!error && sparse_write(fd, gd, gdsz) < 0)
208 if (!error && sparse_write(fd, gt, gtsz) < 0)
210 if (!error && sparse_write(fd, rgd, gdsz) < 0)
212 if (!error && sparse_write(fd, gt, gtsz) < 0)
228 if (sparse_write(fd, buf, VMDK_SECTOR_SIZE) < 0)
H A Dvhd.c288 if (sparse_write(fd, &footer, sizeof(footer)) < 0)
300 if (sparse_write(fd, &header, sizeof(header)) < 0)
318 if (sparse_write(fd, bat, batsz) < 0) {
338 if (sparse_write(fd, bitmap, VHD_SECTOR_SIZE) < 0) {
356 if (sparse_write(fd, &footer, sizeof(footer)) < 0)
401 error = (sparse_write(fd, &footer, sizeof(footer)) < 0) ? errno : 0;
H A Dqcow.c204 if (sparse_write(fd, hdr, clstrsz) < 0) {
234 if (sparse_write(fd, l1tbl, clstrsz * clstr_l1tblsz) < 0) {
256 if (sparse_write(fd, rctbl, clstrsz * clstr_rctblsz) < 0) {
284 if (sparse_write(fd, l2tbl, clstrsz) < 0) {
303 if (sparse_write(fd, rcblk, clstrsz * clstr_rcblks) < 0) {
H A Dvhdx.c223 if (sparse_write(fd, data, data_size) < 0)
299 if (sparse_write(fd, region_table, SIZE_64KB) < 0) {
306 if (sparse_write(fd, region_table, SIZE_64KB) < 0) {
393 if (sparse_write(fd, metadata, SIZE_1MB) < 0) {
438 if (sparse_write(fd, bat, SIZE_1MB) < 0) {
455 if (sparse_write(fd, bat, SIZE_1MB) < 0) {
467 if (sparse_write(fd, bat, SIZE_1MB) < 0) {
H A Dmkimg.c323 sparse_write(int fd, const void *ptr, size_t sz) function
720 * sparse_write() fails if output is not seekable so fail early

Completed in 205 milliseconds