ia64/xen-unstable

changeset 1074:705494a11f21

bitkeeper revision 1.710 (4024ef6f9YlWWmhZ6dOHYR2Gp5i6vw)

xl_vbd.c:
Fix VBD-updated check in XL.
author kaf24@scramble.cl.cam.ac.uk
date Sat Feb 07 14:00:15 2004 +0000 (2004-02-07)
parents cb4ec9996b12
children 642aa90966e8
files xenolinux-2.4.24-sparse/arch/xeno/drivers/block/xl_vbd.c
line diff
     1.1 --- a/xenolinux-2.4.24-sparse/arch/xeno/drivers/block/xl_vbd.c	Fri Feb 06 10:32:46 2004 +0000
     1.2 +++ b/xenolinux-2.4.24-sparse/arch/xeno/drivers/block/xl_vbd.c	Sat Feb 07 14:00:15 2004 +0000
     1.3 @@ -456,7 +456,8 @@ void xlvbd_update_vbds(void)
     1.4          }
     1.5          else
     1.6          {
     1.7 -            if ( (memcmp(&old_info[i], &new_info[j], sizeof(xen_disk_t)) == 0) ||
     1.8 +            if ( ((old_info[i].capacity == new_info[j].capacity) &&
     1.9 +                  (old_info[i].info == new_info[j].info)) ||
    1.10                   (xlvbd_remove_device(old_info[i].device) != 0) )
    1.11                  memcpy(&merged_info[k++], &old_info[i], sizeof(xen_disk_t));
    1.12              else if ( xlvbd_init_device(&new_info[j]) == 0 )