diff options
| author | tkusumi <tkusumi@NetBSD.org> | 2019-12-08 10:50:21 +0000 |
|---|---|---|
| committer | tkusumi <tkusumi@NetBSD.org> | 2019-12-08 10:50:21 +0000 |
| commit | 56fbfa2849ced55d793eb47f26cb4e9daeb85e81 (patch) | |
| tree | 1d3a3392517cf71153b9da7a927c26507d0bebb1 /sys/dev/dm/dm_target_stripe.c | |
| parent | eb30c1c68293ff0407c40e86c3a19b09d924b622 (diff) | |
dm: Move targets specific structs to .c files
These don't need to be defined and exposed in dm.h.
Diffstat (limited to 'sys/dev/dm/dm_target_stripe.c')
| -rw-r--r-- | sys/dev/dm/dm_target_stripe.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/dev/dm/dm_target_stripe.c b/sys/dev/dm/dm_target_stripe.c index bc4a9cba7a6..810730037a5 100644 --- a/sys/dev/dm/dm_target_stripe.c +++ b/sys/dev/dm/dm_target_stripe.c @@ -1,4 +1,4 @@ -/*$NetBSD: dm_target_stripe.c,v 1.31 2019/12/08 04:41:02 tkusumi Exp $*/ +/*$NetBSD: dm_target_stripe.c,v 1.32 2019/12/08 10:50:21 tkusumi Exp $*/ /* * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dm_target_stripe.c,v 1.31 2019/12/08 04:41:02 tkusumi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dm_target_stripe.c,v 1.32 2019/12/08 10:50:21 tkusumi Exp $"); /* * This file implements initial version of device-mapper stripe target. @@ -43,6 +43,14 @@ __KERNEL_RCSID(0, "$NetBSD: dm_target_stripe.c,v 1.31 2019/12/08 04:41:02 tkusum #include "dm.h" +typedef struct target_stripe_config { +#define DM_STRIPE_DEV_OFFSET 2 + struct target_linear_devs stripe_devs; + uint8_t stripe_num; + uint64_t stripe_chunksize; + size_t params_len; +} dm_target_stripe_config_t; + #ifdef DM_TARGET_MODULE /* * Every target can be compiled directly to dm driver or as a |
