From owner-svn-src-all@freebsd.org Tue Oct 9 08:41:24 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CF6E910C5BAE; Tue, 9 Oct 2018 08:41:24 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::601]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 40E797D38D; Tue, 9 Oct 2018 08:41:24 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from mxback6j.mail.yandex.net (mxback6j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by forward101o.mail.yandex.net (Yandex) with ESMTPS id 0998B13457B2; Tue, 9 Oct 2018 11:41:13 +0300 (MSK) Received: from smtp4p.mail.yandex.net (smtp4p.mail.yandex.net [2a02:6b8:0:1402::15:6]) by mxback6j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id VhDj5ObxxV-fCrm2jeI; Tue, 09 Oct 2018 11:41:12 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1539074472; bh=FglhlcJjHSvotcL/7q1HCuckaVkUhTe7Sw2NY4Ywpco=; h=Subject:To:Cc:References:From:Message-ID:Date:In-Reply-To; b=YrWxNn101aAbnuwBJq56S0L7FnuCp6C0bQ1LhMGoR36P10xPbkXuMHHFrnOvAfSxK sMgxr/TP1dvfueytoCel7jc0JUpegA3OPNDL4LxTDJ41+3HjbDn/dmU+naWM2FgVYs VM1OgjILr+ouU5HEMGc+teSM17sX9WJyIr1tkH7E= Received: by smtp4p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id rMzU0XEW2V-fC4Cu6bI; Tue, 09 Oct 2018 11:41:12 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1539074472; bh=FglhlcJjHSvotcL/7q1HCuckaVkUhTe7Sw2NY4Ywpco=; h=Subject:To:Cc:References:From:Message-ID:Date:In-Reply-To; b=YrWxNn101aAbnuwBJq56S0L7FnuCp6C0bQ1LhMGoR36P10xPbkXuMHHFrnOvAfSxK sMgxr/TP1dvfueytoCel7jc0JUpegA3OPNDL4LxTDJ41+3HjbDn/dmU+naWM2FgVYs VM1OgjILr+ouU5HEMGc+teSM17sX9WJyIr1tkH7E= Authentication-Results: smtp4p.mail.yandex.net; dkim=pass header.i=@yandex.ru Subject: Re: svn commit: r264378 - head/sys/geom/part To: John Baldwin , Marcel Moolenaar , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Cc: Josh Paetzel References: <201404122028.s3CKSdo1026394@svn.freebsd.org> From: "Andrey V. Elsukov" Openpgp: id=E6591E1B41DA1516F0C9BC0001C5EA0410C8A17A Autocrypt: addr=bu7cher@yandex.ru; prefer-encrypt=mutual; keydata= xsBNBEwBF1kBCADB9sXFhBEUy8qQ4X63Y8eBatYMHGEFWN9ypS5lI3RE6qQW2EYbxNk7qUC5 21YIIS1mMFVBEfvR7J9uc7yaYgFCEb6Sce1RSO4ULN2mRKGHP3/Sl0ijZEjWHV91hY1YTHEF ZW/0GYinDf56sYpDDehaBF5wkWIo1+QK5nmj3vl0DIDCMNd7QEiWpyLVwECgLX2eOAXByT8B bCqVhJGcG6iFP7/B9Ll6uX5gb8thM9LM+ibwErDBVDGiOgvfxqidab7fdkh893IBCXa82H9N CNwnEtcgzh+BSKK5BgvPohFMgRwjti37TSxwLu63QejRGbZWSz3OK3jMOoF63tCgn7FvABEB AAHNIkFu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oz BcFCNdDAyXcaAzXsx/E02YWm1hIWNRxanAe7Vlg7OL+gvLpdtrYCMg28PNqKNyrQ87LQ49O9 50IIZDOtNFeR0FGucjcLPdS9PiEqCoH7/waJxWp6ydJ+g4OYRBYNM0EmMgy1N85JJrV1mi5i Message-ID: <2f72f3b3-d890-bed2-742e-fcc39c5618e3@yandex.ru> Date: Tue, 9 Oct 2018 11:39:44 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yvjgFeAWaKg8ZMcddEzT9nehImflvxhXR" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Oct 2018 08:41:25 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --yvjgFeAWaKg8ZMcddEzT9nehImflvxhXR Content-Type: multipart/mixed; boundary="UUFPHaWZ3j330PFv2DjsmCJAQS5247FHD"; protected-headers="v1" From: "Andrey V. Elsukov" To: John Baldwin , Marcel Moolenaar , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Cc: Josh Paetzel Message-ID: <2f72f3b3-d890-bed2-742e-fcc39c5618e3@yandex.ru> Subject: Re: svn commit: r264378 - head/sys/geom/part References: <201404122028.s3CKSdo1026394@svn.freebsd.org> In-Reply-To: --UUFPHaWZ3j330PFv2DjsmCJAQS5247FHD Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 08.10.2018 19:46, John Baldwin wrote: > This needs a way to be overridden. If you have a machine installed wit= h a > layout created prior to this change (e.g. a zpool mirror or RAID or som= e > other mirror or RAID), you can no longer create a matching partition si= nce > the starting sector is now always 40 instead of 34 and the partition si= ze > won't match. Also, while we may want to create sane layouts by default= , we > should probably always provide a way to create less-sane layouts that a= re > still conformant to the spec. I do wonder if this kind of default > preference shouldn't belong in the userspace gpart tool rather than the= > kernel and the kernel should create any compliant layout as requested b= y > userland instead. >=20 > jpaetzel@ just ran into this case where he can't replace a failed disk = in a > system running 12 that was first formatted on 10, so it's not academic.= As a workaround you can try to copy first 34 sectors from old disk to new using dd(1). And then use `gpart recover`. I think this should work. --=20 WBR, Andrey V. Elsukov --UUFPHaWZ3j330PFv2DjsmCJAQS5247FHD-- --yvjgFeAWaKg8ZMcddEzT9nehImflvxhXR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAlu8aVQACgkQAcXqBBDI oXrrJgf/aB9cfSsjA+yo4onp8hGRu/vvoWZExjs7X0+x9DGR3zrxYHFrL5u8uj6K 2G3/9ynBxZzHDheudWNp04ZRgb8fJM/snHidDNjWG4bWiRCdlejetms6BwCjqAML y1adVVbd3drvqFHqRLZSm18o8H+efMeJz5VILjNdCnPAzBSI+KS2heuvhxAB2xbq OIThPAz/hWR4jefbSx9YPedPZ17riboOizym0EUAUgd1vyA7OMWB06hSeRBTBtbu 9dW0pyoh04MdM+aLvRgyFeMyRbaioqjKs+wXRSaFFmkDdX6uE4Y1VGzM1IQuR/jv z3+Ox9IL138fuz2O9UI7dTNy1b4ImQ== =Euo6 -----END PGP SIGNATURE----- --yvjgFeAWaKg8ZMcddEzT9nehImflvxhXR--