| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
but it will do (better) for now.
KASSERT that to have providers a class must have an access method.
Tag the new_provider event with the geom as well.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Retire g_sanity() and corresponding debugflag (0x8)
Retire g_{stall,release}_events().
Under #ifdef DIAGNOSTIC:
Make g_valid_obj() an official function and have it return an an
non-zero integer which indicates the kind of object when found.
Implement G_VALID_{CLASS,GEOM,CONSUMER,PROVIDER}() macros based
on g_valid_obj().
Sprinkle calls to these macros liberally over the infrastructure.
Always check that we do not free a live object.
|
|
|
|
|
|
|
| |
least common multiple of all disks sector sizes.
This will allow to safely concatenate disks with different sector sizes.
- Mark unused function arguments.
- Other minor cleanups.
|
|
|
|
| |
bio description.
|
| |
|
|
|
|
|
|
| |
Giant just to call kthread_exit().
Requested by: many
|
| |
|
|
|
|
|
| |
is valid.
- Use SYSCTL_DECL() instead of using own, ugly extern.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
orphan field - we're enforcing it in GEOM. This will reach KASSERT
in INVARIANTS case.
Add missing space.
Approved by: scottl (mentor)
|
|
|
|
| |
Approved by: scottl (mentor)
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
It allows manual and automatic (based on on-disk metadata) concatenation.
Reviewed by: phk, scottl
Approved by: scottl (mentor)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
call.
|
|
|
|
|
|
|
|
|
|
|
|
| |
shown that it is not useful.
Rename the relative count g_access_rel() function to g_access(), only
the name has changed.
Change all g_access_rel() calls in our CVS tree to call g_access() instead.
Add an #ifndef BURN_BRIDGES #define of g_access_rel() for source
code compatibility.
|
|
|
|
| |
the implementing class can use to hang internal info from.
|
|
|
|
| |
Approved by: phk, scottl (mentor)
|
|
|
|
| |
Approved by: phk, scottl (mentor)
|
|
|
|
| |
Approved by: phk, scottl (mentor)
|
| |
|
| |
|
|
|
|
| |
Problem reported by: Flemming Jacobsen <fj@batmule.dk>
|
| |
|
|
|
|
|
|
| |
This will allow closing disks that were removed while opened.
Approved by: phk, scottl (mentor)
|
|
|
|
|
|
| |
PR: kern/58634
Submitted by: le
Approved by: phk
|
|
|
|
|
|
| |
get rid of them.
Prodded by: pjd
|
|
|
|
|
|
| |
- Typos.
Approved by: phk, scottl (mentor)
|
|
|
|
|
|
| |
Rearrange code to avoid duplication (phk@)
Submitted by: netchild@
|
|
|
|
| |
Spotted by: pjd@
|
|
|
|
| |
ATA will uses these RSN.
|
|
|
|
| |
Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
|
|
|
|
| |
Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
|
|
|
|
| |
Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
|
|
|
|
| |
Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
|
| |
|
| |
|
|
|
|
| |
Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
|
|
|
|
| |
Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
|
|
|
|
|
|
| |
we do it ourselves.
Nailed by: Simon Heath <heath@cng.fr>
|
|
|
|
|
|
| |
the code happened to work because MTX_DEF and NULL are both defined as 0.
Reviewed by: phk
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
rather than right before and right after. This allows these routines
to manipulate the mesh.
KASSERT that nobody creates a geom on an alien class.
Assert topology in g_valid_obj().
Approved by: re@
|
|
|
|
| |
Submitted by: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
|
|
|
|
|
| |
while being tasted. I can moderately easy trigger this with atapi-cd, but
I do not fully understand the circumstances.
|
|
|
|
| |
Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
|
|
|
|
| |
Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
|