History log of /netbsd/sys/dev/dm/dm_target_stripe.c (Results 1 – 25 of 44)
Revision Date Author Comments
# 096b14fe 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.


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

dm: Fix dm-stripe's "status" output format

As mentioned in "dm: Don't try to implement "status" as subset of "table"",
dm-stripe in NetBSD doesn't have correct "status" output format.
Implement ->in

dm: Fix dm-stripe's "status" output format

As mentioned in "dm: Don't try to implement "status" as subset of "table"",
dm-stripe in NetBSD doesn't have correct "status" output format.
Implement ->info() to sync with Linux kernel.

Note that num_error for stripe device isn't implemented yet.

taken-from: DragonFlyBSD

show more ...


# 87d1de18 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 ...


# 35c700b9 20-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Fix "table" output format of dm-linear and dm-stripe

The existing "table" output showing device file path of pdev is
not compatible with dm in Linux kernel (and also DragonFlyBSD).
It should be

dm: Fix "table" output format of dm-linear and dm-stripe

The existing "table" output showing device file path of pdev is
not compatible with dm in Linux kernel (and also DragonFlyBSD).
It should be showing "major:minor" instead.

taken-from: DragonFlyBSD

show more ...


# fdf87adf 18-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Test # of args in target's ->init()

The # of args is part of target's spec.
Both Linux kernel and DragonFlyBSD test argc on ctr/init.


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

dm: Rename dm specific atoi() to atoi64()

This is uint64_t version, not sys/lib/libsa/atoi.c.


# 335d6706 15-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Style cleanups (no functional changes)


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

dm: "unsigned" -> "unsigned int" for consistency

Use either one, but not both.


# 23ef6e5d 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 ...


# 6caba6c8 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


# f4d88964 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


# 9c8e6ab6 09-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Correct target name "stripe" -> "striped"

Sync with Linux kernel.
The file name is "stripe", but the target name is "striped".
DragonFlyBSD also follows this.


# 56fbfa28 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.


# 612ec80b 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


# 6e7f0c2a 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


# 4285ff5b 06-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Fix typos in comments/messages

taken-from: DragonFlyBSD


# 70f809a7 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


# 59a98326 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


# ac70dd37 03-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Include <sys/vnode.h> in dm.h

dm.h already depends on vnode, so have dm.h include <sys/vnode.h>
instead of other .c files.

taken-from: DragonFlyBSD


# 9969b9dc 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.


# 8686692f 15-Oct-2019 chs <chs@NetBSD.org>

convert more KM_NOSLEEP to KM_SLEEP and remove code to handle failures.


# 30f3f9af 05-Jan-2018 christos <christos@NetBSD.org>

use some size_t, add whitespace between functions, rcsids.


# d65a6a67 01-Jun-2017 chs <chs@NetBSD.org>

remove checks for failure after memory allocation calls that cannot fail:

kmem_alloc() with KM_SLEEP
kmem_zalloc() with KM_SLEEP
percpu_alloc()
pserialize_create()
psref_class_create()

al

remove checks for failure after memory allocation calls that cannot fail:

kmem_alloc() with KM_SLEEP
kmem_zalloc() with KM_SLEEP
percpu_alloc()
pserialize_create()
psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

show more ...


# f60b5983 19-Aug-2014 christos <christos@NetBSD.org>

cleanup properly on error.


# b0cd2b18 18-Aug-2014 agc <agc@NetBSD.org>

Avoid a memory leak - from maxv


12