rdev->in_sync = 0; 
static int super_1_validate(mddev_t *mddev, mdk_rdev_t *rdev){	struct mdp_superblock_1 *sb = (struct mdp_superblock_1*)page_address(rdev->sb_page);	if (mddev->raid_disks == 0) {		mddev->major_version = 1;		mddev->patch_version = 0;		mddev->persistent = 1;		mddev->chunk_size = le32_to_cpu(sb->chunksize) << 9;		mddev->ctime = le64_to_cpu(sb->ctime) & ((1ULL << 32)-1);		mddev->utime = le64_to_cpu(sb->utime) & ((1ULL << 32)-1);		mddev->level = le32_to_cpu(sb->level);		mddev->layout = le32_to_cpu(sb->layout);		mddev->raid_disks = le32_to_cpu(sb->raid_disks);		mddev->size = le64_to_cpu(sb->size)/2;		mddev->events = le64_to_cpu(sb->events);				mddev->recovery_cp = le64_to_cpu(sb->resync_offset);		memcpy(mddev->uuid, sb->set_uuid, 16);		mddev->max_disks =  (4096-256)/2;	} else {		__u64 ev1;		ev1 = le64_to_cpu(sb->events);		++ev1;		if (ev1 < mddev->events)			return -EINVAL;	}	if (mddev->level != LEVEL_MULTIPATH) {		int role;		rdev->desc_nr = le32_to_cpu(sb->dev_number);		role = le16_to_cpu(sb->dev_roles[rdev->desc_nr]);		switch(role) {		case 0xffff: /* spare */			rdev->in_sync = 0;			rdev->faulty = 0;			rdev->raid_disk = -1;			break;		case 0xfffe: /* faulty */			rdev->in_sync = 0;			rdev->faulty = 1;			rdev->raid_disk = -1;			break;		default:			rdev->in_sync = 1;			rdev->faulty = 0;			rdev->raid_disk = role;			break;		}	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/41158c7eb22312cfaa256744e1553bb4042ff085/md.c/buggy/drivers/md/md.c