From owner-dev-commits-src-all@freebsd.org Fri Jan 1 07:58:20 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1825C4C1A45; Fri, 1 Jan 2021 07:58:20 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D6cpN07v8z4Yxm; Fri, 1 Jan 2021 07:58:20 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 E74B91F37C; Fri, 1 Jan 2021 07:58:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1017wJJm069871; Fri, 1 Jan 2021 07:58:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1017wJIq069870; Fri, 1 Jan 2021 07:58:19 GMT (envelope-from git) Date: Fri, 1 Jan 2021 07:58:19 GMT Message-Id: <202101010758.1017wJIq069870@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kirk McKusick Subject: git: 41cf333f9b2a - stable/12 - MFC: Correct and add some comments. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mckusick X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 41cf333f9b2a494e7bb54f42a3790b6df99d09c9 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jan 2021 07:58:20 -0000 The branch stable/12 has been updated by mckusick: URL: https://cgit.FreeBSD.org/src/commit/?id=41cf333f9b2a494e7bb54f42a3790b6df99d09c9 commit 41cf333f9b2a494e7bb54f42a3790b6df99d09c9 Author: Kirk McKusick AuthorDate: 2020-12-31 23:15:44 +0000 Commit: Kirk McKusick CommitDate: 2021-01-01 07:49:58 +0000 MFC: Correct and add some comments. Sponsored by: Netflix (cherry picked from commit 68dc94c7d314b02ef80fe972f524a2b3c6e68a1c) --- sbin/fsck_ffs/fsck.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sbin/fsck_ffs/fsck.h b/sbin/fsck_ffs/fsck.h index b05bc5f7a3c2..3394949189b5 100644 --- a/sbin/fsck_ffs/fsck.h +++ b/sbin/fsck_ffs/fsck.h @@ -137,11 +137,11 @@ extern struct inostatlist { */ struct bufarea { TAILQ_ENTRY(bufarea) b_list; /* buffer list */ - ufs2_daddr_t b_bno; - int b_size; - int b_errs; - int b_flags; - int b_type; + ufs2_daddr_t b_bno; /* disk block number */ + int b_size; /* size of I/O */ + int b_errs; /* I/O error */ + int b_flags; /* B_ flags below */ + int b_type; /* BT_ type below */ union { char *b_buf; /* buffer space */ ufs1_daddr_t *b_indir1; /* UFS1 indirect block */ @@ -172,14 +172,14 @@ struct bufarea { /* * Type of data in buffer */ -#define BT_UNKNOWN 0 /* Buffer holds a superblock */ +#define BT_UNKNOWN 0 /* Buffer type is unknown */ #define BT_SUPERBLK 1 /* Buffer holds a superblock */ #define BT_CYLGRP 2 /* Buffer holds a cylinder group map */ #define BT_LEVEL1 3 /* Buffer holds single level indirect */ #define BT_LEVEL2 4 /* Buffer holds double level indirect */ #define BT_LEVEL3 5 /* Buffer holds triple level indirect */ #define BT_EXTATTR 6 /* Buffer holds external attribute data */ -#define BT_INODES 7 /* Buffer holds external attribute data */ +#define BT_INODES 7 /* Buffer holds inodes */ #define BT_DIRDATA 8 /* Buffer holds directory data */ #define BT_DATA 9 /* Buffer holds user data */ #define BT_NUMBUFTYPES 10