History log of /netbsd-src/sys/dev/dm/dm_ioctl.c (Results 1 – 25 of 56)
Revision Date Author Comments
# 6ad9868b 14-Jan-2024 mlelstv <mlelstv@NetBSD.org>

Avoid leaving a configured device without resources.


# 18c4b209 13-Oct-2022 andvar <andvar@NetBSD.org>

s/exaple/example/


# a70f355b 21-Aug-2021 andvar <andvar@NetBSD.org>

fix typos in sys/dev/dm code comments and documentation.
also remove some trailing space in documentation.


# ca765360 20-Aug-2021 andvar <andvar@NetBSD.org>

fix various typos in comments and log messages.


# 7991f5a7 24-Jul-2021 andvar <andvar@NetBSD.org>

Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files

Fix all remaining typos, mainly in comments but also in few definitions and log messages, reported by me in PR kern/54889.
Also fixed some additional typos in comments, found on review of same files or typos.

show more ...


# 948b9174 21-Jun-2021 christos <christos@NetBSD.org>

fix proplib deprecation


# 47c65107 07-May-2021 hannken <hannken@NetBSD.org>

Make sure the unit number of device-mapper devices matches their minor number.


# b5a91dc2 08-Jul-2020 thorpej <thorpej@NetBSD.org>

Adapt to proplib API chanages.


# a9ece896 23-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Make target's ->table() optional

Since ->info() (counter part of ->table() in the original dm design
in Linux kernel in .status where both INFO and TABLE are optional)
is an optional handler, ma

dm: Make target's ->table() optional

Since ->info() (counter part of ->table() in the original dm design
in Linux kernel in .status where both INFO and TABLE are optional)
is an optional handler, make ->table() optional as well. Some
targets don't have anything to do in ->table() just as in ->info().

taken-from: DragonFlyBSD

show more ...


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


# 3e0e126e 19-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Minor dm_ioctl.c fixes (indentation/typo/type/etc)


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

dm: Style cleanups (no functional changes)


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


# 47e84ce6 14-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Don't try to implement "status" as subset of "table"

The way dm_table_status_ioctl() implements "status" and "table" is
not compatible with Linux kernel. Some targets have different outputs
that

dm: Don't try to implement "status" as subset of "table"

The way dm_table_status_ioctl() implements "status" and "table" is
not compatible with Linux kernel. Some targets have different outputs
that "status" can't be implemented as subset of "table".

Add ->info() handler to sync with "status" behavior in Linux kernel.
Some targets which currently exist in NetBSD (I think striped)
as well as some minor targets that I plan to port to NetBSD
can/should implement ->info(), but will do that in a different commit.

taken-from: DragonFlyBSD

show more ...


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

dm: Make dm_dbg_print_flags() take uint32_t flag

which comes from prop_dictionary_get_uint32() result.
taken-from: DragonFlyBSD


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

dm: Move extern declaration of global variables to dm.h


# 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


# 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


# 354a4ac4 06-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Fix typos in comments/messages

taken-from: DragonFlyBSD


# 625bf0ef 05-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: Remove unneeded dm_get_version_ioctl()

"version" is implemented and handled in userspace,
hence dm ioctl doesn't need to support it.

taken-from: DragonFlyBSD


# 9dea6936 04-Dec-2019 tkusumi <tkusumi@NetBSD.org>

dm: style + whitespace + indentation fixes

No functional changes.


# 2991ea0d 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


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


# 8d371129 30-Nov-2019 tkusumi <tkusumi@NetBSD.org>

dm: Always initialize target's status string

Explicitly clear status string to prevent dmsetup(8) from
printing binary junk to stdout. Similar change has been
applied to DragonFlyBSD since 2015.

ht

dm: Always initialize target's status string

Explicitly clear status string to prevent dmsetup(8) from
printing binary junk to stdout. Similar change has been
applied to DragonFlyBSD since 2015.

https://github.com/DragonFlyBSD/DragonFlyBSD/commit/a6cf54187fd7c3e994c573215806ec03572c038e

taken-from: DragonFlyBSD

show more ...


# 214cf32e 11-Nov-2018 mlelstv <mlelstv@NetBSD.org>

Only _if_ an inactive table has been loaded, make it active when resuming.
Fixes lvrename operation.


123