Skip to content
Snippets Groups Projects
  1. Jul 27, 2009
  2. Jul 22, 2009
    • Kevin Wolf's avatar
      vmdk: Fix backing file handling · b171271a
      Kevin Wolf authored
      
      Instead of storing the backing file in its own BlockDriverState, VMDK uses the
      BlockDriverState of the raw image file it opened. This is wrong and breaks
      functions that access the backing file or protocols. This fix replaces all
      occurrences of s->hd->backing_* with bs->backing_*.
      
      This fixes qemu-iotests failure in 020 (Commit changes to backing file).
      
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      b171271a
  3. Jul 20, 2009
  4. Jul 16, 2009
  5. Jul 10, 2009
  6. Jul 09, 2009
  7. Jun 29, 2009
  8. Jun 17, 2009
  9. Jun 16, 2009
  10. Jun 15, 2009
    • Christoph Hellwig's avatar
      raw-posix: cleanup ioctl methods · 63ec93db
      Christoph Hellwig authored
      
      Rename raw_ioctl and raw_aio_ioctl to hdev_ioctl and hdev_aio_ioctl as they
      are only used for the host device.  Also only add them to the method table
      for the cases where we need them (generic hdev if linux and linux CDROM)
      instead of declaring stubs and always add them.
      
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      63ec93db
    • Christoph Hellwig's avatar
      block: add bdrv_probe_device method · 508c7cb3
      Christoph Hellwig authored
      
      Add a bdrv_probe_device method to all BlockDriver instances implementing
      host devices to move matching of host device types into the actual drivers.
      For now we keep exacly the old matching behaviour based on the devices names,
      although we really should have better detetion methods based on device
      information in the future.
      
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      508c7cb3
    • Christoph Hellwig's avatar
      raw-posix: split hdev drivers · f3a5d3f8
      Christoph Hellwig authored
      
      Instead of declaring one BlockDriver for all host devices declared one
      for each type:  a generic one for normal disk devices, a Linux floppy
      driver and a CDROM driver for Linux and FreeBSD.  This gets rid of a lot
      of messy ifdefs and switching based on the type in the various removal
      device methods.
      
      block.c grows a new method to find the correct host device driver based
      on OS-sepcific criteria, which will later into the actual drivers in a
      later patch in this series.
      
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      f3a5d3f8
    • Christoph Hellwig's avatar
      raw-posix: add a raw_open_common helper · 90babde0
      Christoph Hellwig authored
      
      raw_open and hdev_open contain the same basic logic.  Add a new
      raw_open_common helper containing the guts of the open routine
      and call it from raw_open and hdev_open.
      
      We use the new open_flags field in BDRVRawState to allow passing
      additional open flags to raw_open_common from both.
      
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      90babde0
    • Christoph Hellwig's avatar
      raw-posix: always store open flags · 0e1d8f4c
      Christoph Hellwig authored
      
      Both the Linux floppy and the FreeBSD CDROM host device need to store
      the open flags so that they can re-open the device later.  Store the
      open flags unconditionally to remove the ifdef mess and simply the
      calling conventions for the later patches in the series.
      
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      0e1d8f4c
  11. Jun 06, 2009
  12. May 28, 2009
  13. May 27, 2009
Loading