strncpy(lp->d_packname, "fictitious", 16);
strncpy(lp->d_packname, "fictitious", sizeof(lp->d_packname) - 1);
cdgetdisklabel(dev, cd)	dev_t dev;	struct cd_softc *cd;{	struct disklabel *lp = cd->sc_dk.dk_label;	char *errstring;	bzero(lp, sizeof(struct disklabel));	bzero(cd->sc_dk.dk_cpulabel, sizeof(struct cpu_disklabel));	lp->d_secsize = cd->params.blksize;	lp->d_ntracks = 1;	lp->d_nsectors = 100;	lp->d_ncylinders = (cd->params.disksize / 100) + 1;	lp->d_secpercyl = lp->d_ntracks * lp->d_nsectors;	if (lp->d_secpercyl == 0) {		lp->d_secpercyl = 100;		/* as long as it's not 0 - readdisklabel divides by it (?) */	}	strncpy(lp->d_typename, "SCSI disk", 16);	lp->d_type = DTYPE_SCSI;	strncpy(lp->d_packname, "fictitious", 16);	lp->d_secperunit = cd->params.disksize;	lp->d_rpm = 300;	lp->d_interleave = 1;	lp->d_flags = D_REMOVABLE;	lp->d_partitions[RAW_PART].p_offset = 0;	lp->d_partitions[RAW_PART].p_size =	    lp->d_secperunit * (lp->d_secsize / DEV_BSIZE);	lp->d_partitions[RAW_PART].p_fstype = FS_UNUSED;	lp->d_npartitions = RAW_PART + 1;	lp->d_magic = DISKMAGIC;	lp->d_magic2 = DISKMAGIC;	lp->d_checksum = dkcksum(lp);	/*	 * Call the generic disklabel extraction routine	 */	errstring = readdisklabel(CDLABELDEV(dev), cdstrategy, lp,	    cd->sc_dk.dk_cpulabel);	if (errstring) {		/*printf("%s: %s\n", cd->sc_dev.dv_xname, errstring);*/		return;	}}