Revision tags: v6.2.1, v6.2.0, v6.3.0, v6.0.1, v6.0.0, v6.0.0rc1, v6.1.0, v5.8.3, v5.8.2, v5.8.1, v5.8.0, v5.9.0, v5.8.0rc1, v5.6.3 |
|
#
8477f730 |
| 25-Oct-2019 |
zrj <rimvydas.jasinskas@gmail.com> |
kernel/dm: Include <sys/param.h> first.
Allow the <dev/disk/dm/dm.h> to include common headers first.
|
Revision tags: v5.6.2, v5.6.1, v5.6.0, v5.6.0rc1, v5.7.0, v5.4.3, v5.4.2, v5.4.1, v5.4.0, v5.5.0, v5.4.0rc1, v5.2.2, v5.2.1, v5.2.0, v5.3.0, v5.2.0rc, v5.0.2, v5.0.1, v5.0.0, v5.0.0rc2, v5.1.0, v5.0.0rc1, v4.8.1, v4.8.0, v4.6.2, v4.9.0, v4.8.0rc |
|
#
19bd59e4 |
| 27-Nov-2016 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sys/dev/disk/dm: Make init/destroy handlers optional
Some targets don't need to do anything in init/destroy handler, as there is no private data to init/cleanup, so make them optional.
table_en->ta
sys/dev/disk/dm: Make init/destroy handlers optional
Some targets don't need to do anything in init/destroy handler, as there is no private data to init/cleanup, so make them optional.
table_en->target_config can be set to NULL regardless of destroy handler or its result.
show more ...
|
Revision tags: v4.6.1, v4.6.0, v4.6.0rc2, v4.6.0rc, v4.7.0, v4.4.3, v4.4.2, v4.4.1, v4.4.0, v4.5.0, v4.4.0rc |
|
#
30ef4508 |
| 17-Nov-2015 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sys/dev/disk/dm: Cleanup header includes
|
#
b7c11cda |
| 13-Nov-2015 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sys/dev/disk/dm: Cleanups
* Fix comments. * Add a blank line between functions. * Some minor fixes on dm core.
|
#
a6b470c8 |
| 11-Nov-2015 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sys/dev/disk/dm: Fix/refactor alloc/free functions [6/6]
Rename dm_target_rem() to dm_target_remove() for consistency.
|
#
d880b9df |
| 11-Nov-2015 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sys/dev/disk/dm: Fix/refactor alloc/free functions [5/6]
Add dm_target_free().
|
#
efaf91a7 |
| 11-Nov-2015 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sys/dev/disk/dm: Fix/refactor alloc/free functions [4/6]
dm_target_alloc() takes char *name, but does nothing with it. Add strlcpy and remove strlcpy from each target's init().
|
#
b4e97860 |
| 09-Nov-2015 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sys/dev/disk/dm: Check if target has registered handlers
Define which handlers are mandatory or optional. init(), destroy(), strategy() are (or should be) mandatory. Others aren't needed by all targ
sys/dev/disk/dm: Check if target has registered handlers
Define which handlers are mandatory or optional. init(), destroy(), strategy() are (or should be) mandatory. Others aren't needed by all targets hence should be optional.
Add sanity checks in dm_target_insert() to make sure targets have implemented and registered mandatory handlers.
Cleanup struct dm_target by removing obvious comments and adding comments on mandatory/optional handlers.
show more ...
|
#
4e359672 |
| 08-Nov-2015 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sys/dev/disk/dm: Fix/refactor TAILQ_HEAD structure
Some minor fixes.
Initialize TAILQs in init() since they are removed and freed in uninit(). Not doing it in init() works only when init() is guara
sys/dev/disk/dm: Fix/refactor TAILQ_HEAD structure
Some minor fixes.
Initialize TAILQs in init() since they are removed and freed in uninit(). Not doing it in init() works only when init() is guaranteed to be called once.
show more ...
|
#
33b3a12e |
| 15-Oct-2015 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sys/dev/disk/dm: Simplify list eviction
Similar to 64c24ea.
|
#
bdf2de7b |
| 12-Oct-2015 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sys/dev/disk/dm: Cleanups
Remove a space from dm_table_entry_t * table_en, struct buf * bp, dm_dev_t * dmv, etc
No binary change.
|
#
7350b8b6 |
| 10-Oct-2015 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sys/dev/disk/dm: Remove unused prototype and wrong comments
|
#
52157f6b |
| 10-Oct-2015 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sys/dev/disk/dm: Cleanups
|
#
903c3618 |
| 01-Oct-2015 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sys/dev/disk/dm: Conform to style(9)
|
#
637b454a |
| 30-Sep-2015 |
Tomohiro Kusumi <kusumi.tomohiro@gmail.com> |
sys/dev/disk/dm: Make global dm locks static
These are all local to each file.
If ever needed by others, it should provide appropriate interface instead of allowing access to raw lock variables.
|
Revision tags: v4.2.4, v4.3.1, v4.2.3, v4.2.1, v4.2.0, v4.0.6, v4.3.0, v4.2.0rc, v4.0.5, v4.0.4, v4.0.3, v4.0.2, v4.0.1, v4.0.0, v4.0.0rc3, v4.0.0rc2, v4.0.0rc, v4.1.0, v3.8.2, v3.8.1, v3.6.3, v3.8.0, v3.8.0rc2, v3.9.0, v3.8.0rc, v3.6.2, v3.6.1, v3.6.0, v3.7.1, v3.6.0rc, v3.7.0, v3.4.3, v3.4.2, v3.4.0, v3.4.1, v3.4.0rc, v3.5.0, v3.2.2, v3.2.1, v3.2.0, v3.3.0, v3.0.3, v3.0.2, v3.0.1, v3.1.0, v3.0.0 |
|
#
86d7f5d3 |
| 26-Nov-2011 |
John Marino <draco@marino.st> |
Initial import of binutils 2.22 on the new vendor branch
Future versions of binutils will also reside on this branch rather than continuing to create new binutils branches for each new version.
|
Revision tags: v2.12.0, v2.13.0 |
|
#
ba2ce341 |
| 15-Jul-2011 |
Alex Hornung <ahornung@gmail.com> |
dm - sync_devs() on creation, add new dict entries
* call sync_devs() on device creation to ensure all devices are visible in userland immediately after return from kernel.
* add some new, so
dm - sync_devs() on creation, add new dict entries
* call sync_devs() on device creation to ensure all devices are visible in userland immediately after return from kernel.
* add some new, so far unusued, dict entries
* sneak in my copyright as I've rewritten large parts of dm. That way at least everyone knows who to blame for broken stuff :)
show more ...
|
Revision tags: v2.10.1, v2.11.0, v2.10.0 |
|
#
9fada28a |
| 13-Dec-2010 |
Alex Hornung <ahornung@gmail.com> |
dm - add remove_all, refactor
* Refactor the dm dev creation and removal methods as to avoid duplication and, as a bonus, do things properly.
* Rename foo_destroy to foo_uninit, because that's wh
dm - add remove_all, refactor
* Refactor the dm dev creation and removal methods as to avoid duplication and, as a bonus, do things properly.
* Rename foo_destroy to foo_uninit, because that's what they really are, uninit functions.
* Add an experimental 'remove_all' method
* Move atoi64 into device-mapper so that the striped target works without loading the linear target.
show more ...
|
#
a84e173e |
| 02-Dec-2010 |
Alex Hornung <ahornung@gmail.com> |
dm - undo my pointless moving of dm.h
* There was no need to move dm.h, we can just use <dev/disk/dm/dm.h>.
* And since we can do the above, we can also get rid of the strange Makefile CFLAGS mag
dm - undo my pointless moving of dm.h
* There was no need to move dm.h, we can just use <dev/disk/dm/dm.h>.
* And since we can do the above, we can also get rid of the strange Makefile CFLAGS magic I added.
* Also undo the removal on upgrade of /usr/include/dev/disk/dm/dm.h and instead remove sys/dm.h
Reported-by: Sascha Wildner
show more ...
|
#
7115a22b |
| 01-Dec-2010 |
Alex Hornung <ahornung@gmail.com> |
dm - Modularize it fully
* Move each of the targets (except error and zero) into a subdirectory in targets/.
* Change the macro DM_TARGET_MODULE to also let the module depend on dm.
* Add a new
dm - Modularize it fully
* Move each of the targets (except error and zero) into a subdirectory in targets/.
* Change the macro DM_TARGET_MODULE to also let the module depend on dm.
* Add a new macro DM_TARGET_BUILTIN, which must be used instead of DM_TARGET_MODULE for targets that are compiled into the main dm.ko instead of a separate module. Not doing this will prevent dm.ko from unloading.
* Enable automatic loading of target modules if they aren't builtin or loaded yet. Automatically loaded modules can be unloaded via kldunload safely via a little hack (see source).
* NOTE: automatic loading doesn't always work. /boot must be mounted already, so if you are planning on encrypting your swap or similar stuff, you need to *EXPLICITLY* load dm_target_crypt.ko via the loader.
* NOTE: PLEASE NOTE THE NOTE ABOVE!
* Fix a little issue with dm_target_crypt that would print "unloaded" even if it wouldn't unload.
* Change the name of dm_target_stripe to dm_target_striped, since the target is actually called "striped".
* Move dm.h to sys/sys/dm.h
* Get rid of files.dm, a leftover from the import
show more ...
|
#
0d42d35b |
| 26-Nov-2010 |
Alex Hornung <ahornung@gmail.com> |
dm - remove convoluted string comparison methods
|
#
5c411e8e |
| 25-Nov-2010 |
Alex Hornung <ahornung@gmail.com> |
dm - Major cleanup & module work
* Add module code to all the targets and get rid of the hackish global target insertion.
* Clean up all sorts of dead code and crappy whitespaces. There isn't m
dm - Major cleanup & module work
* Add module code to all the targets and get rid of the hackish global target insertion.
* Clean up all sorts of dead code and crappy whitespaces. There isn't much point in maintaining whitespaces just to have a small diff to NetBSD since our diff is quite big now anyways.
show more ...
|
#
ba65ac12 |
| 24-Nov-2010 |
Alex Hornung <ahornung@gmail.com> |
dm_target_crypt - use mpipe, add module magic
* Switch the kmallocs in the I/O path to using mpipe with a bare minimum of two preallocated elements, for each read and write. This finally allows
dm_target_crypt - use mpipe, add module magic
* Switch the kmallocs in the I/O path to using mpipe with a bare minimum of two preallocated elements, for each read and write. This finally allows for an encrypted swap without any issues with memory pressure. It might also improve performance, but it is not the aim of the commit.
* Add some module magic to dm and make use of it in dm_target_crypt.
* (temporarily) remove the old module magic.
show more ...
|
Revision tags: v2.9.1, v2.8.2, v2.8.1 |
|
#
79b7159f |
| 21-Oct-2010 |
Alex Hornung <ahornung@gmail.com> |
device mapper - implement dumping
* Implement dmdump and dump routines for the three main targets (linear, stripe and crypt).
* The top-level dmpdump will call all the required dump() methods in
device mapper - implement dumping
* Implement dmdump and dump routines for the three main targets (linear, stripe and crypt).
* The top-level dmpdump will call all the required dump() methods in the targets just as it does with strategy() calls. The lower level target-specific dump routines will then redirect (after processing, etc) these requests to the underlying device's dump routines.
* This should provide quite reliable dumping even through device mapper, although it is more error-prone than the equivalent dumping on normal disks as there's a lot more going on behind the scenes.
show more ...
|
Revision tags: v2.8.0, v2.9.0 |
|
#
3cd005af |
| 22-Aug-2010 |
Alex Hornung <ahornung@gmail.com> |
dm_target_crypt - Bump version to 1.6.0
|