/*
* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
/*
* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
* In full mode, the program writes a test pattern on the entire disk.
* The test pattern (device offset and timestamp) is written at the
* beginning of each 4kB block. When the whole device is full the read
* operation is performed to verify that the test pattern is correct.
*
*
* In full mode, the program writes a test pattern on the entire disk.
* The test pattern (device offset and timestamp) is written at the
* beginning of each 4kB block. When the whole device is full the read
* operation is performed to verify that the test pattern is correct.
*
* each 4kB(BLOCKSIZE) blocks in chunk_buf.
*/
void fill_chunk(char *chunk_buf, size_t chunksize, loff_t chunk_off,
* each 4kB(BLOCKSIZE) blocks in chunk_buf.
*/
void fill_chunk(char *chunk_buf, size_t chunksize, loff_t chunk_off,
fprintf(stderr, "\n%s: write %s@%llu+%zi short: %ld written\n",
progname, file, offset, nrequested, nwritten);
offset += nwritten;
fprintf(stderr, "\n%s: write %s@%llu+%zi short: %ld written\n",
progname, file, offset, nrequested, nwritten);
offset += nwritten;