Lines Matching refs:blockdev
65 def get_udev_info(blockdev, method='udev', host=None):
66 """Get information about |blockdev|
68 @param blockdev: a block device, e.g., /dev/sda1 or /dev/sda
82 cmd = "udevadm info --name %s --query=property" % blockdev
87 cmd = "blkid -c /dev/null -o udev %s" % blockdev
275 def get_device_info(blockdev, lsusb_info, host=None):
276 """Retrieve information about |blockdev|
280 @param blockdev: a block device name, e.g., "sda".
287 spath = "%s/%s" % (INFO_PATH, blockdev)
292 info = get_udev_info(blockdev, "udev", host=host)
305 if not re.match("%s[0-9]+" % blockdev, basename):
308 # |blockdev| has subdevices: get info for them