RSOunrF6XLcpyDF0dxLmd5TknN1X+Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dW0zr2zSNz19qV for ; Tue, 16 Dec 2025 15:22:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 41845 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 16 Dec 2025 15:22:48 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Eugene Grosbein Subject: git: 81b68da9d428 - stable/14 - trim.8: minor update for manual page List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 81b68da9d428c9e3fed8ed7e3115cb2c5fa6fa52 Auto-Submitted: auto-generated Date: Tue, 16 Dec 2025 15:22:48 +0000 Message-Id: <69417948.41845.3297d264@gitrepo.freebsd.org> The branch stable/14 has been updated by eugen: URL: https://cgit.FreeBSD.org/src/commit/?id=81b68da9d428c9e3fed8ed7e3115cb2c5fa6fa52 commit 81b68da9d428c9e3fed8ed7e3115cb2c5fa6fa52 Author: Eugene Grosbein AuthorDate: 2025-12-09 14:47:26 +0000 Commit: Eugene Grosbein CommitDate: 2025-12-16 15:22:12 +0000 trim.8: minor update for manual page Further explain that trim(8) is not for trimming free blocks in populated file systems/ZFS pools, as people still take it wrong sometimes. (cherry picked from commit dbc4a1c69191909a7210cad6da46b755557d0d34) (cherry picked from commit b2f8d46d898fb50222aefca47d687a852c647b2f) --- usr.sbin/trim/trim.8 | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/usr.sbin/trim/trim.8 b/usr.sbin/trim/trim.8 index ebb8b927cd91..b4799399e110 100644 --- a/usr.sbin/trim/trim.8 +++ b/usr.sbin/trim/trim.8 @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd October 1, 2025 +.Dd December 9, 2025 .Dt TRIM 8 .Os .Sh NAME @@ -51,11 +51,21 @@ utility erases specified region of the device. It is mostly relevant for a storage that implements trim (like flash based, or thinly provisioned storage). .Sy All erased data is lost. -Alternatively, refer to the +.Pp +The +.Nm +utility should not be used upon mounted file system or active devices +being a part of imported ZFS pool or other software RAID, and the kernel +does not permit such usage generally. +If used upon not mounted file system +or inactive device, the +.Nm +utility erases blocks non-selectively, whether a block is occupied or not. +Refer to the .Xr fsck_ffs 8 command having a flag .Fl E -to trim populated UFS, and to the +to trim free blocks inside populated UFS, and to the .Xr zpool-trim 8 command to trim existing ZFS pool. .Pp