summaryrefslogtreecommitdiffstats
path: root/sys/geom
Commit message (Collapse)AuthorAgeFilesLines
* Fix a {} bug which doesn't have any effect yet.phk2002-04-271-2/+1
| | | | Spotted by: jake
* Improve the cross-references in the XML output.phk2002-04-241-12/+9
| | | | | Explained by: des Sponsored by: DARPA & NAI Labs.
* Make specific provisions for the kernel simulator used in the regressionphk2002-04-241-1/+1
| | | | | | tests, other userland programs may need to include <geom/geom.h>. Sponsored by: DARPA & NAI Labs.
* Implement the GEOMGETCONF ioctl which returns vital stats for thephk2002-04-234-14/+43
| | | | | | current device in XML in an sbuf. Sponsored by: DARPA & NAI Labs
* All in a days work: make a function static.phk2002-04-232-2/+1
|
* Introduce some serious paranoia to try to catch a memory overwrite problemphk2002-04-235-6/+63
| | | | | | as early as possible. Sponsored by: DARPA & NAI Labs
* Protect against multitple #includes of this file.phk2002-04-221-0/+4
|
* Make kernel dumps work with GEOM.phk2002-04-194-0/+53
| | | | | | | | | | Notice that if the device on which the dump is set is destroyed for any reason, the dump setting is lost. This in particular will happen in the case of spoilage. For instance if you set dump on ad0s1b and open ad0 for writing, ad0s* will be spoilt and the dump setting lost. See geom(4) for more about spoiling. Sponsored by: DARPA & NAI Labs.
* Make life easier for reference-vector generatorts in tools/regression/geomphk2002-04-191-0/+3
| | | | | | by including a FreeBSD friendly CVS identifier in the XML output. Sponsored by: DARPA & NAI Labs.
* Implement DIOCGFRONTSTUFF ioctl which reports how many bytes from the startphk2002-04-098-43/+87
| | | | | | of the device magic stuff might occupy. Sponsored by: DARPA & NAI Labs.
* Various stylistic nit picking.phk2002-04-093-16/+16
| | | | Sponsored by: DARPA & NAI Labs.
* Introduce the convenience function g_getattr() and make it DWIM.phk2002-04-092-0/+15
| | | | Sponsored by: DARPA & NAI Labs.
* Constifixation of attribute argument to g_io_[gs]etattr()phk2002-04-092-4/+4
| | | | 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
* In reverence of the 3rd X11 development rule:phk2002-04-082-6/+0
| | | | | | | | | | 3.The only thing worse than generalizing from one example is generalizing from no examples at all. Remove the fwcylinders attribute before anybody gets the idea that we alone have squared the circle. Sponsored by: DARPA & NAI Labs.
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-042-2/+2
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* Centralize EOF handling and improve access controls for bio scheduling.phk2002-04-044-44/+71
| | | | Sponsored by: DARPA & NAI Labs
* Move access and orphan member functions from class to geom.phk2002-04-0411-36/+31
| | | | Sponsored by: DARPA & NAI Labs
* s/classs/classes/ to fixup grammer after the previous global renaming.phk2002-04-044-8/+8
| | | | Sponsored by: DARPA & NAI Labs
* Retire the bogus ioctl DIOCGPART in toto.phk2002-04-022-20/+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
|
* Initialize a field to cater for ata-raidphk2002-04-021-0/+1
|
* Here follows the new kernel dumping infrastructure.phk2002-03-311-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Caveats: The new savecore program is not complete in the sense that it emulates enough of the old savecores features to do the job, but implements none of the options yet. I would appreciate if a userland hacker could help me out getting savecore to do what we want it to do from a users point of view, compression, email-notification, space reservation etc etc. (send me email if you are interested). Currently, savecore will scan all devices marked as "swap" or "dump" in /etc/fstab _or_ any devices specified on the command-line. All architectures but i386 lack an implementation of dumpsys(), but looking at the i386 version it should be trivial for anybody familiar with the platform(s) to provide this function. Documentation is quite sparse at this time, more to come. Details: ATA and SCSI drivers should work as the dump formatting code has been removed. The IDA, TWE and AAC have not yet been converted. Dumpon now opens the device and uses ioctl(DIOCGKERNELDUMP) to set the device as dumpdev. To implement the "off" argument, /dev/null is used as the device. Savecore will fail if handed any options since they are not (yet) implemented. All devices marked "dump" or "swap" in /etc/fstab will be scanned and dumps found will be saved to diskfiles named from the MD5 hash of the header record. The header record is dumped in readable format in the .info file. The kernel is not saved. Only complete dumps will be saved. All maintainer rights for this code are disclaimed: feel free to improve and extend. Sponsored by: DARPA, NAI Labs
* Remove bogus ccddump() function in favour of the standard nodump.phk2002-03-291-10/+1
|
* Complete an incomplete cut&paste operation.phk2002-03-281-3/+3
|
* Add preliminary PC98 class to GEOM.phk2002-03-281-0/+189
| | | | | | | | I have not been able to find very much information about the PC98 extended partition layout so this is gleaned from the source in our pc98 architecture. Corrections and patched very welcome. Sponsored by: DARPA and NAI Labs.
* In the absense of any smarter way to do this, cast various printfphk2002-03-286-13/+15
| | | | arguments to silence printf format warnings.
* Calculate the checksum the right place for alpha. The fact that thisphk2002-03-271-1/+1
| | | | | worked for the beast disklabel only goes to show how weak a simple parity really is.
* Eliminate some thread pointers which do not make sense anymore.phk2002-03-2614-90/+140
| | | | | Split private parts of geom.h into geom_int.h. The latter should never be included in class implemtations.
* Cave in to tradition and rename "methods" to "classes".phk2002-03-2612-122/+122
|
* Push BIO_FORMAT into a local hack inside the floppy drivers wherephk2002-03-261-1/+0
| | | | it belongs.
* Make the BSD method width/endian agnostic and support alphaphk2002-03-241-11/+187
| | | | | | architecture labels as well. Sponsored by: DARPA, NAI Labs.
* Be more systematic about conversion of on-disk formats in a endian/widthphk2002-03-245-234/+309
| | | | | | | | | agnostic way. Collapse the MBR and MBREXT methods into one file and make them endian/width agnostic. Sponsored by: DARPA & NAI Labs.
* Fix bio->bio_blkno format warning.alfred2002-03-191-4/+4
|
* Add five GEOM oriented ioctls to get basic information about a geom device.phk2002-03-191-11/+31
|
* Need a different #include for the userland regression test.phk2002-03-171-1/+1
|
* Make this compile in the userland-regression testsuite again.phk2002-03-171-13/+3
|
* Change the giant-dropping method a fair bit to keep WITNESS morephk2002-03-171-8/+6
| | | | happy.
* Forgot to remove the old g_malloc() call when I split it.phk2002-03-171-2/+0
| | | | Spotted by: dima
* Hmm, talk about optimizer-fodder. Make the DIOCGDVIRGIN hack work again.phk2002-03-161-6/+4
|
* Add a generic and general ioctl pass-through mechanism.phk2002-03-164-50/+84
| | | | It should now be posible to issue ioctls to SCSI CD drives.
* Teach GEOM about Sun disklabel formats.phk2002-03-151-0/+209
| | | | | | | | | | The detection code in this method is written so that it should work on all architectures which means that you can plug a Sun disk into a i386 now and access the partitions. We still need an endian-agnostic ufs/ffs before this is really interresting, but the main focus was to get sparc64 onto the GEOM trail.
* Try to get used to architectures which are picky about alignment.phk2002-03-151-11/+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.
* First commit of the GEOM subsystem to make it easier for people tophk2002-03-1113-0/+3690
| | | | | | | | | | | | | | | | | | | | | | test and play with this. This is not yet production quality and should be run only on dedicated test boxes. For people who want to develop transformations for GEOM there exist a set of shims to run geom in userland (ask phk@freebsd.org). Reports of all kinds to: phk@freebsd.org Please include in report: dmesg sysctl debug.geomdot sysctl debug.geomconf Known significant limitations: no kernel dump facility. ioctls severely restricted. Sponsored by: DARPA, NAI Labs
* 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
OpenPOWER on IntegriCloud