| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
mini-layer. I don't have time to bing it forward into the GEOM world, and
no one else has stepped forward to claim it. It'll be in the Attic for safe
keeping for now.
Notes:
svn path=/head/; revision=127066
|
| |
|
|
|
|
|
|
|
|
| |
two free commands.
Reported by: "Ted Unangst" <tedu@coverity.com>
Approved by: rwatson (mentor), scottl
Notes:
svn path=/head/; revision=126114
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove the unused second argument from udev2dev().
Convert all remaining users of makedev() to use udev2dev(). The
semantic difference is that udev2dev() will only locate a pre-existing
dev_t, it will not line makedev() create a new one.
Apart from the tiny well controlled windown in D_PSEUDO drivers,
there should no longer be any "anonymous" dev_t's in the system
now, only dev_t's created with make_dev() and make_dev_alias()
Notes:
svn path=/head/; revision=126081
|
| |
|
|
|
|
|
|
|
|
|
| |
Introduce d_version field in struct cdevsw, this must always be
initialized to D_VERSION.
Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing
four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
Notes:
svn path=/head/; revision=126080
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=125975
|
| |
|
|
|
|
|
| |
unbreaking LINT on i386's.
Notes:
svn path=/head/; revision=123829
|
| |
|
|
| |
Notes:
svn path=/head/; revision=121209
|
| |
|
|
|
|
|
|
| |
bp->b_iooffset (the spot on the disk), not bp->b_offset (the offset in
the file)
Notes:
svn path=/head/; revision=121205
|
| |
|
|
| |
Notes:
svn path=/head/; revision=121195
|
| |
|
|
| |
Notes:
svn path=/head/; revision=121187
|
| |
|
|
| |
Notes:
svn path=/head/; revision=120578
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118094
|
| |
|
|
|
|
|
|
|
|
|
|
| |
contain the filedescriptor number on opens from userland.
The index is used rather than a "struct file *" since it conveys a bit
more information, which may be useful to in particular fdescfs and /dev/fd/*
For now pass -1 all over the place.
Notes:
svn path=/head/; revision=118047
|
| |
|
|
|
|
|
|
|
|
|
| |
Retain the mistake of not updating the devstat API for now.
Spell bioq_disksort() consistently with the remaining bioq_*().
#include <geom/geom_disk.h> where this is more appropriate.
Notes:
svn path=/head/; revision=112946
|
| |
|
|
|
|
|
|
|
|
|
| |
in geom_disk.c.
As a side effect this makes a lot of #include <sys/devicestat.h>
lines not needed and some biofinish() calls can be reduced to
biodone() again.
Notes:
svn path=/head/; revision=111979
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
branches:
Initialize struct cdevsw using C99 sparse initializtion and remove
all initializations to default values.
This patch is automatically generated and has been tested by compiling
LINT with all the fields in struct cdevsw in reverse order on alpha,
sparc64 and i386.
Approved by: re(scottl)
Notes:
svn path=/head/; revision=111815
|
| |
|
|
| |
Notes:
svn path=/head/; revision=111753
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move <sys/conf.h> before <sys/disk.h>.
No need for raidread()/raidwrite(), we have generic code for that.
Remove non-functional dump code.
Make raidinit() return the softc, not the dev_t.
Move to "struct disk*" centric API.
Fix printfs' to get name from struct disk instead of dev_t.
OK'ed by: scottl
Notes:
svn path=/head/; revision=111648
|
| |
|
|
|
|
|
|
|
|
|
| |
Change the argument to disk_destroy() to be the same struct disk * as
disk_create() takes.
This enables drivers to ignore the (now) bogus dev_t which disk_create()
returns.
Notes:
svn path=/head/; revision=111216
|
| |
|
|
|
|
|
| |
Approved by: trb
Notes:
svn path=/head/; revision=111119
|
| |
|
|
|
|
|
| |
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
Notes:
svn path=/head/; revision=109623
|
| |
|
|
|
|
|
| |
Hopefully forgiven by: scottl
Notes:
svn path=/head/; revision=109584
|
| |
|
|
| |
Notes:
svn path=/head/; revision=109571
|
| |
|
|
| |
Notes:
svn path=/head/; revision=108586
|
| |
|
|
| |
Notes:
svn path=/head/; revision=108584
|
| |
|
|
|
|
|
| |
especially in troff files.
Notes:
svn path=/head/; revision=108533
|
| |
|
|
|
|
|
|
|
| |
this was causing filedesc work to be very painful.
In order to make this work split out sigio definitions to thier own header
(sigio.h) which is included from proc.h for the time being.
Notes:
svn path=/head/; revision=108524
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
for the raidctl device.
Select a more conservative default for the permissions for /dev/raidctl
since the operations are performed using ioctl() not read() and write().
Submitted by: kris
Reviewed by: scottl
Notes:
svn path=/head/; revision=108485
|
| |
|
|
|
|
|
|
|
|
|
| |
partition size and sector size. The old way of groveling through the
disklabel doesn't work anymore.
Noticed by: anholt
Approved by: re
Notes:
svn path=/head/; revision=107730
|
| |
|
|
|
|
|
|
| |
Spotted by: kris
Approved by: re
Notes:
svn path=/head/; revision=107219
|
|
|
world. This should be considered highly experimental.
Approved-by: re
Notes:
svn path=/head/; revision=105503
|