"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "sgio.c" between
hdparm-9.58.tar.gz and hdparm-9.60.tar.gz

About: hdparm - get/set ATA/SATA drive parameters under Linux.

sgio.c  (hdparm-9.58):sgio.c  (hdparm-9.60)
skipping to change at line 319 skipping to change at line 319
if (sb[0] | sb[1] | sb[2] | sb[3] | sb[4] | sb[5] | sb[6] | sb[7] | sb[8] | sb[9]) { if (sb[0] | sb[1] | sb[2] | sb[3] | sb[4] | sb[5] | sb[6] | sb[7] | sb[8] | sb[9]) {
static int second_try = 0; static int second_try = 0;
if (!second_try++) if (!second_try++)
fprintf(stderr, "SG_IO: questionable sense data, results may be incorrect\n"); fprintf(stderr, "SG_IO: questionable sense data, results may be incorrect\n");
} else if (demanded_sense) { } else if (demanded_sense) {
static int second_try = 0; static int second_try = 0;
if (!second_try++) if (!second_try++)
fprintf(stderr, "SG_IO: missing sense data, resul ts may be incorrect\n"); fprintf(stderr, "SG_IO: missing sense data, resul ts may be incorrect\n");
} }
} else if (sb[0] != 0x72 || sb[7] < 14 || desc[0] != 0x09 || desc[1] < 0x 0c) { } else if (sb[0] != 0x72 || sb[7] < 14 || desc[0] != 0x09 || desc[1] < 0x 0c) {
dump_bytes("SG_IO: bad/missing sense data, sb[]", sb, sizeof(sb)) if (verbose || tf->command != ATA_OP_IDENTIFY)
; dump_bytes("SG_IO: bad/missing sense data, sb[]", sb, siz
eof(sb));
} }
if (verbose) { if (verbose) {
unsigned int len = desc[1] + 2, maxlen = sizeof(sb) - 8 - 2; unsigned int len = desc[1] + 2, maxlen = sizeof(sb) - 8 - 2;
if (len > maxlen) if (len > maxlen)
len = maxlen; len = maxlen;
dump_bytes("SG_IO: desc[]", desc, len); dump_bytes("SG_IO: desc[]", desc, len);
} }
tf->is_lba48 = desc[ 2] & 1; tf->is_lba48 = desc[ 2] & 1;
 End of changes. 1 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)