/* Copies device info back to user space, used by the create and info ioctls.  */
static int dev_status(struct dm_ioctl *param, size_t param_size)
/* Copies device info back to user space, used by the create and info ioctls.  */
static int dev_status(struct dm_ioctl *param, size_t param_size)
{
	int r;
	struct mapped_device *md;
	md = find_device(param);
	if (!md)
		return -ENXIO;
	r = __dev_status(md, param);
	dm_put(md);
	return r;
}