From nobody Sun Apr 28 18:29: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 4VSFP44D7Vz5Jjpr; Sun, 28 Apr 2024 18:29:44 +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 4VSFP42V4Wz561q; Sun, 28 Apr 2024 18:29:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714328984; 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=0KV+6PARgQnrTb5b+ajANG2YySrCe5emJ7PliKfLNq8=; b=mGsunC/9rLmEg+gvGHDQQ+WnddmWI3JDpGU4Xo1AEo4Nqq4ynRampFnddeN5rlpVOYdCev fmb2xPFjOguNPaepHob+DHbRPq4jqMauLbB/LVn2oNJp5u33cbAQyIiwTul2/yVDwVwyYN w79Aa+AH1W25DNKG4qGH2CoYPqdBtutbJblfr9YY4Nb4zHVouaO92ynNpkXiK9phOPVxj2 E0Sg0/C0qusQzmSqURzGiClpse5eLeNOjXIjaVWVFI4RYF5x33SPZb5wNBaIxpD+d2S1Wu siRCYNNZHwr1l1tO5P3tINOSkCR1Bf49MJtXjDoCxjI3Vtw+W/fWOHyOQbOLew== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714328984; a=rsa-sha256; cv=none; b=yuQNIcvrBOlhZpTaSca8Amo8Vojt4Fo4/vHb4X48xfRODF3UYJlWSAE7mu0HqOIAOoEpAV Ix3YkBZZa5B/Ha2RmLChB9z6k+YUZKF86GM90A34KvB9svT4p9bsP5LF+lJU2U8t2iKWcS 5Zl4nQkfukPu2j7IQxQacPnnKyvVqhTrGbbkAqRLwxDXoDq9WHXonrrbB8AWOB9HTY4tWX 9RQFcjB3IRc43mvtH7NKJaZmQDJqf/Wb3dACUaVciM3HH+xnBfkSpo4z+2CwfuB7CNFe+W 7yBzFri+jH2xiUtgHH3JXnyfp4/9Ab0kYtY3YTTCwon2MUzoENfy95TDU35Q1A== 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=1714328984; 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=0KV+6PARgQnrTb5b+ajANG2YySrCe5emJ7PliKfLNq8=; b=Y+hipgWavOnpDgDxOLcqzXcuEMDO4+lM7wQgduuCf850mo5p6wgJqdVMxqrw8qCaoTGahM Hod+xB8NeHRfC6LZHo8DU6cEejEjEqSjWbCuBCNITfds9GDuyS0Ochbt8CgjFLazQ1Xtde G5hm6KInn9oRmFgokAx/bgphCGgmJMkgw4OqTYwAxk/TMleDDviN7HTEwlNYgK4af5my3i K+pF9kqqX1jyzarCEHh/qRs0ZsW2pzl3QLX/zkG3hqbJX4bxDPq7CqhAbXvUNrfasnGkYh biYXnf/1SxgsOQgTIlOcvKtDzEfSRi0MGKdQFGMAlylFsPmSMpDZDDOydl6z5Q== 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 4VSFP425W9zc5c; Sun, 28 Apr 2024 18:29: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 43SITiiV026831; Sun, 28 Apr 2024 18:29:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43SITiZF026828; Sun, 28 Apr 2024 18:29:44 GMT (envelope-from git) Date: Sun, 28 Apr 2024 18:29:44 GMT Message-Id: <202404281829.43SITiZF026828@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 5119386711a8 - stable/13 - sync.8: Document that the "sync dance" is not a thing 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 5119386711a88f86dfb3ec3eb609d0d2c6a4f050 Auto-Submitted: auto-generated The branch stable/13 has been updated by 0mp: URL: https://cgit.FreeBSD.org/src/commit/?id=5119386711a88f86dfb3ec3eb609d0d2c6a4f050 commit 5119386711a88f86dfb3ec3eb609d0d2c6a4f050 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2024-04-23 14:12:45 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2024-04-28 18:29:36 +0000 sync.8: Document that the "sync dance" is not a thing People still believe that it is essential to run sync(8) a couple of times before a reboot/halt. Document that this has not been necessary for a long time now. Reviewed by: imp, bcr, Pau Amma MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D33233 (cherry picked from commit 177ba183076bd6fe6b29b1d657b954cca256506b) --- bin/sync/sync.8 | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/bin/sync/sync.8 b/bin/sync/sync.8 index 732d813880e2..222e9edf59f9 100644 --- a/bin/sync/sync.8 +++ b/bin/sync/sync.8 @@ -28,7 +28,7 @@ .\" .\" @(#)sync.8 8.1 (Berkeley) 5/31/93 .\" -.Dd May 31, 1993 +.Dd April 25, 2024 .Dt SYNC 8 .Os .Sh NAME @@ -71,3 +71,31 @@ A .Nm utility appeared in .At v4 . +.Pp +On systems older than +.Bx 4.0 , +commands like +.Xr reboot 8 +and +.Xr halt 8 +were unavailable. +The shutdown procedure involved running +.Nm , +waiting for the lights to stop, +and turning off the machine. +.Pp +Issuing three separate +.Nm +commands (one line each) was a placebo that would generally suffice in +.At v7 +machines that were otherwise quiesced systems. +It replaced the one-per-line +.Nm +as a substitute for waiting. +.Pp +.Bx 4.0 +introduced +.Xr reboot 2 +and +.Xr sync 2 +which rendered this trick obsolete.