30c30
< __FBSDID("$FreeBSD: head/sys/dev/pst/pst-raid.c 119874 2003-09-08 06:28:50Z sos $");
---
> __FBSDID("$FreeBSD: head/sys/dev/pst/pst-raid.c 125975 2004-02-18 21:36:53Z phk $");
59c59
< struct disk disk;
---
> struct disk *disk;
152,156c152,157
< psc->disk.d_name = "pst";
< psc->disk.d_strategy = pststrategy;
< psc->disk.d_maxsize = 64 * 1024; /*I2O_SGL_MAX_SEGS * PAGE_SIZE;*/
< psc->disk.d_drv1 = psc;
< disk_create(lun, &psc->disk, DISKFLAG_NOGIANT, NULL, NULL);
---
> psc->disk = disk_alloc();
> psc->disk->d_name = "pst";
> psc->disk->d_strategy = pststrategy;
> psc->disk->d_maxsize = 64 * 1024; /*I2O_SGL_MAX_SEGS * PAGE_SIZE;*/
> psc->disk->d_drv1 = psc;
> psc->disk->d_unit = lun;
158,161c159,162
< psc->disk.d_sectorsize = psc->info->block_size;
< psc->disk.d_mediasize = psc->info->capacity;
< psc->disk.d_fwsectors = 63;
< psc->disk.d_fwheads = 255;
---
> psc->disk->d_sectorsize = psc->info->block_size;
> psc->disk->d_mediasize = psc->info->capacity;
> psc->disk->d_fwsectors = 63;
> psc->disk->d_fwheads = 255;
162a164,165
> disk_create(psc->disk, DISK_VERSION);
>
< __FBSDID("$FreeBSD: head/sys/dev/pst/pst-raid.c 119874 2003-09-08 06:28:50Z sos $");
---
> __FBSDID("$FreeBSD: head/sys/dev/pst/pst-raid.c 125975 2004-02-18 21:36:53Z phk $");
59c59
< struct disk disk;
---
> struct disk *disk;
152,156c152,157
< psc->disk.d_name = "pst";
< psc->disk.d_strategy = pststrategy;
< psc->disk.d_maxsize = 64 * 1024; /*I2O_SGL_MAX_SEGS * PAGE_SIZE;*/
< psc->disk.d_drv1 = psc;
< disk_create(lun, &psc->disk, DISKFLAG_NOGIANT, NULL, NULL);
---
> psc->disk = disk_alloc();
> psc->disk->d_name = "pst";
> psc->disk->d_strategy = pststrategy;
> psc->disk->d_maxsize = 64 * 1024; /*I2O_SGL_MAX_SEGS * PAGE_SIZE;*/
> psc->disk->d_drv1 = psc;
> psc->disk->d_unit = lun;
158,161c159,162
< psc->disk.d_sectorsize = psc->info->block_size;
< psc->disk.d_mediasize = psc->info->capacity;
< psc->disk.d_fwsectors = 63;
< psc->disk.d_fwheads = 255;
---
> psc->disk->d_sectorsize = psc->info->block_size;
> psc->disk->d_mediasize = psc->info->capacity;
> psc->disk->d_fwsectors = 63;
> psc->disk->d_fwheads = 255;
162a164,165
> disk_create(psc->disk, DISK_VERSION);
>