/[qemu]/qemu/block.c
ViewVC logotype

Diff of /qemu/block.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.23 by bellard, Sun Oct 30 18:30:10 2005 UTC revision 1.24 by bellard, Sat Nov 26 10:58:41 2005 UTC
# Line 444  int bdrv_write(BlockDriverState *bs, int Line 444  int bdrv_write(BlockDriverState *bs, int
444          return -1;          return -1;
445      if (bs->read_only)      if (bs->read_only)
446          return -1;          return -1;
447        if (sector_num == 0 && bs->boot_sector_enabled && nb_sectors > 0) {
448            memcpy(bs->boot_sector_data, buf, 512);  
449        }
450      return bs->drv->bdrv_write(bs, sector_num, buf, nb_sectors);      return bs->drv->bdrv_write(bs, sector_num, buf, nb_sectors);
451  }  }
452    

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26