History log of /netbsd-src/sys/dev/dm/dm_target_mirror.c (Results 1 – 24 of 24)
Revision Date Author Comments
# 67de4a93 21-Jan-2020 tkusumi <tkusumi@NetBSD.org>

dm: #if0 target's ->upcall() handler

This is part of NetBSD's dm design, but unimplemented
(all handlers return 0) and also unused.


# ee87a3ca 21-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Remove target's ->deps() by implementing deps in dm core

Retrieving device dependencies doesn't need to be target specific.
The reason it currently needs ->deps() is because dm core doesn't
have

dm: Remove target's ->deps() by implementing deps in dm core

Retrieving device dependencies doesn't need to be target specific.
The reason it currently needs ->deps() is because dm core doesn't
have data structure that allows table to walk through target's
underlying devices. Add struct dm_mapping to be able to do this,
and remove ->deps()'s from targets which basically do the same thing.

=====(A) before this commit
table
| [dm core]
-------------------------------------------------------
| pdev pdev pdev [dm targets]
v ^ ^ ^
target----/---------/---------/
(void*)

=====(B) this commit
table---->mapping-->mapping-->mapping-->...
| | | |
| v v v [dm core]
-------------------------------------------------------
| pdev pdev pdev [dm targets]
v ^ ^ ^
target----/---------/---------/
(void*)

taken-from: DragonFlyBSD

show more ...


# 46f14759 15-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Style cleanups (no functional changes)


# 37b6bcc1 15-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Make targets' ->secsize() optional

and make a caller assume secsize 0 if ->secsize not present.
This allows a dummy function to be removed which was added in
"dm: Add dummy target ->sync()/->sec

dm: Make targets' ->secsize() optional

and make a caller assume secsize 0 if ->secsize not present.
This allows a dummy function to be removed which was added in
"dm: Add dummy target ->sync()/->secsize() to prevent panic on modload(8)".

show more ...


# 8026110e 15-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Rename targets' ->status() to ->table() given ->info() exists

Since now that dm targets in NetBSD have ->info() for "status",
->status() should be renamed to ->table() for "table",
given how dm

dm: Rename targets' ->status() to ->table() given ->info() exists

Since now that dm targets in NetBSD have ->info() for "status",
->status() should be renamed to ->table() for "table",
given how dm target status was originally designed in Linux kernel.

taken-from: DragonFlyBSD

show more ...


# 0d0a6d23 14-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Remove unconditional debug prints in targets' ->strategy()

Having debug prints in ->strategy() by default just to tell ->strategy()
is called is overkill.
taken-from: DragonFlyBSD


# d14bb027 12-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Make target's ->init() take parsed argc and argv

This gets rid of the same parser code in each target using strsep(3).
taken-from: DragonFlyBSD


# a6ffbd97 08-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Add dummy target ->sync()/->secsize() to prevent panic on modload(8)

dm_target_insert() has assertions to ensure targets implement all handlers.
Adding dummy ones at least prevents panic on modl

dm: Add dummy target ->sync()/->secsize() to prevent panic on modload(8)

dm_target_insert() has assertions to ensure targets implement all handlers.
Adding dummy ones at least prevents panic on modload(8).

show more ...


# 837fc044 08-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Move targets specific structs to .c files

These don't need to be defined and exposed in dm.h.


# 2cb93e57 08-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Refactor target's ->init() i/f

Take dm_table_entry_t* instead of void**.
Remove dm_dev_t* unneeded by target code.
No functional change, but for future changes.

taken-from: DragonFlyBSD


# b794fcf3 07-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Fix strange pointer declarations

Should be "type *name" or "type* name", but not "type * name".
taken-from: DragonFlyBSD


# 592bc735 06-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Don't ignore dm_target_alloc() argument

dm_target_alloc() is supposed to be copying the name argument to its ->name.
taken-from: DragonFlyBSD


# 61524b95 05-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Make dm core set config to NULL after destroy

Just let dm core do this instead of having a comment expecting each
target to do the right thing.

taken-from: DragonFlyBSD


# 653d42ce 01-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Remove unused dm_dev::dev_type

Given OOP-like architecture of dm target device structure,
dm_dev doesn't need to have self contained target type field,
and in fact this is unused.


# 249cf593 05-Jan-2018 christos <christos@NetBSD.org>

use some size_t, add whitespace between functions, rcsids.


# fb8751ab 18-May-2010 haad <haad@NetBSD.org>

Add support for DIOCCACHESYNC ioctl for dm devices. Add new sync function
pointer to dm_target_t because that is the only part of dm which know real
block device. disk_ioctl_switch parses whole devic

Add support for DIOCCACHESYNC ioctl for dm devices. Add new sync function
pointer to dm_target_t because that is the only part of dm which know real
block device. disk_ioctl_switch parses whole device table and for every
entry it calls particular sync routine which propagates DIOCCACHESYNC
to real disk.

While I was here implement some KNF fixes and remove unneeded symbols from
dm.h.

Problem reported on port-xen@ by Hugo Silva.

show more ...


# 293fc006 04-Jan-2010 haad <haad@NetBSD.org>

Indent files remove unnecessary blank lines, white spaces and KNFize code.


# f26bfe28 01-Dec-2009 haad <haad@NetBSD.org>

Revert my commit which have added knowledge about dm targets to libdevmapper,
this breaks abstraction. Because only lvmtools/lvmlib and device-mapper can
have knowledge about target mapping and libde

Revert my commit which have added knowledge about dm targets to libdevmapper,
this breaks abstraction. Because only lvmtools/lvmlib and device-mapper can
have knowledge about target mapping and libdevmapper only passes requests
from lvmtools to kernel and back. Bump major library and driver version.

Requested by: yamt@

show more ...


# 62e994ce 05-Jun-2009 haad <haad@NetBSD.org>

Parse dm param string in libdevmapper and not in a dm target init function.
Create proplib param dictionary entry in libdevmapper and pass it to dm in
dm_ioctl dict.
Param target is then passed to ta

Parse dm param string in libdevmapper and not in a dm target init function.
Create proplib param dictionary entry in libdevmapper and pass it to dm in
dm_ioctl dict.
Param target is then passed to target init function, where is parse. I like
this aproach much better than passing char **argv and trusting to user input.

I have bumped minor lib/driver version.

XXX. Add more sanity checks in kernel.

show more ...


# f8faf523 01-Mar-2009 haad <haad@NetBSD.org>

Change comment and add description of line used to configure mirror device.


# 17599f37 19-Feb-2009 haad <haad@NetBSD.org>

Add support for autoloading of device-mapper targets modules. Add
dm_target_autoload function which tries to load target module. Fix two
deadlocks in dm_table_load_ioctl error path(I forgot to call d

Add support for autoloading of device-mapper targets modules. Add
dm_target_autoload function which tries to load target module. Fix two
deadlocks in dm_table_load_ioctl error path(I forgot to call dm_dev_unbusy).

show more ...


# 2df04240 14-Jan-2009 haad <haad@NetBSD.org>

Add dm module as dependency and remove module_hold/module_rele calls.


# 0e718155 02-Jan-2009 haad <haad@NetBSD.org>

Return ENOSYS during from dm_target_init routine these tow targets aren't
implemented yet.


# 894d2ad3 02-Jan-2009 haad <haad@NetBSD.org>

Add stubs for mirror target, too. This target does nothing for now, but lvm
tools support mirror target and trying to create LV with mirrorred backend
caused panic in dm_table_load_ioctl.