Date: Wed, 25 Mar 1998 15:20:02 -0800 (PST) From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs Subject: Re: kern/6133: optical drive with 1024-byte (1k) sectors does not work in 2.2-STABLE Message-ID: <199803252320.PAA28485@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/6133; it has been noted by GNATS. From: Bruce Evans <bde@zeta.org.au> To: freebsd-gnats-submit@FreeBSD.ORG, vanmaren@cs.utah.edu Cc: Subject: Re: kern/6133: optical drive with 1024-byte (1k) sectors does not work in 2.2-STABLE Date: Thu, 26 Mar 1998 10:02:28 +1100 >The OD drive appeared to be usable when reading or writing 1k >chunks, but any accesses after the first half of the drive failed. 1K chunks are not supported in -stable. The support in -current is poorly implemented and buggy. >>Fix: >By applying some patches from -current, I was able to newfs, >mount, and use the optical drive. I did not attempt to partition >the drive, using the entire disk for one filesystem. Applying the >patches for the 4 files appears to be sufficient. > >=== >sys/scsi/od.c: > merged in 1.22 to 1.24 diffs (bringing to 1.24 in 2.2-STABLE) Rev.1.24 breaks EOF handling. It is possible to write beyond the end of a partition. Only the correspoding breakage of sd.c has been fixed in -current. >sys/ufs/ufs/ufs_disksubr.c > merged in 1.26 to 1.27 (bringing to 1.27 in 2.2-STABLE) > >sbin/newfs/newfs.c > merged in 1.13 to 1.14 changes into 2.2-STABLE > >bin/newfs/mkfs.c > merged in 1.11 to 1.12 changes into 2.2-STABLE >=== >Other related patched I did not apply: > >sys/kern/subr_diskslice.c > did not merge in 1.30 to 1.31 This is probably important for writing labels. >sys/scsi/sd.c: > did not merge in 1.95 to 1.96, so scsi disks with large > sectors are still not supported in 2.2-STABLE. 1.114 unbreaks 1.96. >sbin/i386/fdisk/fdisk.c: > did not merge in 1.95 to 1.96, so fdisk won't work > with large sectors in 2.2-STABLE. Actually 1.13. >=== >After adding this in disktab: > >sony-ours:\ > :ty=optical:ns#32:nt#64:nc#155:\ > :pc#318665:oc#0:bc#8192:fc#1024: > >newfs works, and mounting succeeded > >% newfs -S 1024 /dev/rod0c sony-ours >Warning: Block size restricts cylinders per group to 11. >Warning: 1646 sector(s) in last cylinder unallocated >/dev/rod0c: 637330 sectors in 78 cylinders of 1 tracks, 8192 sectors > 311.2MB in 8 cyl groups (11 c/g, 44.00MB/g, 10624 i/g) >super-block backups (for fsck -b #) at: > 32, 90144, 180256, 270368, 360480, 450592, 540704, 630816, Using this instead of a label avoids the bug with writing labels. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803252320.PAA28485>