diff options
| author | christos <christos@NetBSD.org> | 2018-01-05 14:22:26 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2018-01-05 14:22:26 +0000 |
| commit | 30f3f9afbb6ee7c71dd6daa26feb529f960b2711 (patch) | |
| tree | 740d6fcd65db70aa3f2fb7a1e199c17c0f404ae0 /sys/dev/dm/dm_target_stripe.c | |
| parent | c4e2c478b3916d5df219d75b5cdc6a3dec1ba0cd (diff) | |
use some size_t, add whitespace between functions, rcsids.
Diffstat (limited to 'sys/dev/dm/dm_target_stripe.c')
| -rw-r--r-- | sys/dev/dm/dm_target_stripe.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/dev/dm/dm_target_stripe.c b/sys/dev/dm/dm_target_stripe.c index e2d52ed19e1..a7d78379ac5 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.22 2017/06/01 02:45:09 chs Exp $*/ +/*$NetBSD: dm_target_stripe.c,v 1.23 2018/01/05 14:22:26 christos Exp $*/ /* * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -28,6 +28,8 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ +#include <sys/cdefs.h> +__KERNEL_RCSID(0, "$NetBSD: dm_target_stripe.c,v 1.23 2018/01/05 14:22:26 christos Exp $"); /* * This file implements initial version of device-mapper stripe target. @@ -190,6 +192,7 @@ dm_target_stripe_init(dm_dev_t * dmv, void **target_config, char *params) return 0; } + /* Status routine called to get params string. */ char * dm_target_stripe_status(void *target_config) @@ -216,6 +219,7 @@ dm_target_stripe_status(void *target_config) return params; } + /* Strategy routine called from dm_strategy. */ int dm_target_stripe_strategy(dm_table_entry_t * table_en, struct buf * bp) @@ -281,6 +285,7 @@ dm_target_stripe_strategy(dm_table_entry_t * table_en, struct buf * bp) return 0; } + /* Sync underlying disk caches. */ int dm_target_stripe_sync(dm_table_entry_t * table_en) @@ -303,18 +308,20 @@ dm_target_stripe_sync(dm_table_entry_t * table_en) return err; } + /* Destroy target specific data. */ int dm_target_stripe_destroy(dm_table_entry_t * table_en) { dm_target_stripe_fini(table_en->target_config); + table_en->target_config = NULL; /* Unbusy target so we can unload it */ dm_target_unbusy(table_en->target); - table_en->target_config = NULL; return 0; } + /* Doesn't not need to do anything here. */ int dm_target_stripe_deps(dm_table_entry_t * table_en, prop_array_t prop_array) @@ -334,12 +341,14 @@ dm_target_stripe_deps(dm_table_entry_t * table_en, prop_array_t prop_array) return 0; } + /* Unsupported for this target. */ int dm_target_stripe_upcall(dm_table_entry_t * table_en, struct buf * bp) { return 0; } + /* * Compute physical block size * For a stripe target we chose the maximum sector size of all |
