From nobody Mon Apr 08 20:25:44 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 4VD0w93M7Kz5Hhq5; Mon, 8 Apr 2024 20:25:45 +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 4VD0w86hp2z3xkW; Mon, 8 Apr 2024 20:25:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712607944; 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=bHXiVIZ9Tye6+qYA3ZsiCqqeDcbc24EEMTUj++qQ+xs=; b=vo7ef6KFuBbiv29lBsmMKcIqbE8lzSoZkIKqXEjnfkSi7e2RAYYKDoSBQrwIsyiXGshGic 55l4zjPxzVwc0F74Nr/fT0blhccdFXBQ1LsgTKIdkdQmFTvR/4+KnvEdRGhrAZ2M1rf10r ffIehCE9VALWKUYkTJgk4CGB/qqeRg7R4M7FG+qWYw9N46PMN4NEbz+LZZufNyuKGVgUWW RTEaSxUVU5q8Ugp6GBV1LWbTmOT2eqRfiMTrJDf9+xPeZKxUBBU1x8iNuznmrPTdOFwjNV EZgmmyg5VfZOtHK6LpfN8bu2CtAlyo94fGrLWJcAAe7TGGkSfWrbyU1Idb+KCg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712607944; a=rsa-sha256; cv=none; b=caGiqRUsA5DA5sWIQ4HjifBv24Hp7oMmyUzKHW3/Dxq+lxKqGl0YMr+h/WS9VyodqVAab+ 9ubqw815KnvEfbrOXGdJViMfQaO3pH8dexuVEj0Yd56wwEkYNlzhjP48o005fZ31ozLxlz YmfANLGd58zEaZVr9CEX2MZTulBgLL7+zIu3VEVDdJi5h93riUrbPmR4ujV+jj1zDxJbTL M3R4trfOAPsN5dfjfunoXUWeHMmokeUvzuYjhX/t14z8friuvGfiaJSmgz63CuJyc7qb9c c+QYDEfeZyD6RZauW5rb+TPbNgZx42Cyh4mwKI8iDJJVAhwnx8RqamvwfIJVQw== 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=1712607944; 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=bHXiVIZ9Tye6+qYA3ZsiCqqeDcbc24EEMTUj++qQ+xs=; b=AozRcmM9dDZVQtmsn0EXd1qRYdkT1T+ndQs+kJKSn8OoV5j/vhFABk9dWbtHVoMFno27xh iDGcgxTXFLXpAbIROt5xQ1qoTPXv5948+j0+KKfYdFDhNvAbzskXxA5NiidDsfAHZnP6vx TCIZGWHpwOvQT7tmHfL7WnyyJORDFv9Xrpw6NXbknHHYC20VcMuBqHGIvhDkIct4MaXn8M JpC/FeTlN/0Rp2QRkXvb1eC01NF3bRAGDbuNBfXSudHJMJk/K4TTxGVxgUCcwxEA+wMgLZ tbDMCMvTIqzWnyBiJ4yMgIOsq/vPA6w83CpBH7iFDvWoGLEaLssJAT33uSFaLg== 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 4VD0w86HsSzQRw; Mon, 8 Apr 2024 20:25:44 +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 438KPiWR039619; Mon, 8 Apr 2024 20:25:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 438KPiU6039616; Mon, 8 Apr 2024 20:25:44 GMT (envelope-from git) Date: Mon, 8 Apr 2024 20:25:44 GMT Message-Id: <202404082025.438KPiU6039616@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: 975afd9c44a8 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 975afd9c44a847e01308a089a59daf1a77438109 Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=975afd9c44a847e01308a089a59daf1a77438109 commit 975afd9c44a847e01308a089a59daf1a77438109 Author: Alexander Ziaee AuthorDate: 2024-01-12 22:12:48 +0000 Commit: John Baldwin CommitDate: 2024-04-08 17:38:02 +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