Deleted Added
full compact
28c28
< __FBSDID("$FreeBSD: head/sys/geom/raid/md_nvidia.c 220209 2011-03-31 16:14:35Z mav $");
---
> __FBSDID("$FreeBSD: head/sys/geom/raid/md_nvidia.c 220210 2011-03-31 16:19:53Z mav $");
587d586
< struct nvidia_raid_conf *meta;
594d592
< meta = mdi->mdio_meta;
628c626
< if (update) {
---
> if (update)
630,631d627
< meta = mdi->mdio_meta;
< }
831c827
< int error, disk_pos, result, spare, len;
---
> int error, result, spare, len;
841d836
< spare = 0;
843d837
< disk_pos = 0;
869,875d862
< /* Check this disk position in obtained metadata. */
< disk_pos = meta->disk_number;
< if (disk_pos == -1) {
< G_RAID_DEBUG(1, "NVIDIA disk position not found");
< goto fail1;
< }
<
878c865
< G_RAID_DEBUG(1, "NVIDIA disk position %d", disk_pos);
---
> G_RAID_DEBUG(1, "NVIDIA disk position %d", meta->disk_number);
1143a1131,1135
> if (sectorsize <= 0) {
> gctl_error(req, "Can't get sector size.");
> return (-8);
> }
>
1374d1365
< disk->d_consumer->private = disk;
1531d1521
< struct g_raid_md_nvidia_object *mdi;
1536d1525
< mdi = (struct g_raid_md_nvidia_object *)md;