"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "identify.c" between
hdparm-9.64.tar.gz and hdparm-9.65.tar.gz

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

identify.c  (hdparm-9.64):identify.c  (hdparm-9.65)
skipping to change at line 693 skipping to change at line 693
} }
} }
} }
static void static void
print_logical_sector_sizes (int fd, unsigned int current_lss) print_logical_sector_sizes (int fd, unsigned int current_lss)
{ {
__u8 d[512] = {0,}; __u8 d[512] = {0,};
int i, found = 0, rc, found_byte_lss = 0, found_word_lss = 0, lss_is_byte s = 0; int i, found = 0, rc, found_byte_lss = 0, found_word_lss = 0, lss_is_byte s = 0;
if (fd == -1)
return;
rc = get_log_page_data(fd, 0x2f, 0, d); rc = get_log_page_data(fd, 0x2f, 0, d);
if (rc) if (rc)
return; return;
/* /*
* Some devices incorrectly return logical sector size (lss) as bytes. * Some devices incorrectly return logical sector size (lss) as bytes.
* Scan log entries and if the current lss is in the log, and there isn't an equivalent * Scan log entries and if the current lss is in the log, and there isn't an equivalent
* entry in words, assume the device is returning the logical sector size in bytes. * entry in words, assume the device is returning the logical sector size in bytes.
* Doing this takes two passes through the log data. * Doing this takes two passes through the log data.
*/ */
for (i = 0; i < 128; i += 16) { for (i = 0; i < 128; i += 16) {
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

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