From nobody Thu Apr 25 09:50:11 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 4VQB0z1pyJz5HDQq; Thu, 25 Apr 2024 09:50:11 +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 4VQB0z1GVRz4tvs; Thu, 25 Apr 2024 09:50:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714038611; 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=vgeutYwTFaZeF8FgImIVUi70d0kL7XeVnYEQQ5femSg=; b=uEqr5lXAXRAbAteMh6hZDUYQczoDRxCnKY9tUOQ2TkdbjRDj+9eAd99ZN8WMJbWqRGR9Kc OdOo1XQHEBS2yYTkKOEN0z9SuwrZEoCWW/ZTmSUf6AV0vY1ehWjbA+CxZG5BQZzyv3pICN S2QKuuL/aMg0R+AV68r98755hM6UnYs+9hgSwPEseyruWVan6MJGoYM8H2ZN1J3wfnRg7+ 1dRt4S4XTGwyh0EzE2OR5DKYjANSvqPhrV8DriLqx1C8acR/xIaw7OrnY2GapUsFpSc9Pb EITHp55zPa6ZfZP4FR/q0tKq8To/ENcLDrZvRCXHzUYRwdijwPMvQkUE4Cl6UQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714038611; a=rsa-sha256; cv=none; b=RITXDV+RPomfSJZnJNqxTu9kRG7koKb7UvQF+d3K6UbNpsfezP58DYmSquODS+S1ytPOG2 GN4EJkjbVutjexXDVWK8U8boTqUHLBZRpgFBzb1ec2X7EBQfdzFfV5hMufP7zEa6eiogay 6KLqTgrlY3y5aD/YICMdwDYjYcBAvcxGnB4djbQJdr3JcJ5ACp/yltGEK+V5eeQpzhZBaS BjYcidf9aWfdIzy36+CDZ84Cx62Sayg0qT8zuT7q5/FhqW84VCyRlYetw+IIVoGxHiPDng kileUI3OrA5/wHncV2Iwk26ClgbIGMpY4tPglKbVaYJ6Ce6WtLHQbmmmY8APKw== 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=1714038611; 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=vgeutYwTFaZeF8FgImIVUi70d0kL7XeVnYEQQ5femSg=; b=VWozUnVoj5JhSXTcNTXvzt5D/Ij8gQmqajCtIv+J79K8WylWHQgSdLkUa12ueRAb0GzkGh I6oLIP1XFMaWoBJrkZxwEpUoG/2QDcMTDh25NI4OTEiohecTPVsQqvejh5/eederagtt8e C4qY8waJQ4YTFFTnHMkAIiWS0WWIJSKLKQHemJ5Y3Q4Q50o49LrE7HTKWCWM1PocnQJBzq d8Li7+xSisprDFKC5oQWJawcc5nWGcxQA2nVTlWClSaiHtppNwc8Ei96u7MbNivxMV8GZJ k/yAEAXYbbHqQJMCZD2SijOvjKFtl3l1Bu/xWE1VjICXq25rFI26EX9DBiy8bQ== 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 4VQB0z0tVJztyR; Thu, 25 Apr 2024 09:50:11 +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 43P9oBRl043009; Thu, 25 Apr 2024 09:50:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43P9oB6P043000; Thu, 25 Apr 2024 09:50:11 GMT (envelope-from git) Date: Thu, 25 Apr 2024 09:50:11 GMT Message-Id: <202404250950.43P9oB6P043000@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 177ba183076b - main - 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/main X-Git-Reftype: branch X-Git-Commit: 177ba183076bd6fe6b29b1d657b954cca256506b Auto-Submitted: auto-generated The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/src/commit/?id=177ba183076bd6fe6b29b1d657b954cca256506b commit 177ba183076bd6fe6b29b1d657b954cca256506b Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2024-04-23 14:12:45 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2024-04-25 09:49:50 +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 --- 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 d7a11c9fd217..fcd07ca72240 100644 --- a/bin/sync/sync.8 +++ b/bin/sync/sync.8 @@ -26,7 +26,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd May 31, 1993 +.Dd April 25, 2024 .Dt SYNC 8 .Os .Sh NAME @@ -69,3 +69,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.