Lines Matching refs:bytes_read
129 int byte_off, bytes_read; in dump_ec() local
131 bytes_read = read(fd, buf, EC_SPACE_SIZE); in dump_ec()
133 if (bytes_read == -1) in dump_ec()
136 if (bytes_read != EC_SPACE_SIZE) in dump_ec()
137 fprintf(stderr, "Could only read %d bytes\n", bytes_read); in dump_ec()
140 for (byte_off = 0; byte_off < bytes_read; byte_off++) { in dump_ec()
154 bytes_read = read(fd, buf2, EC_SPACE_SIZE); in dump_ec()
156 if (bytes_read == -1) in dump_ec()
159 if (bytes_read != EC_SPACE_SIZE) in dump_ec()
160 fprintf(stderr, "Could only read %d bytes\n", bytes_read); in dump_ec()
163 for (byte_off = 0; byte_off < bytes_read; byte_off++) { in dump_ec()