Revision tags: release/4.7.0_cvs |
|
#
adfa3213 |
| 07-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Copyin and copyout are only possible from a process-native thread, and therefore we need a way for ioctl handlers to run in that thread in GEOM. Rather than invent a complicated registration system
Copyin and copyout are only possible from a process-native thread, and therefore we need a way for ioctl handlers to run in that thread in GEOM. Rather than invent a complicated registration system to recognize which ioctl handler to use for a given ioctl, we still schedule all ioctls down the tree as bio transactions but add a special return code that means "call me directly" and have the geom_dev layer do that.
Use this for all ioctls that make it as far as a diskdriver to avoid any backwards compatibility problems.
Requested by: scottl Sponsored by: DARPA & NAI Labs
show more ...
|
#
72840432 |
| 30-Sep-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Retire g_io_fail() and let g_io_deliver() take an error argument instead.
Sponsored by: DARPA & NAI Labs.
|
#
90b1cd56 |
| 30-Sep-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Introduce g_write_data() function.
Sponsored by: DARPA & NAI Labs
|
#
5b3317e9 |
| 30-Sep-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add missing g_enc_le2().
Sponsored by: DARPA & NAI Labs.
|
#
9169e800 |
| 27-Sep-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Various no-ops:
Add a __unused.
Make the 2byte decoder functions return 16 bits for the benefits of picky lints.
No need to grab giant around a tsleep() when we have a timeout.
Sponsored by: DARP
Various no-ops:
Add a __unused.
Make the 2byte decoder functions return 16 bits for the benefits of picky lints.
No need to grab giant around a tsleep() when we have a timeout.
Sponsored by: DARPA & NAI Labs.
show more ...
|
#
346cd5fe |
| 27-Sep-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Implement g_call_me() as a way for geom methods to schedule operations to be performed in the event-thread.
To do this, we need to lock the eventlist with g_eventlock (nee g_doorlock), since g_call_
Implement g_call_me() as a way for geom methods to schedule operations to be performed in the event-thread.
To do this, we need to lock the eventlist with g_eventlock (nee g_doorlock), since g_call_me() being called from the UP/DOWN paths will not be able to aquire g_topology_lock.
This also means that for now these events are not referenced on any particular consumer/provider/geom.
For UP/DOWN path use, this will not become a problem since the access() function will make sure we drain any bio's before we dismantle.
Sponsored by: DARPA & NAI Labs.
show more ...
|
#
85b62edb |
| 13-Sep-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add a couple more of the big/little-endian conversion routines and make them visible from userland, if need be.
I wish that the C language contained this as part of struct definintions, but failing
Add a couple more of the big/little-endian conversion routines and make them visible from userland, if need be.
I wish that the C language contained this as part of struct definintions, but failing that, I would settle for an agreed upon set of functions for packing/unpacking integers in various sizes from byte-streams which may have unfriendly alignment.
This really belongs in <sys/endian.h> I guess.
show more ...
|
#
4fbd1268 |
| 06-Sep-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Remove "magicspace". It looks good on paper, it doesn't work in practice.
Sponsored by: DARPA & NAI Labs.
|
Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
#
503abe45 |
| 09-Jun-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Improve some on the naming.
Submitted by: iedowse
|
#
678735da |
| 05-Jun-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Change the registration of magic spaces so it does its own memory management.
Sponsored by: DARPA & NAI Labs.
|
#
07107de9 |
| 21-May-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Introduce the concept of "magic spaces", and implement them in most of the relevant classes.
Some methods may implement various "magic spaces", this is reserved or magic areas on the disk, set a sid
Introduce the concept of "magic spaces", and implement them in most of the relevant classes.
Some methods may implement various "magic spaces", this is reserved or magic areas on the disk, set a side for various and sundry purposes. A good example is the BSD disklabel and boot code on i386 which occupies a total of four magic spaces: boot1, the disklabel, the padding behind the disklabel and boot2. The reason we don't simply tell people to write the appropriate stuff on the underlying device is that (some of) the magic spaces might be real-time modifiable. It is for instance possible to change a disklabel while partitions are open, provided the open partitions do not get trampled in the process.
Sponsored by: DARPA & NAI Labs.
show more ...
|
#
4b8374a7 |
| 20-May-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Don't grab Giant around malloc(9) and free(9). Don't grab Giant around wakeup(9). Don't print verbose messages about each device found in geom_dev. Various cleanups.
Sponsored by: DARPA & NAI Labs.
|
#
078c6f01 |
| 24-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Make specific provisions for the kernel simulator used in the regression tests, other userland programs may need to include <geom/geom.h>.
Sponsored by: DARPA & NAI Labs.
|
#
53705e35 |
| 23-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Implement the GEOMGETCONF ioctl which returns vital stats for the current device in XML in an sbuf.
Sponsored by: DARPA & NAI Labs
|
#
7d590cc4 |
| 23-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Introduce some serious paranoia to try to catch a memory overwrite problem as early as possible.
Sponsored by: DARPA & NAI Labs
|
#
efb9df5c |
| 22-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Protect against multitple #includes of this file.
|
#
95c24b31 |
| 19-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Make kernel dumps work with GEOM.
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.
Make kernel dumps work with GEOM.
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.
show more ...
|
#
a4ef1c5f |
| 09-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Introduce the convenience function g_getattr() and make it DWIM.
Sponsored by: DARPA & NAI Labs.
|
#
0d3f37a8 |
| 09-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Constifixation of attribute argument to g_io_[gs]etattr()
Sponsored by: DARPA & NAI Labs
|
#
2fccec19 |
| 04-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Centralize EOF handling and improve access controls for bio scheduling.
Sponsored by: DARPA & NAI Labs
|
#
07d77fc6 |
| 04-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Move access and orphan member functions from class to geom.
Sponsored by: DARPA & NAI Labs
|
#
b1876192 |
| 26-Mar-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Eliminate some thread pointers which do not make sense anymore.
Split private parts of geom.h into geom_int.h. The latter should never be included in class implemtations.
|
#
e805e8f0 |
| 26-Mar-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Cave in to tradition and rename "methods" to "classes".
|
#
3773a65c |
| 24-Mar-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Be more systematic about conversion of on-disk formats in a endian/width agnostic way.
Collapse the MBR and MBREXT methods into one file and make them endian/width agnostic.
Sponsored by: DARPA & N
Be more systematic about conversion of on-disk formats in a endian/width agnostic way.
Collapse the MBR and MBREXT methods into one file and make them endian/width agnostic.
Sponsored by: DARPA & NAI Labs.
show more ...
|
#
117bae1f |
| 17-Mar-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Need a different #include for the userland regression test.
|