NetBSD Problem Report #44268
From mlelstv@henery.1st.de Thu Dec 23 16:25:18 2010
Return-Path: <mlelstv@henery.1st.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 00EB363B86D
for <gnats-bugs@gnats.NetBSD.org>; Thu, 23 Dec 2010 16:25:17 +0000 (UTC)
Message-Id: <20101223162448.438B128168@henery.1st.de>
Date: Thu, 23 Dec 2010 17:24:48 +0100 (CET)
From: mlelstv@serpens.de
Reply-To: mlelstv@serpens.de
To: gnats-bugs@gnats.NetBSD.org
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
>Organization:
--
Michael van Elst
Internet: mlelstv@serpens.de
"A potential Snark may lurk in every tree."
>Environment:
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
>Description:
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.
>How-To-Repeat:
Create a logical volume using LVM and try to format it as an LFS
filesystem.
>Fix:
Drop the notion of a 'partition type'.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.