From owner-freebsd-geom@FreeBSD.ORG Sun Mar 11 09:35:33 2012 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2226106566C; Sun, 11 Mar 2012 09:35:32 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward3.mail.yandex.net (forward3.mail.yandex.net [IPv6:2a02:6b8:0:602::3]) by mx1.freebsd.org (Postfix) with ESMTP id EEF1A8FC0A; Sun, 11 Mar 2012 09:35:31 +0000 (UTC) Received: from smtp2.mail.yandex.net (smtp2.mail.yandex.net [77.88.46.102]) by forward3.mail.yandex.net (Yandex) with ESMTP id 71D75B4281A; Sun, 11 Mar 2012 13:35:30 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1331458530; bh=3YYJgKyn5CwSS2ZzLlUPB1B9ZKAGD9bM64gkEofebkM=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type; b=SKynOEaxvJxw59cLJ9faJuToAtFYbrenmbmpw5FWALPsBN+Bwhrb/l4gO/yM1nQ1j gz9I4rJn5Z0SfvNe2rigEYoq29RPmqoG9feHlEmbNTqEf+8fKIsxyPQVmHoyE/CdLc mJ0JWIriuC0EBTgT0OhjzWLKfup+bMfGphF4Hg0o= Received: from smtp2.mail.yandex.net (localhost [127.0.0.1]) by smtp2.mail.yandex.net (Yandex) with ESMTP id 49DADE2057D; Sun, 11 Mar 2012 13:35:30 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1331458530; bh=3YYJgKyn5CwSS2ZzLlUPB1B9ZKAGD9bM64gkEofebkM=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type; b=SKynOEaxvJxw59cLJ9faJuToAtFYbrenmbmpw5FWALPsBN+Bwhrb/l4gO/yM1nQ1j gz9I4rJn5Z0SfvNe2rigEYoq29RPmqoG9feHlEmbNTqEf+8fKIsxyPQVmHoyE/CdLc mJ0JWIriuC0EBTgT0OhjzWLKfup+bMfGphF4Hg0o= Received: from mail.kirov.so-ups.ru (mail.kirov.so-ups.ru [178.74.170.1]) by smtp2.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ZTv4dxm8-ZTvmEMq2; Sun, 11 Mar 2012 13:35:29 +0400 X-Yandex-Spam: 1 Message-ID: <4F5C71DC.3010203@yandex.ru> Date: Sun, 11 Mar 2012 13:35:24 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: freebsd-current , freebsd-geom@FreeBSD.org X-Enigmail-Version: 1.3.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig3E19C24C88F540DDF68B2096" Cc: Subject: [RFC, RFT] LDM support (aka Windows Dynamic Volumes) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Mar 2012 09:35:33 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3E19C24C88F540DDF68B2096 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Hi, All i wrote GEOM_PART_LDM class. It provides basic support of Logical Disk Ma= nager partitioning scheme [1]. Since LDM metadata is not documented i used seve= ral articles found in the web and linux implementation as reference [2]. Only generic volumes is supported. Spanned, striped and raid5 configurations aren't implemented. Mirrored volumes also are not shown by= default, but they can be accessed when kern.geom.part.ldm.show_mirrors=3D1 (by you= r own risk). Currently only LDM on top of MBR is supported. Also only "gpart destroy" = is allowed with LDM scheme. you can compile class without patching, the source code is here: http://people.freebsd.org/~ae/LDM/ [1] http://en.wikipedia.org/wiki/Logical_Disk_Manager [2] http://fxr.watson.org/fxr/source/fs/partitions/?v=3Dlinux-2.6 Example: /* da1 and da2 disks without geom_part_ldm module */ # gpart show da1 da2 =3D> 63 104857537 da1 MBR (50G) 63 1985 1 ms-ldm-data (992k) 2048 204800 2 ms-ldm-data [active] (100M) 206848 104648704 3 ms-ldm-data (49G) 104855552 2048 - free - (1.0M) =3D> 32 2097120 da2 MBR (1.0G) 32 31 - free - (15k) 63 2095041 1 ms-ldm-data (1G) 2095104 2048 - free - (1.0M) # kldload ./geom_part_ldm.ko # gpart show da1 da2 =3D> 63 104855489 da1 LDM (50G) 63 1985 - free - (992k) 2048 204800 1 ntfs (100M) 206848 104648704 2 ntfs (49G) =3D> 63 2095041 da2 LDM (1.0G) 63 65 - free - (32k) 128 1024000 1 ntfs (500M) 1024128 1067008 2 ntfs (521M) 2091136 3968 - free - (2M) --=20 WBR, Andrey V. Elsukov --------------enig3E19C24C88F540DDF68B2096 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iQEcBAEBAgAGBQJPXHHhAAoJEAHF6gQQyKF6BIIH/1Rq30YX83eR+4+1i4IRYF8I BBAsMEblYUArNkNJ+tE+El0sxSDHHYAVusR54+jTpXw8/EjHbrjaEppF+6yZZcNg kGMZo7wiHg5ajJynjR2OritM/qP+8a4Rs1koOkVeOT1UBsOcE299JtAa5REDWkxl CKbu60KSm8M3xCE8/BqfRqLTk7VVGPzItRUJqkGsESph73rlAeG2ju873JlBcmDa bltifVx4DB19ZH7NbuelAgT8XY5RRw6593B6q3/ip8/j1mnSV/z3rgCuyfDbLrpc GhgT0U7vsFJWaU3I+yeu6RDeTVSm5K2uifK5nzFMWvUn8W3d+n87nR4I4+kcivo= =/jHf -----END PGP SIGNATURE----- --------------enig3E19C24C88F540DDF68B2096--