From nobody Wed Dec 18 14:34:55 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 4YCx672SClz5hQ7v; Wed, 18 Dec 2024 14:34:55 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YCx671cCxz4N01; Wed, 18 Dec 2024 14:34:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734532495; 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=ibNKuy4KkhZI/E7ieOws+hzsw7o4QF+MCLl2BlSnry8=; b=UXnr5fgUvQCH0CcxS1Ux3gXHlme6bhOBxaes5zwAbdssJB1YiT6Xl+6sEx0LVFROt55kOK 5KXmJj/P7EWwlKrTTc3w2mqcrUWj1pAJdzZxSf7woNR66vZ5mbU0iaaEuACg4WrV8vynMS C7ljcbJgBCV0r6YoKSKgB1gkWlDyoiu7flSXW5BUY85SUKa6DkWGMbadPePQSYEzncqKA9 Ha7/xh8yu0Vr2KbvavMnLJO/uIxCcOGEbz0HI5mUeKl6KHxJik/KnSm0XyCTMGlrPhjv+w HW8Kuw5MZKsJO96H3/AcxwY0K1ijBL6B6+2ukcDpML1fMRyMGP8YSfx8bYmjfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734532495; 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=ibNKuy4KkhZI/E7ieOws+hzsw7o4QF+MCLl2BlSnry8=; b=t6aj6rFzJ+wi9DpMwQ/3eQ0MbsP9Qw2byblqw7NjEogJ90pF/NaJkblJ5tLQhFn1nEGp2l v/x8+mpBnKQZ2bOOCnc8oZYBTsG3DPN/E8cqRUD00S9hHfQ/nR+HnJt5drGWfCX22B+3Jr z3WxUsU+kqdRALscsY2LxCjLRXMKzSNVjNn794wvEGJ+j8U27+2ibLKU7qXKcTSaJgizA4 64FrWUMK9VAoQ2h5IAg0nLHSx9jFbE2eJrCutkb4PNRK0wd1xg+SHJLmcXX53tcj2kYEw5 tIx7UEfL0jiXbEzwi9mLrsRVNe16Omt6wdbA0IIXgNeIchN+a+f9BimbOEAcbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734532495; a=rsa-sha256; cv=none; b=ERc+apj66RXvTg+uzzDB1v99ROm2jAevxMb+r0uzceVtd9MDwLb+pRvVBeorVB5QaHZsKu vMGDQTcA3vNjlMwdhscE5h2OmpOutVuygC6lZJQvRVUnc3/ez9lOPGa50RceP061lDT+H+ ZgS9PcQFxjTIchYjeJd58aFkKs3dVK3wsrAUVvzEQwTwmrPsBRWVVkSpArtGxAaIkbbzte Fxv7dSUfZcpCWQI/Pup+0Wk1UlcUVHFWv4FCM935GaDZn0cyDvC+F5dCzpd1JjNgTXN1Em SeWGjRjU6J/WWFSZUaRdBL/TbgJY9UpFaCKCmFdTiECvlP4hKxtJepwVqWM7rQ== 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 4YCx671519z1BMQ; Wed, 18 Dec 2024 14:34:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BIEYtvG012115; Wed, 18 Dec 2024 14:34:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BIEYtS2012112; Wed, 18 Dec 2024 14:34:55 GMT (envelope-from git) Date: Wed, 18 Dec 2024 14:34:55 GMT Message-Id: <202412181434.4BIEYtS2012112@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Juraj Lutter Subject: git: d9ad257a2649 - main - fsck_msdosfs(8): Introduce -B option as no-op 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: otis X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d9ad257a2649e83f19e1454898d5bbb76bc7483a Auto-Submitted: auto-generated The branch main has been updated by otis: URL: https://cgit.FreeBSD.org/src/commit/?id=d9ad257a2649e83f19e1454898d5bbb76bc7483a commit d9ad257a2649e83f19e1454898d5bbb76bc7483a Author: Juraj Lutter AuthorDate: 2024-12-18 13:24:04 +0000 Commit: Juraj Lutter CommitDate: 2024-12-18 14:34:14 +0000 fsck_msdosfs(8): Introduce -B option as no-op When performing a background fsck on msdosfs devices, it ends with the following error: fsck_msdosfs: illegal option -- B usage: fsck_msdosfs -p [-f] filesystem ... fsck_msdosfs [-ny] filesystem ... Introduce -B option as a compatibility with fsck_ffs(8) and also update the descriptions for -B and -C in fsck_msdosfs(8) manual page. Reviewed by: imp Approved by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48132 --- sbin/fsck_msdosfs/fsck_msdosfs.8 | 14 +++++++++----- sbin/fsck_msdosfs/main.c | 5 +++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/sbin/fsck_msdosfs/fsck_msdosfs.8 b/sbin/fsck_msdosfs/fsck_msdosfs.8 index 963818ea8bd7..a74649e0c47e 100644 --- a/sbin/fsck_msdosfs/fsck_msdosfs.8 +++ b/sbin/fsck_msdosfs/fsck_msdosfs.8 @@ -23,7 +23,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd January 6, 2020 +.Dd December 18, 2024 .Dt FSCK_MSDOSFS 8 .Os .Sh NAME @@ -32,10 +32,10 @@ .Sh SYNOPSIS .Nm .Fl p -.Op Fl Cf +.Op Fl BCf .Ar filesystem ... .Nm -.Op Fl CMny +.Op Fl BCMny .Ar filesystem ... .Sh DESCRIPTION The @@ -71,10 +71,14 @@ making any changes. .Pp The options are as follows: .Bl -tag -width indent +.It Fl B +Ignored for +.Xr fsck 8 +compatibility. .It Fl C -Compatibility with the corresponding +Ignored for .Xr fsck 8 -option (skip check if clean), defined to no-op. +compatibility. .It Fl F Compatibility with the wrapper .Xr fsck 8 diff --git a/sbin/fsck_msdosfs/main.c b/sbin/fsck_msdosfs/main.c index 0713189daa2d..49a811964ab9 100644 --- a/sbin/fsck_msdosfs/main.c +++ b/sbin/fsck_msdosfs/main.c @@ -68,9 +68,10 @@ main(int argc, char **argv) skipclean = 1; allow_mmap = 1; - while ((ch = getopt(argc, argv, "CfFnpyM")) != -1) { + while ((ch = getopt(argc, argv, "BCfFnpyM")) != -1) { switch (ch) { - case 'C': /* for fsck_ffs compatibility */ + case 'B': /* for fsck_ffs compatibility */ + case 'C': break; case 'f': skipclean = 0;