From owner-freebsd-geom@FreeBSD.ORG Wed Oct 2 16:15:55 2013 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 38A47D35 for ; Wed, 2 Oct 2013 16:15:55 +0000 (UTC) (envelope-from sean_bruno@yahoo.com) Received: from nm8-vm9.bullet.mail.gq1.yahoo.com (nm8-vm9.bullet.mail.gq1.yahoo.com [98.136.218.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EF877253E for ; Wed, 2 Oct 2013 16:15:54 +0000 (UTC) Received: from [98.137.12.189] by nm8.bullet.mail.gq1.yahoo.com with NNFMP; 02 Oct 2013 16:15:48 -0000 Received: from [98.136.164.65] by tm10.bullet.mail.gq1.yahoo.com with NNFMP; 02 Oct 2013 16:15:48 -0000 Received: from [127.0.0.1] by smtp227.mail.gq1.yahoo.com with NNFMP; 02 Oct 2013 16:15:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1380730548; bh=aeS3rqsVe4SLc+8Dr3eUp+oYJJHK+FWspBtBTChHM00=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Subject:From:Reply-To:To:Content-Type:Date:Message-ID:Mime-Version:X-Mailer; b=s4kcirblfZbBdJ4q05ywnV7+fTPFqUedKs99l3pbVHJwmQqWJyrbeDc1lgEIzx3hAiPpW1aeEblTueSkeOM2xO8Mr0sB6GkKs3WifIEPqNy4ULzK2oW2xzmvKOzZzxCx8UmlxjEPJRFctbBdv+HTcYCnxZQ/xyWXDn3j9Mu1fUA= X-Yahoo-Newman-Id: 190283.87177.bm@smtp227.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: Fy8A8ncVM1nU3ov.KIGnRXdaAEKynEfCtPPQ05yUfNEWF1R BEgYCP4xePa22rkLgMspNqqTMxsdqQBPsQNgLtVBrMT.LLAcPN9AbXI5ZiXo PSUpfbC122.oPOsrJi0s0p01TPKuGZolLu.kDdtRrutxct_Me4VcnEA2wBui .CQbUQRjkq_rVinooTWWp89V16rjFbF0SdrjG6JrXYaEssV6_.6X_A69ABYe 8ZMqdqnTCS51K8RKgFfNkfHt5u7OttSmCFdXtAjCEacYN6eWm9kKGNQbw0.. 9X8qfuDP_q7brEFn6kWPP9Y6JdrJx0u9iApbOWB7WMHXEv7XVFdHchY9sP4j kpZ4r40.rXpHat3VMC.kvo3i1MAziawRtMJPzYAlMp0wcTzXy5_OMgfJKEgv LyPKrCBV64p2xoKs2iH_q8zUOcfoq.2PepVDo2IJ8.8jYN2mQKWqtG0hVBjl HL39WlBn5itYkudGhOR8honKNz6z8kKljQyM27jHmP5wO_yQ9U30qLMdve4Y VgsQ2Q2t552Hh8mUS_biywkriNeNUERntYTD4P8fzqrReVM0daVBXXiQTiBA 5xg-- X-Yahoo-SMTP: u5BKR6OswBC_iZJVfGRoMkTIpc8pEA4- X-Rocket-Received: from [10.73.160.242] (sean_bruno@209.131.62.116 with ) by smtp227.mail.gq1.yahoo.com with SMTP; 02 Oct 2013 16:15:48 +0000 UTC Subject: Endian issues, LE write to BE partitions From: Sean Bruno To: freebsd-fs@freebsd.org Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-SrhZVfgFxlg3k0ahEVKb" Date: Wed, 02 Oct 2013 09:15:46 -0700 Message-ID: <1380730546.1619.47.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port X-Mailman-Approved-At: Wed, 02 Oct 2013 16:28:09 +0000 X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: sbruno@freebsd.org List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Oct 2013 16:15:55 -0000 --=-SrhZVfgFxlg3k0ahEVKb Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Using makefs from an amd64 host to build a f/s in a VTOC8 partition will destroy the entire partition table. I simplified the test to simple dd to an existing partition and got the same result, exonerating mkfs I suspect a lack of endian knowledge in geom itself, not geom_part_vtoc8. =20 test case: using amd64 host (10.0 current) create monolothic image truncate -s+5G /var/tmp/myfile.img mdconfig -f /var/tmp/myfile.img build and load geom_part_vtoc8 kernel module use gpart to create VTOC8 part table add partition to part table to yeild the following: =3D> 0 10442250 md0 VTOC8 (5.0G) 0 10442250 1 freebsd-ufs (5G) =20 dd to md0a from dev zero for just a bit dd if=3D/dev/zero of=3D/dev/md0a bs=3D64k count=3D100 destroy md0 via mdconfig -d -u 0 recreate it with mdconfig -f /var/tmp/myfile.img gpart displays no partions for the image any more: gpart: No such geom: md0. bcc freebsd-geom --=-SrhZVfgFxlg3k0ahEVKb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (FreeBSD) iQEcBAABAgAGBQJSTEayAAoJEBkJRdwI6BaHOy8H/Aimwsjhet3TOKfv4rwRTVFo bYVoFdP8EvN9XXox6+aKxXjHrKJBhmCsCUpwWTUlrp6iNenMPTbxa+QHrgldO6wv a3gUXbU++WOc98elcFHb9fwN+Ks4lfp+ph45EFkz4w8ptmFdG5fKRZXsiNFCgzYv eerizZSK4S7FM4XtM0BH0K9ps8upLa+bQRw0sARwU8GTPB3Do+VlKWVU3f0svFPa QXpmEx1sc4SCiPZd7mO91niZ/+NMmmtGJ0k4X8LEvx1XVujxqWtlJxJ29sMEWZ5H 2GQligqDnjpmJXl4Y6tKisNFASJzMyG2TtcjiRV4AEwefgQ1UNJ/ASkZCGPTwCo= =6c4g -----END PGP SIGNATURE----- --=-SrhZVfgFxlg3k0ahEVKb--