From owner-freebsd-fs@freebsd.org Sun Jul 8 13:08:21 2018 Return-Path: Delivered-To: freebsd-fs@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 B670C1045339 for ; Sun, 8 Jul 2018 13:08:21 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 26CCA73CFC for ; Sun, 8 Jul 2018 13:08:20 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from mxback4j.mail.yandex.net (mxback4j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10d]) by forward103p.mail.yandex.net (Yandex) with ESMTP id E8B5021821B3 for ; Sun, 8 Jul 2018 16:08:17 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback4j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id OzR2RpXvBE-8HsmuME1; Sun, 08 Jul 2018 16:08:17 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1531055297; bh=2nvsdrxO/ILrc93C5EK6Pq5uaZ/uz+gZlGw8zbXjoP0=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=FqHXrVvkwkn4AeONhcpzFsWYjxo1C67wv9Lg4+4RrkWuRw0NOIzVa2heCfSQ0djak yCxLg9Uu5xzh/7cKsTSdqhfqGY8rw4hoAUT5pj2uB3/m3AxMaBCmwqf68/4UPORE/2 zfY1s2fuzK6/HSYQLzpa7oM/Lkjk23NQHDF7PjCI= Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ex9p5B9fcz-8Hq8dwIn; Sun, 08 Jul 2018 16:08:17 +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=1531055297; bh=2nvsdrxO/ILrc93C5EK6Pq5uaZ/uz+gZlGw8zbXjoP0=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=FqHXrVvkwkn4AeONhcpzFsWYjxo1C67wv9Lg4+4RrkWuRw0NOIzVa2heCfSQ0djak yCxLg9Uu5xzh/7cKsTSdqhfqGY8rw4hoAUT5pj2uB3/m3AxMaBCmwqf68/4UPORE/2 zfY1s2fuzK6/HSYQLzpa7oM/Lkjk23NQHDF7PjCI= Authentication-Results: smtp1j.mail.yandex.net; dkim=pass header.i=@yandex.ru Subject: Re: A request for unnested UFS implementation in MBR To: Manish Jain , freebsd-fs@freebsd.org References: <98201d37-2d65-34c6-969e-c9649f1a3ab1@yandex.com> 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 AAHNIkFuZHJleSBWLiBFbHN1a292IDxhZUBmcmVlYnNkLm9yZz7CwHsE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vLpdtrYCMg28PNqKNyrQ87LQ49O9 50IIZDOtNFeR0FGucjcLPdS9PiEqCoH7/waJxWp6ydJ+g4OYRBYNM0EmMgy1N85JJrV1mi5i Message-ID: <428ce38c-4f3b-1dff-36c5-4a7509613441@yandex.ru> Date: Sun, 8 Jul 2018 16:08:04 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <98201d37-2d65-34c6-969e-c9649f1a3ab1@yandex.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="URWZ9rmC3VsvqRyDFttqaR6ADl7DLOEjG" X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2018 13:08:22 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --URWZ9rmC3VsvqRyDFttqaR6ADl7DLOEjG Content-Type: multipart/mixed; boundary="tmFV9ANBfumWRrFYdVk6kIVQbIndvvcsy"; protected-headers="v1" From: "Andrey V. Elsukov" To: Manish Jain , freebsd-fs@freebsd.org Message-ID: <428ce38c-4f3b-1dff-36c5-4a7509613441@yandex.ru> Subject: Re: A request for unnested UFS implementation in MBR References: <98201d37-2d65-34c6-969e-c9649f1a3ab1@yandex.com> In-Reply-To: <98201d37-2d65-34c6-969e-c9649f1a3ab1@yandex.com> --tmFV9ANBfumWRrFYdVk6kIVQbIndvvcsy Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 07.07.2018 08:59, Manish Jain wrote: > I am a longtime user of FreeBSD, which now serves as my only OS. >=20 > There is one request I wished to make for FreeBSD filesystems. While UF= S > implementation under GPT is unnested just as Ext2, the MBR > implementation of UFS continues to piggyback on an unnecessary nest (in= > a BSD slice). >=20 > Can it not be considered as an alternative to provide a UFS partition > (unnested) under MBR too ? >=20 > Existing users could continue to use the freebsd::freebsd-ufs scheme, > while fresh usage could have the alternative of UFS directly recorded i= n > the MBR. >=20 > I should perhaps note that unlike most users who have shifted to GPT of= > late, I much prefer MBR because 1) the scheme's design by itself keeps > the number of slices/partitions in a disk manageable; and 2) I can use > the boot0 manager, my favourite boot manager. The main goal of using bsdlabel was the boot code, I think. MBR has less than 512 bytes to keep boot code. This is too little to be able place the code that can read UFS filesystem to read and start loader= =2E I'm not sure, but AFAIR there were some hacks in the boot code, that allowed to read from the raw partition as fallback. I.e. you can try to create MBR with "freebsd" slice, make filesystem with newfs on this slice and write boot1 bootcode to this slice at proper offset using dd(1). But as I said, I'm not sure. There were many changes in this area and I did not followed by them. --=20 WBR, Andrey V. Elsukov --tmFV9ANBfumWRrFYdVk6kIVQbIndvvcsy-- --URWZ9rmC3VsvqRyDFttqaR6ADl7DLOEjG 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 - http://www.enigmail.net/ iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAltCDLQACgkQAcXqBBDI oXrxmQgAp2X7eIydmjUrohz5TqGOjNEncJTkz5Dp77VBGHeOnLoKf3DqyiA9Owh8 3nyGZmQuIJKyZVWVLUqWFooDRHCmlP86mfh6dJDcxWQ1VKwiHRHnbxaLZbuFIkaN VpCVnBxhxgzry5Gv6USx2uW3p5J8FVx5nM4MaiQzRXgCYP0fga25MplNqb2Zbxtl UOsYDzkkSixUbw29IJNHg5u50Hj0VXANTnTSfm2wAxgmxb7lZry24s29dPnldLFW awCma1+TyUBFHlAvHaMq9lvLrDeQpRPvwaAoFa3lGwKAVLGOFQMyh4PNb3sMvzkF UC72fZUS7ZmAWl99YTNgRr4tfNkfEQ== =GnE5 -----END PGP SIGNATURE----- --URWZ9rmC3VsvqRyDFttqaR6ADl7DLOEjG--