summaryrefslogtreecommitdiffstats
path: root/sys/dev/ccd
Commit message (Collapse)AuthorAgeFilesLines
* Remove CCDF_SWAP and CCDF_PARITY, they have never been implemented.phk2003-01-031-21/+4
|
* Remove unused second argument from BIO_STRATEGY()phk2003-01-031-5/+5
|
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-301-1/+1
| | | | Add FreeBSD Id tag where missing.
* - Use vrefcnt() instead of v_usecount.jeff2002-09-251-1/+1
|
* (This commit touches about 15 disk device drivers in a very consistentphk2002-09-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and predictable way, and I apologize if I have gotten it wrong anywhere, getting prior review on a patch like this is not feasible, considering the number of people involved and hardware availability etc.) If struct disklabel is the messenger: kill the messenger. Inside struct disk we had a struct disklabel which disk drivers used to communicate certain metrics to the disklayer above (GEOM or the disk mini-layer). This commit changes this communication to use four explicit fields instead. Amongst the benefits is that the fields do not get overwritten by wrong or bogus on-disk disklabels. Once that is clear, <sys/disk.h> which is included in the drivers no longer need to pull <sys/disklabel.h> and <sys/diskslice.h> in, the few places that needs them, have gotten explicit #includes for them. The disklabel inside struct disk is now only for internal use in the disk mini-layer, so instead of embedding it, we malloc it as we need it. This concludes (modulus any mistakes) the series of disklabel related commits. I belive it all amounts to a NOP for all the rest of you :-) Sponsored by: DARPA & NAI Labs.
* Fix another two printf() format errors which weren't warnedmux2002-09-131-4/+4
| | | | about because the bio_blknos were bogusly casted to long long.
* Fix another printf() format error which wasn't warned aboutmux2002-09-131-2/+3
| | | | because the bio_blkno was bogusly casted to an int.
* Fix a printf() format error on 64 bits architectures.mux2002-09-131-3/+4
| | | | Also fix some style bugs on the same line.
* Fixed printf format errors. Most of them are 64-bit daddr_t casualties.bde2002-05-251-4/+6
| | | | | | | | | | | | Printing daddr_t's using %d format was always an error, but gcc's warning about it was ignored for supported 64-bit arches and not printed for supported 32-bit arches. Hundreds if not thousands thousands of previously "fixed" daddr_t printings are now broken on 32-bit machines by casting daddr_t's to longs. daddr_t's should be printed using %jd format, but this fix uses %lld since %j is not implemented in the kernel yet. Fixed some nearby format printf errors (style bugs).
* Retire the bogus uses of the disklabel field d_sbsize and begin tophk2002-05-121-2/+1
| | | | | | | initialize it to zero so we don't have to have everbody and their aunt including FFS specific header files. Sponsored by: DARPA & NAI Labs.
* Move generic disk ioctls from <sys/disklabel.h> to <sys/disk.h>.phk2002-04-081-1/+1
| | | | Sponsored by: DARPA & NAI Labs
* Retire the bogus ioctl DIOCGPART in toto.phk2002-04-021-9/+0
| | | | | | | Once again we can notice that badly thought out hacks ferment and infect far more code than initially expected. Sponsored by: DARPA and NAI Labs.
* One less user of the bogus DIOCGPART ioctl.phk2002-04-021-12/+16
|
* Remove bogus ccddump() function in favour of the standard nodump.phk2002-03-291-10/+1
|
* Fix bio->bio_blkno format warning.alfred2002-03-191-4/+4
|
* Introduce the new 64-bit size disk block, daddr64_t. Changemckusick2002-03-151-1/+1
| | | | | | | | | | | | the bio and buffer structures to have daddr64_t bio_pblkno, b_blkno, and b_lblkno fields which allows access to disks larger than a Terabyte in size. This change also requires that the VOP_BMAP vnode operation accept and return daddr64_t blocks. This delta should not affect system operation in any way. It merely sets up the necessary interfaces to allow the development of disk drivers that work with these larger disk block addresses. It also allows for the development of UFS2 which will use 64-bit block addresses.
* Simple p_ucred -> td_ucred changes to start using the per-thread ucredjhb2002-02-271-5/+5
| | | | reference.
* Reduce kernel stack usage of ccdinit() by MAXPATHLEN by using MALLOC(9).phk2001-12-301-2/+7
| | | | | Submitted by: Maxim Konovalov <maxim@macomnet.ru> MFC after: 1 week
* Return EOPNOTSUPP for unknown module events.iedowse2001-11-171-1/+4
| | | | | PR: kern/18473 Submitted by: "Jeroen C. van Gelderen" <gelderen@systemics.com>
* KSE Milestone 2julian2001-09-121-20/+20
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Fix some signed/unsigned integer confusion, and add bounds checking ofkris2001-09-101-0/+3
| | | | | | | | arguments to some functions. Obtained from: NetBSD Reviewed by: peter MFC after: 2 weeks
* Kill the NCCD constant by modernizing the ccd driver.phk2001-09-041-194/+223
| | | | | Submitted by: sobomax Reviewed by: phk
* Polish error handling with biofinish().phk2001-05-081-14/+15
|
* Actually biofinish(struct bio *, struct devstat *, int error) is more generalphk2001-05-061-2/+1
| | | | | | than the bioerror(). Most of this patch is generated by scripts.
* fix a number of printf format string warnings inside DEBUG ifdefsgallatin2001-03-291-14/+15
|
* Send the remains (such as I have located) of "block major numbers" tophk2001-03-261-2/+0
| | | | the bit-bucket.
* Fix a braino in ccd's clone routine.phk2001-01-291-1/+1
| | | | Submitted by: tegge
* Back out proc locking to protect p_ucred for obtaining additionaljhb2001-01-271-34/+6
| | | | references along with the actual obtaining of additional references.
* Proc locking in the form of using the proc lock to protect p_ucred whilejhb2001-01-231-6/+34
| | | | we obtain another reference to it for vnode operations.
* Convert more malloc+bzero to malloc+M_ZERO.dwmalone2000-12-081-2/+2
| | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net>
* Avoid the modules madness I inadvertently introduced by making thephk2000-09-021-12/+2
| | | | | | | | | | | | | | | | | | cloning infrastructure standard in kern_conf. Modules are now the same with or without devfs support. If you need to detect if devfs is present, in modules or elsewhere, check the integer variable "devfs_present". This happily removes an ugly hack from kern/vfs_conf.c. This forces a rename of the eventhandler and the standard clone helper function. Include <sys/eventhandler.h> in <sys/conf.h>: it's a helper #include like <sys/queue.h> Remove all #includes of opt_devfs.h they no longer matter.
* Give ccd a cloning function.phk2000-08-291-8/+32
|
* Move the truncation code out of vn_open and into the open system callmckusick2000-07-041-2/+3
| | | | | | | | | | after the acquisition of any advisory locks. This fix corrects a case in which a process tries to open a file with a non-blocking exclusive lock. Even if it fails to get the lock it would still truncate the file even though its open failed. With this change, the truncation is done only after the lock is successfully acquired. Obtained from: BSD/OS
* Separate the struct bio related stuff out of <sys/buf.h> intophk2000-05-051-1/+1
| | | | | | | | | | | | | | | <sys/bio.h>. <sys/bio.h> is now a prerequisite for <sys/buf.h> but it shall not be made a nested include according to bdes teachings on the subject of nested includes. Diskdrivers and similar stuff below specfs::strategy() should no longer need to include <sys/buf.> unless they need caching of data. Still a few bogus uses of struct buf to track down. Repocopy by: peter
* Convert to struct bio instead of struct buf.phk2000-05-011-90/+75
|
* Remove unneeded #include <vm/vm_zone.h>phk2000-04-301-1/+0
| | | | Generated by: src/tools/tools/kerninclude
* Complete the bio/buf divorce for all code below devfs::strategyphk2000-04-151-5/+6
| | | | | | | | | | Exceptions: Vinum untouched. This means that it cannot be compiled. Greg Lehey is on the case. CCD not converted yet, casts to struct buf (still safe) atapi-cd casts to struct buf to examine B_PHYS
* Move B_ERROR flag to b_ioflags and call it BIO_ERROR.phk2000-04-021-6/+7
| | | | | | | | | | | | | (Much of this done by script) Move B_ORDERED flag to b_ioflags and call it BIO_ORDERED. Move b_pblkno and b_iodone_chain to struct bio while we transition, they will be obsoleted once bio structs chain/stack. Add bio_queue field for struct bio aware disksort. Address a lot of stylistic issues brought up by bde.
* Rename the existing BUF_STRATEGY() to DEV_STRATEGY()phk2000-03-201-11/+5
| | | | | | | | substitute BUF_WRITE(foo) for VOP_BWRITE(foo->b_vp, foo) substitute BUF_STRATEGY(foo) for VOP_STRATEGY(foo->b_vp, foo) This patch is machine generated except for the ccd.c and buf.h parts.
* Remove B_READ, B_WRITE and B_FREEBUF and replace them with a newphk2000-03-201-9/+11
| | | | | | | | | | | | | | | | | | | | | field in struct buf: b_iocmd. The b_iocmd is enforced to have exactly one bit set. B_WRITE was bogusly defined as zero giving rise to obvious coding mistakes. Also eliminate the redundant struct buf flag B_CALL, it can just as efficiently be done by comparing b_iodone to NULL. Should you get a panic or drop into the debugger, complaining about "b_iocmd", don't continue. It is likely to write on your disk where it should have been reading. This change is a step in the direction towards a stackable BIO capability. A lot of this patch were machine generated (Thanks to style(9) compliance!) Vinum users: Greg has not had time to test this yet, be careful.
* Remove #if NCCD > 0 - it's guaranteed to be true by config if ccd.c ispeter2000-01-291-2/+0
| | | | being compiled. (NCCD is used elsewhere though :-( )
* Cleanup some remaining bdev fluff.phk2000-01-161-35/+6
|
* Give vn_isdisk() a second argument where it can return a suitable errno.phk2000-01-101-3/+1
| | | | Suggested by: bde
* Remove unused variableeivind1999-12-211-1/+0
|
* Introduce NDFREE (and remove VOP_ABORTOP)eivind1999-12-151-6/+13
|
* Revamp the devstat priority system. All disks now have the same priority.ken1999-12-081-2/+2
| | | | | | | | | | | | | | | | | | The same goes for CD drivers and tape drivers. In systems with mixed IDE and SCSI, devices in the same priority class will be sorted in attach order. Also, the 'CCD' priority is now the 'ARRAY' priority, and a number of drivers have been modified to use that priority. This includes the necessary changes to all drivers, except the ATA drivers. Soren will modify those separately. This does not include and does not require any change in the devstat version number, since no known userland applications use the priority enumerations. Reviewed by: msmith, sos, phk, jlemon, mjacob, bde
* Convert various pieces of code to use vn_isdisk() rather than checkingphk1999-11-221-12/+1
| | | | | | | | for vp->v_type == VBLK. In ccd: we don't need to call VOP_GETATTR to find the type of a vnode. Reviewed by: sos
* Remove the devsw magic from DEV_MODULE()phk1999-11-071-1/+2
|
* Removal of sys/device.hn_hibma1999-10-051-1/+0
| | | | | | | | | | | | | - Move intrhook stuff into kernel.h - Remove all occurrences of #device <device.h> - Add kernel.h were necessary (nowhere) - delete device.h This file contained the structures for cfdata (old style config) and is no longer used. It was included by most drivers. It confuses the remote debugger as the definition of 'struct device' in device.h is found before the one in bus_private.h.
* Correct typo in comment. putccdbuf() releases a buffer, it doesn't allocate ↵grog1999-09-271-1/+1
| | | | one.
OpenPOWER on IntegriCloud