Lines Matching defs:capacity
190 * The SCSI READ_CAPACITY command is used here to get the capacity of the
198 struct scsi_capacity_16 capacity;
200 if (uscsi_read_capacity(cur_file, &capacity)) {
201 err_print("Warning: Unable to get capacity."
206 if (capacity.sc_capacity < ncyl * nhead * nsect) {
401 * written now is not way off from the actual capacity
565 get_disk_capacity(int fd, uint64_t *capacity)
571 *capacity = minf.dki_capacity * minf.dki_lbsize / cur_blksz;
576 *capacity = cap16.sc_capacity;
578 /* Since we are counting from zero, add 1 to capacity */
579 (*capacity)++;
641 (void) get_disk_capacity(fd, &label->capacity);
840 * and sectors per track which may cause the capacity