From 35c700b993799c6f4137fb1420b546af4ccccabb Mon Sep 17 00:00:00 2001 From: tkusumi Date: Fri, 20 Dec 2019 16:16:36 +0000 Subject: 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 --- sys/dev/dm/dm_target_linear.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/dm/dm_target_linear.c') diff --git a/sys/dev/dm/dm_target_linear.c b/sys/dev/dm/dm_target_linear.c index e6a753fe26a..04de7e43d8d 100644 --- a/sys/dev/dm/dm_target_linear.c +++ b/sys/dev/dm/dm_target_linear.c @@ -1,4 +1,4 @@ -/* $NetBSD: dm_target_linear.c,v 1.33 2019/12/18 14:31:35 tkusumi Exp $ */ +/* $NetBSD: dm_target_linear.c,v 1.34 2019/12/20 16:16:36 tkusumi Exp $ */ /* * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include -__KERNEL_RCSID(0, "$NetBSD: dm_target_linear.c,v 1.33 2019/12/18 14:31:35 tkusumi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dm_target_linear.c,v 1.34 2019/12/20 16:16:36 tkusumi Exp $"); /* * This file implements initial version of device-mapper dklinear target. @@ -96,7 +96,7 @@ dm_target_linear_table(void *target_config) params = kmem_alloc(DM_MAX_PARAMS_SIZE, KM_SLEEP); snprintf(params, DM_MAX_PARAMS_SIZE, "%s %" PRIu64, - tlc->pdev->name, tlc->offset); + tlc->pdev->udev_name, tlc->offset); return params; } -- cgit