Lines Matching refs:sector
159 u_char *sector;
163 sector = NULL;
180 sector = malloc(sectorsize);
181 if (sector == NULL) {
185 bcopy(md, sector, size);
186 if (pwrite(fd, sector, sectorsize, mediasize - sectorsize) !=
192 if (sector != NULL)
193 free(sector);
287 gctl_error(req, "Devices need to have same sector size "
300 fprintf(stderr, "Error: chunk size is not a multiple of sector "
333 /* Clear last sector first to spoil all components if device exists. */
436 /* Check to make sure last sector is unused */
464 err(1, "Cannot allocate sector of %zu bytes", ssize);
519 gctl_error(req, "Cannot clear header sector for %s",