#
5a67919a |
| 29-Jan-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add code to repsect the D_NOGIANT flag, should the disk device driver set it. NO_GEOM cleanup: remove ifdefs.
Still untested.
|
#
44956c98 |
| 21-Jan-2003 |
Alfred Perlstein <alfred@FreeBSD.org> |
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
|
#
c0805171 |
| 20-Jan-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
disk_dev_synth() is a NO_GEOM hack.
|
#
30f5ffb8 |
| 20-Jan-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Remove need for <sys/diskslice.h> but retain numerical compatibilty just in case.
|
Revision tags: release/5.0.0_cvs, release/5.0.0 |
|
#
0f9d3dba |
| 16-Dec-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Constification and some s/int/u_int/ changes.
|
#
d518e539 |
| 28-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add the remaning part of the new libdisk interaction.
WARNING: This is not a published interface, it is a stopgap measure for WARNING: libdisk so we can get 5.0-R out of the door.
Sponsored by: D
Add the remaning part of the new libdisk interaction.
WARNING: This is not a published interface, it is a stopgap measure for WARNING: libdisk so we can get 5.0-R out of the door.
Sponsored by: DARPA & NAI Labs
show more ...
|
#
3d5500fc |
| 25-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Reduce the GEOM verbosity under bootverbose to something more sufferable. This is not quite the set of information I would want, but the tree where I have the "correct" version is messed up with conf
Reduce the GEOM verbosity under bootverbose to something more sufferable. This is not quite the set of information I would want, but the tree where I have the "correct" version is messed up with conflicts.
Sponsored by: DARPA & NAI Labs.
show more ...
|
#
3f12caa1 |
| 20-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Now that the sectorsize and mediasize are properties of the provider, don't take the detour over the I/O path to discover them using getattr(), we can just pick them out directly.
Do note though, th
Now that the sectorsize and mediasize are properties of the provider, don't take the detour over the I/O path to discover them using getattr(), we can just pick them out directly.
Do note though, that for now they are only valid after the first open of the underlying disk device due compatibility with the old disk_create() API. This will change in the future so they will always be valid.
Sponsored by: DARPA & NAI Labs.
show more ...
|
#
48444d62 |
| 20-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Make the sectorsize a property of providers so we can include it in the XML output.
Sponsored by: DARPA & NAI Labs
|
#
9e2ebaa0 |
| 20-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
It makes more sense for the fwheads and fwsectors properties to be in the provider stanza rather than the geom stanza.
|
#
8f9628a1 |
| 20-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Include fwsectors and gfwheads in the XML output for the disks we know.
Sponsored by: DARPA & NAI Labs.
|
#
aed99af2 |
| 17-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
NUL terminate sysctl kern.disks
|
#
8523987b |
| 11-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
The CAM system has it's own ideas of what locks are to be held by whom. So do GEOM. Not a pretty sight.
Take all the interesting stuff out of GEOM::disk_create(), and leave just the creation of the
The CAM system has it's own ideas of what locks are to be held by whom. So do GEOM. Not a pretty sight.
Take all the interesting stuff out of GEOM::disk_create(), and leave just the creation of the fake dev_t. Schedule the topology munging to happen in the g_event thread with g_call_me().
This makes disk_create() pretty lock-agnostic, almost lock-atheist.
Tripped over by: peter Sponsored by: DARPA & NAI Labs
show more ...
|
Revision tags: release/4.7.0_cvs |
|
#
b362694c |
| 07-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Correctly deal with non-DEVBSIZE drives. Allow BIO_DELETE through too.
This fixes swap-backed md(4) devices.
Sponsored by: DARPA & NAI Labs.
|
#
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 ...
|
#
1fc1a1ef |
| 05-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
This patch got lost in my trees: Pass setattr down to device drivers as well.
Detected by: scottl Sponsored by: DARPA & NAI Labs.
|
#
3bd65612 |
| 05-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
NB: This commit does *NOT* make GEOM the default in FreeBSD NB: But it will enable it in all kernels not having options "NO_GEOM"
Put the GEOM related options into the intended order.
Add "options
NB: This commit does *NOT* make GEOM the default in FreeBSD NB: But it will enable it in all kernels not having options "NO_GEOM"
Put the GEOM related options into the intended order.
Add "options NO_GEOM" to all kernel configs apart from NOTES.
In some order of controlled fashion, the NO_GEOM options will be removed, architecture by architecture in the coming days.
There are currently three known issues which may force people to need the NO_GEOM option:
boot0cfg/fdisk: Tries to update the MBR while it is being used to control slices. GEOM does not allow this as a direct operation.
SCSI floppy drives: Appearantly the scsi-da driver return "EBUSY" if no media is inserted. This is wrong, it should return ENXIO.
PC98: It is unclear if GEOM correctly recognizes all variants of PC98 disklabels. (Help Wanted! I have neither docs nor HW)
These issues are all being worked.
Sponsored by: DARPA & NAI Labs.
show more ...
|
#
0cc3011d |
| 04-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Implement the "kern.disks" sysctl in GEOM.
This makes "mdconfig -l" work again.
Sponsored by: DARPA & NAI Labs.
|
#
8be2bc5c |
| 04-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Properly conditionalize a debugging printf.
Sponsored by: DARPA & NAI Labs.
|
#
2fcf0b5c |
| 01-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Don't restrict device drivers ability to sleep in the ioctl method, this is actually entirely legal.
Do bio's with ioctls in them in a g_call_me() function.
Sponsored by: DARPA & NAI Labs
|
#
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.
|
#
4ae67700 |
| 28-Sep-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Style, whitespace and lint fixes.
Sponsored by: DARPA & NAI Labs.
|
#
7812d86f |
| 20-Sep-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
(This commit touches about 15 disk device drivers in a very consistent and predictable way, and I apologize if I have gotten it wrong anywhere, getting prior review on a patch like this is not feasib
(This commit touches about 15 disk device drivers in a very consistent 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.
show more ...
|
#
c51f3753 |
| 13-Sep-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
"Fix" printf format issues by using %j
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
|