#
887ae9a1 |
| 30-May-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Zap a redundant NULL
|
Revision tags: release/4.10.0_cvs, release/4.10.0 |
|
#
bbf15239 |
| 11-May-2004 |
Søren Schmidt <sos@FreeBSD.org> |
Dont try to finish devstat's if the disk pointer is NULL, this can happen when a disk has been destroyed but still has outstanding bio's.
Reviewed by: phk
|
Revision tags: release/5.2.1_cvs, release/5.2.1 |
|
#
0b7ed341 |
| 18-Feb-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Change the disk(9) API in order to make device removal more robust.
Previously the "struct disk" were owned by the device driver and this gave us problems when the device disappared and the users of
Change the disk(9) API in order to make device removal more robust.
Previously the "struct disk" were owned by the device driver and this gave us problems when the device disappared and the users of that device were not immediately disappearing.
Now the struct disk is allocate with a new call, disk_alloc() and owned by geom_disk and just abandonned by the device driver when disk_create() is called.
Unfortunately, this results in a ton of "s/\./->/" changes to device drivers.
Since I'm doing the sweep anyway, a couple of other API improvements have been carried out at the same time:
The Giant awareness flag has been flipped from DISKFLAG_NOGIANT to DISKFLAG_NEEDSGIANT
A version number have been added to disk_create() so that we can detect, report and ignore binary drivers with old ABI in the future.
Manual page update to follow shortly.
show more ...
|
#
99cf2f94 |
| 10-Feb-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
don't call sbuf_clear() right after sbuf_new(), it is not necessary.
|
#
12047230 |
| 07-Feb-2004 |
Pawel Jakub Dawidek <pjd@FreeBSD.org> |
Allow decreasing access count even if there is no disk anymore. This will allow closing disks that were removed while opened.
Approved by: phk, scottl (mentor)
|
#
8cae62ee |
| 23-Jan-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Remove no longer necessary debug printfs
|
Revision tags: release/5.2.0_cvs, release/5.2.0 |
|
#
2cf0d8a6 |
| 08-Dec-2003 |
Don Lewis <truckman@FreeBSD.org> |
Correct usage of mtx_init() API. This is not a functional change since the code happened to work because MTX_DEF and NULL are both defined as 0.
Reviewed by: phk
|
Revision tags: release/4.9.0_cvs, release/4.9.0 |
|
#
3916828f |
| 18-Oct-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Retire bio_blkno entirely.
bio_offset is the field drivers should use. bio_pblkno remains as a convenient place to store the number of the device drivers.
|
#
5774cead |
| 29-Sep-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Return ENODEV in case the driver has no dump routine.
|
#
eb98005f |
| 23-Sep-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Be more careful in dumpconf: softc may be NULL for departing devices.
Allow drivers to initialize the d_devstat if they want magic params.
|
#
497c3347 |
| 01-Sep-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Simplify the ioctl handling in GEOM.
This replaces the current ioctl processing with a direct call path from geom_dev() where the ioctl arrives (from SPECFS) to any directly connected GEOM class.
T
Simplify the ioctl handling in GEOM.
This replaces the current ioctl processing with a direct call path from geom_dev() where the ioctl arrives (from SPECFS) to any directly connected GEOM class.
The inverse of the above is no longer supported. This is the situation were you have one or more intervening GEOM classes, for instance a BSDlabel on top of a MBR or PC98. If you want to issue MBR or PC98 specific ioctls, you will need to issue them on a MBR or PC98 providers.
This paves the way for inviting CD's, FD's and other special cases inside GEOM.
show more ...
|
#
ce1ee789 |
| 01-Sep-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Try to close the race between disk_destroy() and a subsequent disk_create().
|
#
50b1faef |
| 11-Jun-2003 |
David E. O'Brien <obrien@FreeBSD.org> |
Use __FBSDID().
Approved by: phk
|
Revision tags: release/5.1.0_cvs, release/5.1.0 |
|
#
6c87f8d5 |
| 31-May-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Introduce a init and fini member functions on a class.
Use ->init() and ->fini() to handle the mutex in geom_disk.c
Remove the g_add_class() function and replace it with a standardized g_modevent()
Introduce a init and fini member functions on a class.
Use ->init() and ->fini() to handle the mutex in geom_disk.c
Remove the g_add_class() function and replace it with a standardized g_modevent() function.
This adds the basic infrastructure for loading/unloading GEOM classes
show more ...
|
#
f075585f |
| 31-May-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Remove the G_CLASS_INITIALIZER, we do not need it anymore.
|
#
43f0db6c |
| 25-May-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Don't do silly thing if the disk_create() event gets canceled.
Approved by: re/scottl
|
#
67fd2837 |
| 21-May-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Return ENXIO if the softc pointer is NULL, in all likelyhood the disk is in the process of disappearing.
Approved by: re/rwats*
|
#
3eb8c738 |
| 12-May-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
When a disk disappears, destroy the class from the event thread to avoid race condtion.
Approved by: re/rwatson
|
#
03af3a23 |
| 02-May-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Use g_wither_geom() for cleanup.
|
#
0a9c130c |
| 23-Apr-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Introduce a g_waitfor_event() function which posts an event and waits for it to be run (or cancelled) and use this instead of home-rolled versions.
|
#
8cd1535a |
| 23-Apr-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Rename g_call_me() to g_post_event(), and give it a flag argument to determine if we can M_WAITOK in malloc.
|
#
4eba52a2 |
| 03-Apr-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Remove all references to BIO_SETATTR. We will not be using it.
|
Revision tags: release/4.8.0_cvs, release/4.8.0 |
|
#
316aed03 |
| 02-Apr-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add handling for cancelled events in the g_call_me() methods.
|
#
afcbcfae |
| 02-Apr-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Change events to have an array of "void *" references, and give the event posting functions varargs to fill these.
Attribute g_call_me() to appropriate g_geom's where necessary.
Add a flag argument
Change events to have an array of "void *" references, and give the event posting functions varargs to fill these.
Attribute g_call_me() to appropriate g_geom's where necessary.
Add a flag argument to g_call_me() methods which will be used to signal cancellation of events in the future.
This commit should be a no-op.
show more ...
|
#
4752f757 |
| 01-Apr-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Include <geom/geom_disk.h> not <sys/disk.h>
|