From nobody Mon Jan 22 05:40:28 2024 X-Original-To: dev-commits-src-main@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 4TJJwD6hrkz576x3; Mon, 22 Jan 2024 05:40:28 +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 4TJJwD5vvrz580L; Mon, 22 Jan 2024 05:40:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705902028; 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=bwzzZ3ps6bAuRr1vn6gzMJn6c//hRVluqC8XiU5wfwc=; b=mMG1oHyEb8tiyL8Lv1PtxwzkQNcaZhvkyebv0ulCwuBTHhvwrq33Wan5rQo9tzhzIZmvn4 6w0IEMpnfWvU5B9JTmL2mnjUYEooy4YqnT+ULFa1an8pe70Gve44C4cJASor/NTXzPxKmu /EWY1fzGR7nJ8vIRJb2UxcbHDLxAlaDtOgRlP8OyDjit9BAzRqUgxpM/3GBWAW2ecNg1B1 x5eAtYvrN5glUONCyF7Ii6FRrivny2+sE29UCyy4W6AJVO2PR7Xll0fixZ+78WxK+eHBMk +TIbBFqUJfCLdkspjROL9otzR1Hw64Hi+Ulb+Y6RKhUnuQwZ+yg8Wu6gWYuSnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705902028; 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=bwzzZ3ps6bAuRr1vn6gzMJn6c//hRVluqC8XiU5wfwc=; b=v4g1jvE/zxaDql0H+TSeg9wHjHT3zm0nZmKoouiRt2jLxI7Ylb2luu23K+TNWRWqke7Gzg Vk3rLAy4vyR2bKSXTagSnnTL5b7bbPgZgo4YrPtZC3aK0UASsLmSpN1O2nIXJx2YlhxmCS 4XrxRqZ6Uuv0FNjjoRjmD8eC019SjeI2Kfn7v5OgH2Al4d84ASzfpFzZStJF/lU1773gDI M3NR8dPa+J4QIsG9ks4c6NLThylBLfPeq1gVW/lVE0i2P5kklDDcOyiL0YFDSdsP77XahH eMyOAn10c9hdu4pG8fsDCiFJeXgc4QF5eb81o3uwYF8ZfwZu5GR43fMHKB7jOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705902028; a=rsa-sha256; cv=none; b=y4NI8mGCNwKo062mkiReKLR2OEK2ErQ8713XU+poNrpQ6FrK03Wea87uWx6X8z4pb2ZcqC crE+DtyYK3rixE4QxAx7/bQhkevYbb1Bw52MZ9VTjyQSUIUGQyI3P5wkesMC/zuO+jbXzG UMQCieMDpAFx7xltIpqY+7T2m1yNug3PX8FuaMsRRLPKcro7opcueFjJ5+5//8jFr6HAoQ X2OMuA+5GNV1r3Jj5BxvkCQYnBBkgXzKJmWVIB/YNtIVzs1BFPMO+5sxq0HMC5VecE+xi8 34wXvzBuf48fMNoH/4XQimW9l5ygnEYtR13bGE28ZuEWhi89Iq4BnIGiqTIXsw== 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 4TJJwD4zYpzqHf; Mon, 22 Jan 2024 05:40:28 +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 40M5eSj8015564; Mon, 22 Jan 2024 05:40:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40M5eSUc015561; Mon, 22 Jan 2024 05:40:28 GMT (envelope-from git) Date: Mon, 22 Jan 2024 05:40:28 GMT Message-Id: <202401220540.40M5eSUc015561@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: c8bf9f09ee3d - main - newfs_msdos.8: example for specific cluster size List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: c8bf9f09ee3d5ac97d38218f2123893a7f1f0285 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c8bf9f09ee3d5ac97d38218f2123893a7f1f0285 commit c8bf9f09ee3d5ac97d38218f2123893a7f1f0285 Author: Alexander Ziaee AuthorDate: 2024-01-12 22:12:48 +0000 Commit: John Baldwin CommitDate: 2024-01-22 05:39:16 +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 --- 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