/* returns: 0/1 whether cookie points to some device in this group  */
static int dev_is_stor(int type, struct device_info *di)
/* returns: 0/1 whether cookie points to some device in this group  */
static int dev_is_stor(int type, struct device_info *di)
{
	return (dev_stor_type(di->cookie) == type) ? 1 : 0;
}