NetBSD Problem Report #44268

From  Thu Dec 23 16:25:18 2010
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 00EB363B86D
	for <>; Thu, 23 Dec 2010 16:25:17 +0000 (UTC)
Message-Id: <>
Date: Thu, 23 Dec 2010 17:24:48 +0100 (CET)
Subject: device mapper always uses ffs as wedge type
X-Send-Pr-Version: 3.95

>Number:         44268
>Category:       kern
>Synopsis:       device mapper always uses ffs as wedge type
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 23 16:30:00 +0000 2010
>Originator:     Michael van Elst
>Release:        NetBSD 5.99.41
                                Michael van Elst
                                "A potential Snark may lurk in every tree."

System: NetBSD pussyfoot 5.99.41 NetBSD 5.99.41 (PUSSYFOOT) #18: Thu Dec 23 15:08:47 CET 2010 mlelstv@henery:/home/netbsd-current/obj.amd64/hom
e/netbsd-current/src/sys/arch/amd64/compile/PUSSYFOOT amd64
Architecture: x86_64
Machine: amd64
When you create a device with dmsetup(8) or lvm(8) and query it with
DIOCGWEDGEINFO it always returns a partition type of DKW_PTYPE_FFS. E.g.:

# dkctl /dev/mapper/rtestvg-testlv getwedgeinfo
testvg-testlv at testvg-testlv: testvg-testlv
testvg-testlv: 1048576 blocks at 0, type: ffs

The consequence is that for example newfs_lfs refuses to work without
the force option.

For wedges that are created by dkctl or that are auto-discovered the
partition type is given as a parameter or deduced from a label.


Create a logical volume using LVM and try to format it as an LFS

Drop the notion of a 'partition type'.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.