     items: {
       type: 'object'
       properties: {
-        device: { type: 'string' }
         size: { type: ['integer', 'string'] }
         SR: { type: 'string' }
         type: { type: 'string' }

    limits.disk += size

    return $assign({}, vdi, {
      device: vdi.userdevice ? vdi.device ? vdi.position,
      size,
      SR: sr._xapiId,
      type: vdi.type

endsWith = require 'lodash/endsWith'
escapeStringRegexp = require 'escape-string-regexp'
eventToPromise = require 'event-to-promise'
maxBy = require 'lodash/maxBy'
merge = require 'lodash/merge'
sortBy = require 'lodash/sortBy'
startsWith = require 'lodash/startsWith'
