NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/44268: device mapper always uses ffs as wedge type



>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@localhost
                                "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:
        
        


Home | Main Index | Thread Index | Old Index