Home | History | Annotate | Download | only in mtdutils

Lines Matching full:headerlen

75     int headerlen = TEMP_FAILURE_RETRY(read(fd, header, sizeof(header)));
76 if (headerlen <= 0) die("error reading %s header", argv[2]);
88 } else if (checklen == headerlen && !memcmp(header, check, headerlen)) {
102 memset(buf, 0, headerlen);
103 int wrote = mtd_write_data(out, buf, headerlen);
104 if (wrote != headerlen) die("error writing %s", argv[1]);
120 wrote = mtd_write_data(out, header, headerlen);
121 if (wrote != headerlen) die("error re-writing %s", argv[1]);
128 if (TEMP_FAILURE_RETRY(lseek(fd, headerlen, SEEK_SET)) != headerlen)
131 int left = block_size - headerlen;