summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/dev/sd.c
AgeCommit message (Collapse)Author
1998-05-07don't clear *_WLABEL on close so 'disklabel -W' is persistent like in the ↵Todd C. Miller
generic scsi system
1998-05-02If computed value for d_nsectors truncated to 0, set it to 32 andTodd C. Miller
adjust d_ncylinders instead of just setting d_nsectors to 1 (which is not useful for putting a filesystem on a device).
1998-05-02Fix problem with zip drive correctly this time. The real deal isTodd C. Miller
that the hp300 scsi subsystem does not glean d_secpercyl from the device so we have to calculate a reasonable value. In the case of a zip drive, the calculated value gets truncated to zero. This change adds a sanity check and forces the calculated d_secpercyl to be >= 1. Also includes some minor code reorg.
1998-04-30Only use scsi geometry to fake up a label if we were able to getTodd C. Miller
the capacity. Fixes a panic with fictitious labels on zip drives.
1998-04-25set d_bbsize and d_sbsize in spoofed label to values correct for ffsTodd C. Miller
1998-03-27fictitious disklabels for scsi disksTodd C. Miller
1998-03-06Keep gcc from addint an implicit memset() behind our back. ThanksTodd C. Miller
to Niklas and Theo for help in tracking down what was going on.
1997-07-13sync to NETBSD_CURRENT_970711.Jason Downs
1997-07-06Sync with changes from NetBSD, up to 970705.Jason Downs
This includes all of the new frodo drivers, from Michael Smith, hacked up by Jason R. Thorpe; other changes, mostly configuration and/or m68k abstraction related, from Thorpe. A few others of my own. This compiles and runs, have not yet tested Domain kbd or apci ports.
1997-04-16Merge portions of NetBSD up to 970415.Jason Downs
This includes: * All of the prototyping and KNF changes. * The new interrupt system. * Portions of the Domain Keyboard support from Mike Smith. This does not include: * m68k changes, namely generic dumps. Various sundry changes and fixes by me.
1997-02-10Kill COMPAT_NOLABEL. It is not appropiate in the modern world.Jason Downs
1997-02-10Support 16 partitions.Jason Downs
1997-02-03Merge new config(8) support from NetBSD, by Jason Thorpe.Jason Downs
Also add siginfo glue, BOOT_CONFIG, and various other changes.
1997-01-12Mostly sync to NetBSD-current of 011196. Compiles, links, boots to singleJason Downs
user. KNOWN NOT WORKING: * DIO-II devices * Dynamic executables NOT EVEN TRIED: * New config support
1996-06-23sync to 0622Theo de Raadt
1996-04-25sync w/ Net 960424Michael Shalayeff
1996-01-12from netbsd;Theo de Raadt
New generic disk framework. Highlights: New metrics handling. Metrics are now kept in the new `struct disk'. Busy time is now stored as a timeval, and transfer count in bytes. Storage for disklabels is now dynamically allocated, so that the size of the disk structure is not machine-dependent. Several new functions for attaching and detaching disks, and handling metrics calculation. Old-style instrumentation is still supported in drivers that did it before. However, old-style instrumentation is being deprecated, and will go away once the userland utilities are updated for the new framework. For usage and architectural details, see the forthcoming disk(9) manual page.
1995-12-14update from netbsd (verbatim)Theo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt