1. 05 8月, 2010 3 次提交
    • R
      virtio_blk: Remove VBID ioctl · 6c99a852
      Ryan Harper 提交于
      With the availablility of a sysfs device attribute for examining disk serial
      numbers the ioctl is no longer needed.  The user-space changes for this aren't
      upstream yet so we don't have any users to worry about.
      Signed-off-by: NRyan Harper <ryanh@us.ibm.com>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      6c99a852
    • R
      virtio_blk: Add 'serial' attribute to virtio-blk devices (v2) · a5eb9e4f
      Ryan Harper 提交于
      Create a new attribute for virtio-blk devices that will fetch the serial number
      of the block device.  This attribute can be used by udev to create disk/by-id
      symlinks for devices that don't have a UUID (filesystem) associated with them.
      
      ATA_IDENTIFY strings are special in that they can be up to 20 chars long
      and aren't required to be nul-terminated.  The buffer is also zero-padded
      meaning that if the serial is 19 chars or less that we get a nul-terminated
      string.  When copying this value into a string buffer, we must be careful to
      copy up to the nul (if it present) and only 20 if it is longer and not to
      attempt to nul terminate; this isn't needed.
      
      Changes since v1:
      - Added BUILD_BUG_ON() for PAGE_SIZE check
      - Removed min() since BUILD_BUG_ON() handles the check
      - Replaced serial_sysfs() by copying id directly to buffer
      Signed-off-by: NRyan Harper <ryanh@us.ibm.com>
      Signed-off-by: Njohn cooper <john.cooper@redhat.com>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      a5eb9e4f
    • C
      virtio_blk: support barriers without FLUSH feature · 10bc310c
      Christoph Hellwig 提交于
      If we want to support barriers with the cache=writethrough mode in qemu
      we need to tell the block layer that we only need queue drains to
      implement a barrier.  Follow the model set by SCSI and IDE and assume
      that there is no volatile write cache if the host doesn't advertize it.
      While this might imply working barriers on old qemu versions or other
      hypervisors that actually have a volatile write cache this is only a
      cosmetic issue - these hypervisors don't guarantee any data integrity
      with or without this patch, but with the patch we at least provide
      data ordering.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      10bc310c
  2. 30 7月, 2010 1 次提交
  3. 27 7月, 2010 1 次提交
  4. 20 7月, 2010 1 次提交
  5. 19 7月, 2010 1 次提交
  6. 12 7月, 2010 1 次提交
  7. 15 6月, 2010 1 次提交
  8. 14 6月, 2010 3 次提交
  9. 03 6月, 2010 1 次提交
  10. 02 6月, 2010 1 次提交
  11. 01 6月, 2010 11 次提交
  12. 22 5月, 2010 8 次提交
  13. 19 5月, 2010 5 次提交
  14. 18 5月, 2010 2 次提交