From nobody Mon Apr 08 19:04:18 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VCz6B43P0z5HYdF; Mon, 8 Apr 2024 19:04:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VCz6B2P15z4g7G; Mon, 8 Apr 2024 19:04:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712603058; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TtMw/krmFZVUA83Ih8/8dMTYaKP8IWRSmUPGB/+uMLk=; b=ea6wRzTFaxlsQTO7sSGikEJ3ect60pvxq2jGm0BBK4e2+y5FDgH72bE1MolWoEuXcNTF/f Rf3s/Su1mlNEEXso3b4C+5LB9uxnQtQDvuXTyGMHgRSg+G+e5RtjBP7kdSE62xuVfVyO2g MbJbU1st0O6XG98tMT/k6wQnUFxgWJyz6R94Pm7cTzM2eWdF0V9nq7vYmoDEk4ko3AHs7T rYQmdGT7QmrHhqHsRCZzpDhfZ5PzpLAllw0zoWNgGQkTMoMFl8L/IJG1WcF/E+2swog212 YLXE0OJPhrHVWBPgH8nGJCUcmYZFRbOYl6QDAKJjO8IR4KkeEzdQSU4B11Xl0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712603058; a=rsa-sha256; cv=none; b=rN5DnGJpXI1jv7AH2+vAPNEoG/ct2EZ/lvkpyqhwAl1mzn1JQwWuleZyFcVoqM7jno8bK+ QrN/sVjYqTaML896NChuqhWQprXwdOs4cFJIil79DgTvvQNLGVVu00BONm4oLUyBpZkwl0 EcIxVD/uTWxI3162UQHwIGPkODiZGRUu+5ymipgVEtXfBu7Drph5wO7fRU4SJV6xntPeki JQXaKW0IELiXmS88nzykL1+4LU4lV0daXf83UjNso+YsMoQmCtnilxSCGCONaYwiXClrWm ZcIycLM4Cwecx1bgG8DHUs3Q7Jl10oS5INMbLE85R0djswC70odI3a1svpiFBw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712603058; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TtMw/krmFZVUA83Ih8/8dMTYaKP8IWRSmUPGB/+uMLk=; b=bduOoFNawLY3QrvwxP6ksBPkoD42mjcgGTAx9FAnrbmvWBpZz9/X9qzwh0lwXkNwoSK0Sd hIunGfcgT0a0JrVoZpzXFgYJSugz/7ISOn/KpNYd7mSp9DGD+L56kBryGmXLH+kk70ocph ZIflySEEoYX1AEq3iOSCpUHpbJKJo3biVB64w+wJaI5JkSTR33GKr1NRiekU7Xwa5UcXaZ 8jR29o5JFEYldjWHIxNFpcwshCqgpaniB6LdmFZZ/1CCt2roq/GwAKiK0VsLDNZwV6EWO7 YtMTaKiRGgIDsgkhN3IzY6MPd9F+XAYX7e1zT1J2D1CJKUggYfXzvc1He4UwyA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VCz6B21RWzNN3; Mon, 8 Apr 2024 19:04:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 438J4Itt093748; Mon, 8 Apr 2024 19:04:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 438J4IJa093745; Mon, 8 Apr 2024 19:04:18 GMT (envelope-from git) Date: Mon, 8 Apr 2024 19:04:18 GMT Message-Id: <202404081904.438J4IJa093745@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: d32c600949d5 - stable/14 - newfs_msdos.8: example for specific cluster size List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: d32c600949d5891c014e9e794562e60caa2859f1 Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=d32c600949d5891c014e9e794562e60caa2859f1 commit d32c600949d5891c014e9e794562e60caa2859f1 Author: Alexander Ziaee AuthorDate: 2024-01-12 22:12:48 +0000 Commit: John Baldwin CommitDate: 2024-04-08 17:37:58 +0000 newfs_msdos.8: example for specific cluster size The usual use case in 2024 for newfs_msdosfs is creating filesystems on SD cards for older hardware. In most tutorials, they call the cluster size "allocation size". Therefore, add a small note next to cluster size that it is also called allocation size, and add an example for how to do this. Reviewed by: jhb Pull Request: https://github.com/freebsd/freebsd-src/pull/1045 (cherry picked from commit c8bf9f09ee3d5ac97d38218f2123893a7f1f0285) --- sbin/newfs_msdos/newfs_msdos.8 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sbin/newfs_msdos/newfs_msdos.8 b/sbin/newfs_msdos/newfs_msdos.8 index 278612548dc4..efa69c058453 100644 --- a/sbin/newfs_msdos/newfs_msdos.8 +++ b/sbin/newfs_msdos/newfs_msdos.8 @@ -23,7 +23,7 @@ .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd June 14, 2018 +.Dd January 12, 2024 .Dt NEWFS_MSDOS 8 .Os .Sh NAME @@ -134,7 +134,7 @@ File system block size (bytes per cluster). This should resolve to an acceptable number of sectors per cluster (see below). .It Fl c Ar cluster-size -Sectors per cluster. +Sectors per cluster, also called allocation size. Acceptable values are powers of 2 in the range 1 through 128. If the block or cluster size are not specified, the code @@ -224,6 +224,12 @@ Create a file system, using default parameters, on newfs_msdos /dev/ada0s1 .Ed .Pp +Create a FAT32 filesystem with a 32K allocation size on +.Pa /dev/mmcsd0s1 : +.Bd -literal -offset indent +newfs_msdos -F 32 -A -c 64 /dev/mmcsd0s1 +.Ed +.Pp Create a standard 1.44M file system, with volume label .Ar foo , on