Module Name: src Committed By: tkusumi Date: Fri Dec 6 16:46:14 UTC 2019
Modified Files: src/sys/dev/dm: dm_pdev.c dm_target_linear.c dm_target_zero.c netbsd-dm.h Log Message: dm: Remove trailing whitespace To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/dev/dm/dm_pdev.c cvs rdiff -u -r1.22 -r1.23 src/sys/dev/dm/dm_target_linear.c cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dm/dm_target_zero.c cvs rdiff -u -r1.9 -r1.10 src/sys/dev/dm/netbsd-dm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/dm/dm_pdev.c diff -u src/sys/dev/dm/dm_pdev.c:1.15 src/sys/dev/dm/dm_pdev.c:1.16 --- src/sys/dev/dm/dm_pdev.c:1.15 Wed Dec 4 16:55:30 2019 +++ src/sys/dev/dm/dm_pdev.c Fri Dec 6 16:46:14 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: dm_pdev.c,v 1.15 2019/12/04 16:55:30 tkusumi Exp $ */ +/* $NetBSD: dm_pdev.c,v 1.16 2019/12/06 16:46:14 tkusumi Exp $ */ /* * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dm_pdev.c,v 1.15 2019/12/04 16:55:30 tkusumi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dm_pdev.c,v 1.16 2019/12/06 16:46:14 tkusumi Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -240,15 +240,14 @@ static int dm_pdev_dump_list(void) { dm_pdev_t *dmp; - + aprint_verbose("Dumping dm_pdev_list\n"); - + SLIST_FOREACH(dmp, &dm_pdev_list, next_pdev) { aprint_verbose("dm_pdev_name %s ref_cnt %d list_rf_cnt %d\n", dmp->name, dmp->ref_cnt, dmp->list_ref_cnt); } - + return 0; - } #endif Index: src/sys/dev/dm/dm_target_linear.c diff -u src/sys/dev/dm/dm_target_linear.c:1.22 src/sys/dev/dm/dm_target_linear.c:1.23 --- src/sys/dev/dm/dm_target_linear.c:1.22 Thu Dec 5 16:59:43 2019 +++ src/sys/dev/dm/dm_target_linear.c Fri Dec 6 16:46:14 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: dm_target_linear.c,v 1.22 2019/12/05 16:59:43 tkusumi Exp $ */ +/* $NetBSD: dm_target_linear.c,v 1.23 2019/12/06 16:46:14 tkusumi Exp $ */ /* * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dm_target_linear.c,v 1.22 2019/12/05 16:59:43 tkusumi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dm_target_linear.c,v 1.23 2019/12/06 16:46:14 tkusumi Exp $"); /* * This file implements initial version of device-mapper dklinear target. @@ -146,9 +146,9 @@ dm_target_linear_sync(dm_table_entry_t * tlc = table_en->target_config; cmd = 1; - + return VOP_IOCTL(tlc->pdev->pdev_vnode, DIOCCACHESYNC, &cmd, - FREAD|FWRITE, kauth_cred_get()); + FREAD|FWRITE, kauth_cred_get()); } /* Index: src/sys/dev/dm/dm_target_zero.c diff -u src/sys/dev/dm/dm_target_zero.c:1.16 src/sys/dev/dm/dm_target_zero.c:1.17 --- src/sys/dev/dm/dm_target_zero.c:1.16 Fri Dec 6 16:11:59 2019 +++ src/sys/dev/dm/dm_target_zero.c Fri Dec 6 16:46:14 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: dm_target_zero.c,v 1.16 2019/12/06 16:11:59 tkusumi Exp $ */ +/* $NetBSD: dm_target_zero.c,v 1.17 2019/12/06 16:46:14 tkusumi Exp $ */ /* * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dm_target_zero.c,v 1.16 2019/12/06 16:11:59 tkusumi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dm_target_zero.c,v 1.17 2019/12/06 16:46:14 tkusumi Exp $"); /* * This file implements initial version of device-mapper zero target. @@ -84,7 +84,7 @@ dm_target_zero_modcmd(modcmd_t cmd, void dmt->init = &dm_target_zero_init; dmt->status = &dm_target_zero_status; dmt->strategy = &dm_target_zero_strategy; - dmt->sync = &dm_target_zero_sync; + dmt->sync = &dm_target_zero_sync; dmt->deps = &dm_target_zero_deps; dmt->destroy = &dm_target_zero_destroy; dmt->upcall = &dm_target_zero_upcall; Index: src/sys/dev/dm/netbsd-dm.h diff -u src/sys/dev/dm/netbsd-dm.h:1.9 src/sys/dev/dm/netbsd-dm.h:1.10 --- src/sys/dev/dm/netbsd-dm.h:1.9 Tue Dec 3 15:03:14 2019 +++ src/sys/dev/dm/netbsd-dm.h Fri Dec 6 16:46:14 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: netbsd-dm.h,v 1.9 2019/12/03 15:03:14 tkusumi Exp $ */ +/* $NetBSD: netbsd-dm.h,v 1.10 2019/12/06 16:46:14 tkusumi Exp $ */ /* * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -61,7 +61,7 @@ * <string>...</string> * * <key>dev</key> - * <integer></integer> + * <integer></integer> * * <key>flags</key> * <integer></integer> @@ -110,7 +110,7 @@ */ /* - * DM_DEV_LIST == "names" + * DM_DEV_LIST == "names" * Request list of device-mapper created devices from kernel. * * <array> @@ -128,7 +128,7 @@ */ /* - * DM_DEV_RENAME == "rename" + * DM_DEV_RENAME == "rename" * Rename device to string. * * <array> @@ -138,14 +138,14 @@ */ /* - * DM_DEV_STATUS == "info, mknodes" + * DM_DEV_STATUS == "info, mknodes" * Will change fields DM_IOCTL_OPEN, DM_IOCTL_DEV in received dictionary, * with dm device values with name or uuid from list. * */ /* - * DM_TABLE_STATUS == "status,table" + * DM_TABLE_STATUS == "status,table" * Request list of device-mapper created devices from kernel. * * <array> @@ -166,10 +166,10 @@ * * params is string which contains {device} {parameters} * - */ + */ /* - * DM_TABLE_DEPS == "deps" + * DM_TABLE_DEPS == "deps" * Request list active table device dependencies. * * This command is also run to get dm-device @@ -181,7 +181,7 @@ * <integer>...</integer> * </array> * - */ + */ #define DM_IOCTL_COMMAND "command" @@ -215,8 +215,8 @@ /* IO mode of device */ #define DM_READONLY_FLAG (1 << 0) /* In/Out *//* to kernel/from kernel */ #define DM_SUSPEND_FLAG (1 << 1) /* In/Out */ -/* XXX. This flag is undocumented. */ -#define DM_EXISTS_FLAG (1 << 2) /* In/Out */ +/* XXX. This flag is undocumented. */ +#define DM_EXISTS_FLAG (1 << 2) /* In/Out */ /* Minor number is persistent */ #define DM_PERSISTENT_DEV_FLAG (1 << 3) /* In */