win-pvdrivers

changeset 1088:53eb8a11ea2f

fix sector size detection
author James Harper <james.harper@bendigoit.com.au>
date Tue Dec 24 15:43:51 2013 +1100 (2013-12-24)
parents 494bfa9c34c4
children 5fa56ef930bf
files xenvbd_common/common_miniport.h
line diff
     1.1 --- a/xenvbd_common/common_miniport.h	Tue Dec 24 15:43:21 2013 +1100
     1.2 +++ b/xenvbd_common/common_miniport.h	Tue Dec 24 15:43:51 2013 +1100
     1.3 @@ -929,10 +929,10 @@ XenVbd_ProcessSrbList(PXENVBD_DEVICE_DAT
     1.4          case 2:
     1.5            data_buffer[13] = 1; /* 1024 byte hardware sectors */
     1.6            break;
     1.7 -        case 3:
     1.8 +        case 4:
     1.9            data_buffer[13] = 2; /* 2048 byte hardware sectors */
    1.10            break;
    1.11 -        case 4:
    1.12 +        case 8:
    1.13            data_buffer[13] = 3; /* 4096 byte hardware sectors */
    1.14            break;
    1.15          default: