| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
plex. If the plex is a raid5 plex, and is being written to, parity data might
have to be read from the underlying disks, requiring them to be opened for
reading as well as writing.
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
practice, but it is a good programming practice nontheless and it allows the
kernel to not depend on userland correctness.
Found with: Coverity Prevent(tm)
CID: 655-659, 664-667
|
|
|
|
|
|
| |
the output more standardized.
- Add a sysctl to set the verbosity of the debug messages.
- While there, fixup typos and wording in the messages.
|
|
|
|
| |
drive to make sure that the header is in the correct format.
|
|
|
|
| |
to 64 bit in the new format.
|
|
|
|
|
|
|
|
|
|
|
| |
the gvinum header in fields of fixed size and in a big endian byte order
rather than the size and byte order of the actual platform.
Note that the change is backwards compatible with the old gvinum configuration
format, but will save the configuration in the new format when the 'saveconfig'
command is executed.
Submitted by: Rick C. Petty <rick-freebsd -at- kiwi-computer.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
virtualization work done by Marko Zec (zec@).
This is the first in a series of commits over the course
of the next few weeks.
Mark all uses of global variables to be virtualized
with a V_ prefix.
Use macros to map them back to their global names for
now, so this is a NOP change only.
We hope to have caught at least 85-90% of what is needed
so we do not invalidate a lot of outstanding patches again.
Obtained from: //depot/projects/vimage-commit2/...
Reviewed by: brooks, des, ed, mav, julian,
jamie, kris, rwatson, zec, ...
(various people I forgot, different versions)
md5 (with a bit of help)
Sponsored by: NLnet Foundation, The FreeBSD Foundation
X-MFC after: never
V_Commit_Message_Reviewed_By: more people than the patch
|
|
|
|
|
|
| |
PR: kern/125632
Approved by: pjd (mentor)
MFC after: 3 days
|
|
|
|
| |
Approved by: pjd (mentor)
|
|
|
|
|
|
|
|
|
|
|
|
| |
to global hostname and domainname variables. Where necessary, copy
to or from a stack-local buffer before performing copyin() or
copyout(). A few uses, such as in cd9660 and daemon_saver, remain
under-synchronized and will require further updates.
Correct a bug in which a failed copyin() of domainname would leave
domainname potentially corrupted.
MFC after: 3 weeks
|
|
|
|
|
|
| |
PR: kern/75632
Approved by: pjd (mentor)
MFC after: 1 day
|
|
|
|
|
| |
Approved by: pjd (mentor)
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
| |
to kproc_xxx as they actually make whole processes.
Thos makes way for us to add REAL kthread_create() and friends
that actually make theads. it turns out that most of these
calls actually end up being moved back to the thread version
when it's added. but we need to make this cosmetic change first.
I'd LOVE to do this rename in 7.0 so that we can eventually MFC the
new kthread_xxx() calls.
|
|
|
|
|
|
| |
-) Set correct sizes for plexes and volumes a subdisk has been removed.
Submitted by: Ulf Lilleengen <lulf_AT_freebsd.org>
|
|
|
|
|
|
| |
only consists of "/".
Submitted by: Ulf Lilleengen <lulf_AT_freebsd.org>
|
| |
|
|
|
|
| |
subdisks.
|
| |
|
|
|
|
|
| |
PR: kern/94835
Submitted by: Ulf Lilleengen <lulf@stud.ntnu.no>
|
|
|
|
| |
attached to it.
|
|
|
|
| |
use the standard bioq structures.
|
|
|
|
|
|
| |
have any use of it.
Suggested by: pjd
|
|
|
|
|
|
|
|
|
|
| |
o The only indication of error condition is NULL value returned by
the function;
o value pointed to by error argument is undefined in the case when
operation completes successfully.
Discussed with: phk
|
|
|
|
|
|
|
|
|
|
|
| |
the geom creation to a seperate init function and ignore the tasting.
The config is now parsed only in the vinumdrive geom, which hopefully
fixes the problem, that the drive class tasted before the vinum class
had a chance, for good.
Also restore the behaviour that the module can be loaded at boot time
and on a running system.
|
| |
|
|
|
|
|
|
|
|
|
| |
Don't allocate potentially large variables on the stack.
Check strsep() return values when the string comes from userland.
Shorten variable names for lucidity's sake.
most of the stuff:
Pointed out by: njl@
|
|
|
|
| |
Pointed out by: joel@
|
|
|
|
|
|
|
|
|
| |
Add functions to rename objects and to move a subdisk from one drive
to another.
Obtained from: Chris Jones <chris.jones@ualberta.ca>
Sponsored by: Google Summer of Code 2005
MFC in: 1 week
|
|
|
|
|
| |
be destroyed. That way the GEOM system handles all deallocations
and we don't have to do it ourselves.
|
|
|
|
|
| |
in progress, and be a bit more user friendly in terms of error
messages returned from the kernel.
|
|
|
|
|
|
|
|
|
| |
This way, the VINUMDRIVE class is loaded before the VINUM class,
but since geom does the tasting for newly arrived classes
last-in-first-out, the VINUM class tastes first.
This removes the need to call gv_parse_config() in the drive
taste path.
|
|
|
|
| |
This makes degraded RAID5 plexes actually work.
|
| |
|
|
|
|
|
|
|
| |
When a drive is newly created, it's state is initially set to 'down',
so it won't allow saving the config to it (thus it will never know of
itself being created). Work around this by adding a new flag, that's
also checked when saving the config to a drive.
|
|
|
|
|
|
| |
*) Plug a possible memory leak. [1]
[1] obtained from: pjd@.
|
|
|
|
|
|
|
| |
post an event to the geom event queue that will take care of it,
letting outstanding bios finish, and closing the consumers.
Plus some cosmetic clean ups.
|
|
|
|
|
| |
PR: kern/80427
Submitty by: Stijn Hoop <stijn@win.tue.nl>
|
|
|
|
|
|
| |
seem to be necessary anymore, and it prevents tasting a valid drive
when booting with geom_vinum already loaded, since SCSI disks set their
sectorsize not until first opening them.
|
|
|
|
|
|
| |
Reset the 'syncing' flag in case of errors, too.
Some cosmetics.
|
|
|
|
|
|
|
| |
the previous one failed and there are more than one plex in the volume.
This could have led to a flood of error messages on the console and
probably a deadlock in certain situations.
|
|
|
|
|
|
| |
detach it, but instead let the geom wither away.
Bump copyright year.
|
|
|
|
|
|
| |
really a state change.
Reword the info a bit.
|
|
|
|
| |
the plex has no more consumers (e.g. orphaning).
|
|
|
|
| |
with 'gv_' for consistency.
|
|
|
|
|
|
|
| |
worker thread may have been destroyed (e.g. during orphaning).
Make sure that objects get back their worker threads when they get a
new geom.
|
| |
|
| |
|
|
|
|
| |
for debugging and emergency purposes.
|
| |
|
|
|
|
| |
code duplication.
|