Lines Matching defs:length
94 int f_length; /* length in bytes */
101 int f_lastlength; /* length of last io operation */
580 int mult, offset = 0, length = 0, slength;
614 * If sds io, simply choose a length (possibly pattern) and return
628 * otherwise, we're doing file io. Choose starting offset, length,
636 * Choose offset/length multiple. IO going to a device, or regular
647 * Choose offset and length. Both must be a multiple of mult
651 * Choose length first - it must be a multiple of mult
675 length = random_range(minlength, maxlength, mult, &errp);
697 length = random_range(minlength, maxlength, mult, &errp);
705 offset = laststart - length;
716 length = random_range(Mintrans, Maxtrans, mult, NULL);
719 minoffset = laststart - length + 1;
724 if (lastend + length > fptr->f_length) {
725 maxoffset = fptr->f_length - length;
731 maxoffset = fptr->f_length - length;
747 fptr->f_lastlength = length;
767 req->r_data.read.r_nbytes = length;
781 req->r_data.write.r_nbytes = length;
814 req->r_data.io.r_nbytes = length;
833 req->r_data.io.r_nbytes = length;
865 * length of stride must be > minlength
866 * length of stride must be % mult
868 * maxstrides = min(length / mult, overall.max#strides)
870 * while (length / nstrides < minlength)
873 maxstride = length / mult;
887 slength = length / nstrides;
894 nstrides = length / slength;
920 req->r_data.listio.r_nbytes = length;
938 * Get information about a file that iogen uses to choose io length and
939 * offset. Information gathered is file length, iounit, and raw iounit.
1050 rec->f_length = ctob(dinfo.length);
1099 "iogen%s: file %s exists, but is not a regular file - cannot modify length\n",
1240 * about not being able to create a file of <nbytes> length,
1271 "iogen%s: Could not write %d byte length file %s: %s (%d)\n",
1300 "iogen%s: Could not create a %d byte length file %s: %s (%d)\n",
1795 * the file to the desired length. Otherwise, just make sure
1803 "iogen%s: illegal file length (%s) for file %s\n",
1812 "iogen%s: Max fname length is %d chars - ignoring file %s\n",
1866 * If the file length is smaller than our min transfer size,
1875 " length (%d) is < min transfer size (%d)\n",
1882 * If the file length is smaller than our max transfer size,
1891 " length (%d) is < max transfer size (%d)\n",
2060 fprintf(stream, "\t-t mintrans Min transfer length\n");
2061 fprintf(stream, "\t-T maxtrans Max transfer length\n");
2069 fprintf(stream, "\t to the desired length.\n");