Searched refs:sparse (Results 1 - 25 of 34) sorted by relevance

12

/system/core/libsparse/
H A Dsparse_file.h20 #include <sparse/sparse.h>
H A Dsparse_err.c17 #include <sparse/sparse.h>
H A Doutput_file.h20 #include <sparse/sparse.h>
25 int gz, int sparse, int chunks, int crc);
27 void *priv, unsigned int block_size, int64_t len, int gz, int sparse,
H A Dimg2simg.c30 #include <sparse/sparse.h>
94 fprintf(stderr, "Failed to create sparse file\n");
107 fprintf(stderr, "Failed to write sparse file\n");
H A Dsimg2img.c17 #include <sparse/sparse.h>
69 fprintf(stderr, "Failed to read sparse file\n");
H A Dsimg2simg.c31 #include <sparse/sparse.h>
39 fprintf(stderr, "Usage: simg2simg <sparse image file> <sparse_image_file> <max_size>\n");
69 fprintf(stderr, "Failed to import sparse file\n");
81 fprintf(stderr, "Failed to allocate sparse file array\n");
106 fprintf(stderr, "Failed to write sparse file\n");
H A Dsparse.c20 #include <sparse/sparse.h>
161 int sparse_file_write(struct sparse_file *s, int fd, bool gz, bool sparse, argument
169 out = output_file_open_fd(fd, s->block_size, s->len, gz, sparse, chunks, crc);
181 int sparse_file_callback(struct sparse_file *s, bool sparse, bool crc, argument
190 sparse, chunks, crc);
209 int64_t sparse_file_len(struct sparse_file *s, bool sparse, bool crc) argument
217 s->block_size, s->len, false, sparse, chunks, crc);
246 * overhead is sparse file header, the potential end skip
276 * requested size, split the chunk. Results in sparse file
[all...]
H A Dappend2simg.c28 #include <sparse/sparse.h>
122 fprintf(stderr, "Failed to write sparse file\n");
H A Dsparse_read.c31 #include <sparse/sparse.h>
88 sparse_print_verbose("Invalid sparse file format%s%s\n", s, at);
376 error("failed to read sparse file");
409 int sparse_file_read(struct sparse_file *s, int fd, bool sparse, bool crc) argument
411 if (crc && !sparse) {
415 if (sparse) {
H A Doutput_file.c542 int64_t len, bool sparse, int chunks, bool crc)
566 if (sparse) {
572 if (sparse) {
632 int gz __unused, int sparse, int chunks, int crc)
647 ret = output_file_init(&outc->out, block_size, len, sparse, chunks, crc);
657 int gz, int sparse, int chunks, int crc)
673 ret = output_file_init(out, block_size, len, sparse, chunks, crc);
541 output_file_init(struct output_file *out, int block_size, int64_t len, bool sparse, int chunks, bool crc) argument
630 output_file_open_callback(int (*write)(void *, const void *, int), void *priv, unsigned int block_size, int64_t len, int gz __unused, int sparse, int chunks, int crc) argument
656 output_file_open_fd(int fd, unsigned int block_size, int64_t len, int gz, int sparse, int chunks, int crc) argument
H A DAndroid.mk8 sparse.c \
/system/core/libsparse/include/sparse/
H A Dsparse.h30 * sparse_file_new - create a new sparse file cookie
33 * @len - size of the expanded sparse file.
40 * Returns the sparse file cookie, or NULL on error.
45 * sparse_file_destroy - destroy a sparse file cookie
47 * @s - sparse file cookie
49 * Destroys a sparse file cookie. After destroy, all memory passed in to
55 * sparse_file_add_data - associate a data chunk with a sparse file
57 * @s - sparse file cookie
60 * @block - offset in blocks into the sparse file to place the data chunk
62 * Associates a data chunk with a sparse fil
[all...]
/system/extras/f2fs_utils/
H A Df2fs_utils.c37 #include <sparse/sparse.h>
73 sparse_file_write(f2fs_sparse_file, fd, /*gzip*/0, /*sparse*/1, /*crc*/0);
H A Df2fs_ioutils.c48 #include <sparse/sparse.h>
179 // sparse file fills with zero by default.
/system/core/fastboot/
H A Dfs.cpp15 #include <sparse/sparse.h>
H A Dprotocol.cpp39 #include <sparse/sparse.h>
/system/update_engine/sample_images/
H A Dgenerate_images.sh56 # sparse_empty: Files with no data blocks at all (only sparse holes).
60 # sparse: Files with some data blocks but also sparse holes.
62 sudo dd of="${mntdir}"/sparse-16k-last_block bs=1 \
69 sudo dd of="${mntdir}"/sparse-10000blocks bs=1 \
72 sudo truncate --size=16384 "${mntdir}"/sparse-16k-first_block
73 echo "first block" | sudo dd of="${mntdir}"/sparse-16k-first_block status=none
75 sudo truncate --size=16384 "${mntdir}"/sparse-16k-holes
76 echo "a" | sudo dd of="${mntdir}"/sparse-16k-holes bs=1 seek=100 status=none
77 echo "b" | sudo dd of="${mntdir}"/sparse
[all...]
/system/extras/ext4_utils/
H A Dext2simg.c28 #include <sparse/sparse.h>
53 fprintf(stderr, " -S don't use sparse output format\n");
123 int sparse = 1; local
139 sparse = 0;
189 write_ext4_image(outfd, gzip, sparse, crc);
H A Dmake_ext4fs_main.c74 int sparse = 0; local
141 sparse = 1;
214 if (wipe && sparse) {
215 fprintf(stderr, "Cannot specifiy both wipe and sparse\n");
257 sparse, crc, wipe, real_uuid, sehnd, verbose, fixed_time,
H A Dext4_utils.h141 void write_ext4_image(int fd, int gz, int sparse, int crc);
163 int sparse, int crc, int wipe, int real_uuid,
/system/core/toolbox/upstream-netbsd/bin/dd/
H A Dmisc.c127 if (st.sparse) {
128 (void)snprintf(buf, sizeof(buf), "%llu sparse output %s\n",
129 (unsigned long long)st.sparse,
130 (st.sparse == 1) ? "block" : "blocks");
269 (unsigned long long)st.sparse);
284 if (st.sparse != 1) ADDS("s");
329 if (st.sparse) {
330 (void)dd_write_msg("%p sparse output %P\n", 1);
H A Ddd.c82 static off_t pending = 0; /* pending seek if sparse */
452 /* If there are pending sparse blocks, make sure
453 * to write out the final block un-sparse
510 int sparse, i; local
511 sparse = 1; /* Is buffer sparse? */
514 sparse = 0;
517 if (sparse) {
527 err(EXIT_FAILURE, "%s: seek error creating sparse file",
543 st.sparse
[all...]
H A Ddd.h100 uint64_t sparse; /* # of sparse output blocks */ member in struct:__anon1719
/system/extras/verity/
H A Dbuild_verity_tree.cpp3 #include <sparse/sparse.h>
121 " -S treat <data image> as a sparse file\n"
131 bool sparse = false; local
141 {"sparse", no_argument, 0, 'S'},
179 sparse = true;
268 if (sparse) {
/system/extras/verity/fec/
H A Dimage.h43 /* if true, assume input is a sparse file */
44 bool sparse; member in struct:image

Completed in 346 milliseconds

12