rdev->kobj.k_name = NULL; snprintf(rdev->kobj.name, KOBJ_NAME_LEN, "dev%d", rdev->desc_nr); 
static int bind_rdev_to_array(mdk_rdev_t * rdev, mddev_t * mddev){	mdk_rdev_t *same_pdev;	char b[BDEVNAME_SIZE], b2[BDEVNAME_SIZE];	if (rdev->mddev) {		MD_BUG();		return -EINVAL;	}	same_pdev = match_dev_unit(mddev, rdev);	if (same_pdev)		printk(KERN_WARNING			"%s: WARNING: %s appears to be on the same physical"	 		" disk as %s. True\n     protection against single-disk"			" failure might be compromised.\n",			mdname(mddev), bdevname(rdev->bdev,b),			bdevname(same_pdev->bdev,b2));	/* Verify rdev->desc_nr is unique.	 * If it is -1, assign a free number, else	 * check number is not in use	 */	if (rdev->desc_nr < 0) {		int choice = 0;		if (mddev->pers) choice = mddev->raid_disks;		while (find_rdev_nr(mddev, choice))			choice++;		rdev->desc_nr = choice;	} else {		if (find_rdev_nr(mddev, rdev->desc_nr))			return -EBUSY;	}				list_add(&rdev->same_set, &mddev->disks);	rdev->mddev = mddev;	printk(KERN_INFO "md: bind<%s>\n", bdevname(rdev->bdev,b));	rdev->kobj.k_name = NULL;	snprintf(rdev->kobj.name, KOBJ_NAME_LEN, "dev%d", rdev->desc_nr);	rdev->kobj.parent = &mddev->kobj;	kobject_add(&rdev->kobj);	sysfs_create_link(&rdev->kobj, &rdev->bdev->bd_disk->kobj, "block");	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/19133a4298223422742db7b5f940e8c54c6a1846/md.c/clean/drivers/md/md.c