| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
when a disk has been destroyed but still has outstanding bio's.
Reviewed by: phk
|
| |
|
|
|
|
| |
Noticed by: Tinderbox
|
| |
|
|
|
|
| |
reference count.
|
|
|
|
|
|
| |
Found by: mtx_assert() g_gate.c:273
- Set command before returning to userland with ENOMEM error value.
Found by: assert() ggatel.c:108
|
|
|
|
|
| |
The biggest issue was that 16-bit atomic operations aren't supported
on all architectures.
|
| |
|
|
|
|
|
| |
little-endian by definition and needs byte-swap operations for any
multi-byte field. While here fix indentation.
|
|
|
|
|
| |
dump geom configuration when 'pp' and 'cp' are NULL.
- Use tabs instead of spaces.
|
|
|
|
| |
Approved by: phk
|
|
|
|
|
|
| |
libdisk parsing (the name may be empty, or contain spaces).
Submitted by: Suleiman Souhlal <refugee@segfaulted.com>
|
|
|
|
|
|
|
| |
because if consumer is not attached, its provider never will be valid,
so we never reach this check.
Approved by: phk
|
|
|
|
|
|
|
|
| |
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>
|