summaryrefslogtreecommitdiffstats
path: root/sys/dev/vn
Commit message (Collapse)AuthorAgeFilesLines
* Call bdevsw_add_generic() later so that there is no chance of returningbde1996-08-281-4/+4
| | | | | | | | with an inconsistent state. I think the return actually "can't happen". Cleaned up style of recent changes. I only fiddled with this because of bugs in recent changes.
* Some cleanups to the callout lists recently added.julian1996-08-221-2/+2
| | | | | | | | note that at_shutdown has a new parameter to indicate When during a shutdown the callout should be made. also add a RB_POWEROFF flag to reboot "howto" parameter.. tells the reboot code in our at_shutdown module to turn off the UPS and kill the power. bound to be useful eventually on laptops
* oops apparently this wasn't in my test compile, becasue it didn'tjulian1996-08-191-3/+4
|
* Collect all the functioons concerned with rebooting into one placejulian1996-08-191-5/+6
| | | | | also add the at_shutdown callout list, and change the one user of the present (broken) method (the vn driver) to use the new scheme.
* Make a "DWIM" function for adding [bc]devsw entries for bdev drivers.phk1996-07-231-14/+3
| | | | | | | | | Saves about 280 butes of source per driver, 56 bytes in object size and another 56 bytes moves from data to bss. No functional change intended nor expected. GENERIC should be about one k smaller now :-)
* Removed an unused devfs variable again.bde1996-03-281-2/+2
| | | | Added $Id$.
* Reviewed by: julian@freebsd.orgscrappy1996-03-281-0/+1
|
* Fixed group of disk devices (was wheel or games, now operator).bde1996-03-271-6/+6
| | | | | | | | | | | Added scsi control devices. Converted almost everything that I changed to use devfs_add_devswf() and verbose id macros. st.c: Renamed enrst* to erst* since that's what the current name is (enrst seems to be an old name).
* Always dsgone() slices when we leave.phk1996-03-171-3/+2
|
* First attempt at creating devfs entries for sliced devices. Doesn'tbde1996-01-271-10/+25
| | | | | | | | | | | | | | | | | | | | quite work yet, so the heart of it is disabled. Added bdev and cdev args to dsopen(). drivers: Fixed device names, links, minor numbers and modes. wd.c: Started actually supporting devfs. diskslice.h: Added devfs tokens to structs (currently 576 of them per disk! :-(). subr_diskslice.c: Create devfs entries in dsopen() and (unsuccessfully) attempt to make them go away at the right times. DEVFS is #undefed at the start so that this shouldn't cause problems.
* Fixed an overflowing multiplication in vnstrategy() by replacing it withbde1996-01-141-13/+16
| | | | | | | | | the standard macro dbtob(). The non-B_PAGING case now works well enough to run newfs on a 32GB virtual drive. Fixed numerous bogus variable types and one overflowing multiplication in the B_PAGING case of vnstrategy(). Swapping to virtual drives larger than 2GB might work now.
* Staticize.phk1995-12-091-9/+6
|
* Julian forgot to make the *devsw structures static.phk1995-12-081-2/+2
|
* Pass 3 of the great devsw changesjulian1995-12-081-29/+33
| | | | | | | | | | | | | | | | | | | | | | | most devsw referenced functions are now static, as they are in the same file as their devsw structure. I've also added DEVFS support for nearly every device in the system, however many of the devices have 'incorrect' names under DEVFS because I couldn't quickly work out the correct naming conventions. (but devfs won't be coming on line for a month or so anyhow so that doesn't matter) If you "OWN" a device which would normally have an entry in /dev then search for the devfs_add_devsw() entries and munge to make them right.. check out similar devices to see what I might have done in them in you can't see what's going on.. for a laugh compare conf.c conf.h defore and after... :) I have not doen DEVFS entries for any DISKSLICE devices yet as that will be a much more complicated job.. (pass 5 :) pass 4 will be to make the devsw tables of type (cdevsw * ) rather than (cdevsw) seems to work here.. complaints to the usual places.. :)
* If you're going to mechanically replicate something in 50 filesjulian1995-11-291-1/+1
| | | | it's best to not have a (compiles cleanly) typo in it! (sigh)
* OK, that's it..julian1995-11-291-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | That's EVERY SINGLE driver that has an entry in conf.c.. my next trick will be to define cdevsw[] and bdevsw[] as empty arrays and remove all those DAMNED defines as well.. Each of these drivers has a SYSINIT linker set entry that comes in very early.. and asks teh driver to add it's own entry to the two devsw[] tables. some slight reworking of the commits from yesterday (added the SYSINIT stuff and some usually wrong but token DEVFS entries to all these devices. BTW does anyone know where the 'ata' entries in conf.c actually reside? seems we don't actually have a 'ataopen() etc... If you want to add a new device in conf.c please make sure I know so I can keep it up to date too.. as before, this is all dependent on #if defined(JREMOD) (and #ifdef DEVFS in parts)
* Fix a printf.phk1995-11-201-1/+1
|
* Kill setting of b_pfcent - it's unused.dg1995-11-191-1/+0
|
* Moved prototypes for devswitch functions from conf.c and driver sourcesbde1995-11-041-6/+0
| | | | | | | to <machine/conf.h>. conf.h was mechanically generated by `grep ^d_ conf.c >conf.h'. This accounts for part of its ugliness. The prototypes should be moved back to the driver sources when the functions are staticalized.
* Fix benign type mismatches in devsw functions. 82 out of 299 devswbde1995-09-081-4/+4
| | | | functions were wrong.
* Fixed VOP_BMAP. A new argument was added, and I missed this one.dyson1995-09-041-1/+1
| | | | Submitted by: Bruce Evans (bde@freebsd.org)
* Remove trailing whitespace.rgrimes1995-05-301-11/+11
|
* Change dsioctl() interface to allow DIOCSYNCSLICEINFO to update the caller'sbde1995-04-301-2/+3
| | | | slice pointer and to print the device name in error messages.
* (Sorry about prev. blank message - I realised I needed a change too late).gpalmer1995-04-281-1/+1
| | | | Removed unused var. and correct a printf formatting string.
* *** empty log message ***gpalmer1995-04-281-1/+1
|
* Escentially a rewrite by John Dyson. This is disgusting, and John agrees,dg1995-04-191-164/+127
| | | | | but the whole thing is, so what the hell. :-) This version is expected to work.
* A substantial change to the way this works. Not the "TEST_LABELING" isphk1995-03-111-126/+139
| | | | a option you can turn on and of on the fly, as is debugging.
* Fake the geometry to be 32 sectors * 64 heads * (vn->sc_size / 2048)bde1995-03-041-13/+6
| | | | | | cylinders instead of vn->sc_size * 1 * 1. Remove unnecessary tests of the unit numbern vnioctl().
* Missed a reference to numvnd.phk1995-03-021-1/+1
| | | | Thanks Ollivier.
* Less bogus allocation of softc to avoid races.phk1995-03-011-30/+17
| | | | Thanks for the hint David!
* Remove YF comments.bde1995-02-251-2/+2
|
* Remove the #error that temporarily stopped this from supporting slices andbde1995-02-221-1/+0
| | | | | | | | | | | | | | | | labels. Please test the slice/label features: cd /dev; sh MAKEDEV svn0 cd /var/tmp; dd if=/dev/zero of=vnfile bs=8192 count=1024 vnconfig -c /dev/rvn0 /var/tmp/vnfile fdisk /dev/rvn0 # invent a geometry, create one BSD partition disklabel -r -w vn0 floppy # a convenient (bogus) label disklabel -e vn0 # edit label to match device newfs /dev/rvn0a mount /dev/vn0a /mnt ... The steps after the fdisk could name the device vn0s1 instead of vn0.
* Temporarily stop this compiling if the option TEST_LABELLING is definedbde1995-02-161-0/+1
| | | | | so that new slice support code can be installed without risk of corrupting vn devices (if any).
* YF fix.phk1995-02-141-16/+20
| | | | | Reviewed by: phk Submitted by: yves@dutncp8.tn.tudelft.nl (Yves Fonk)
* Fixed incorrect bufsize assignment that was causing a panic.dg1995-02-131-1/+1
| | | | Submitted by: John Dyson
* Warning: vn doesn't work just now. I havn't found out why. This commitphk1995-01-301-24/+0
| | | | just removes a couple of unused functions.
* Continue implementing disk slices and labels for the vn driver. Everythingbde1994-12-161-16/+38
| | | | | | | | is supposed to work except "media removal" (shutting down the vn driver) while some partitions are open. Fix some errnos: return ENOTTY, not ENXIO for unknown ioctls; return ENODEV, not ENXIO for the unsupported dump operation.
* An inconsequential #ifdef Bruce forgot.phk1994-12-161-0/+2
|
* Implement disk slices and labels for the vn driver. This is intended mainlybde1994-12-121-11/+93
| | | | | for testing and is only enabled if TEST_LABELLING is defined. It won't actually work until DOS goop is removed from ufs_disksubr.c.
* Avoid a panic if vn is configured as swapdev. Seems to work fine.phk1994-12-061-3/+6
|
* The vn driver from 4.4_litephk1994-12-041-0/+550
OpenPOWER on IntegriCloud