Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jan 2021 07:58:19 GMT
From:      Kirk McKusick <mckusick@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 41cf333f9b2a - stable/12 - MFC: Correct and add some comments.
Message-ID:  <202101010758.1017wJIq069870@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by mckusick:

URL: https://cgit.FreeBSD.org/src/commit/?id=41cf333f9b2a494e7bb54f42a3790b6df99d09c9

commit 41cf333f9b2a494e7bb54f42a3790b6df99d09c9
Author:     Kirk McKusick <mckusick@FreeBSD.org>
AuthorDate: 2020-12-31 23:15:44 +0000
Commit:     Kirk McKusick <mckusick@FreeBSD.org>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101010758.1017wJIq069870>