From nobody Sun Dec 11 00:38:10 2022 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 4NV5TG5j7hz4jgkr; Sun, 11 Dec 2022 00:38:10 +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 4NV5TG5F00z4H0K; Sun, 11 Dec 2022 00:38:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670719090; 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=CfQ0/El39VuAznWOVZCOWWuRDJe6tyzz/M8FB4My7vE=; b=DzCaQLwog2Rnc2ppEYe2jfXwYudTNUVD87wbS/Csi+Mgzv0tcp1Q7HUVjd0/jWODQXUZUl sVVPV+SJZ2/A3YAw8NR2VRF76zGQyq53DkGfHRWgjAJM5pZVqS83/XiZzNJJFd008WDgpZ KhCeTsn3wZm+I8zl55Z3JYf9MUbJ1kv4OXbWGq+1scC9kN3+V4BWOFKZ8Lwj5Kk7w/2v2q H/DAHO78PRdNcMqdJBksw4G4jlwctCVBRwTbJ4ohPIYC36J74Du1OJAsIOU5+intPqsvz2 /7DoPCCkR04CSRZKAzs2imP6ZvnPU+b+ssIQuzDtuIADkWcROoYVeP3Z10RF8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670719090; 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=CfQ0/El39VuAznWOVZCOWWuRDJe6tyzz/M8FB4My7vE=; b=Nm0oZW951hcWdcRZbcfWvLGEf+erbATom0ZFoA7sM/OWZ+B1mFJEB78Ajn98OJnOSbq/Vw +cES9h1QYcikhSg7JVqJRttGPimK+s7tvDF6d3vSfJ4S+7PWAIg2S64A++Pwd2dphQEmSX IvmLs2V4uYMdnpEfQPCuj4AAJtl0AEnjIhIt/h1DO9wLmJxQCa0riudX6+QwX1Hkvu5pgE SrGF5FYu0jhOqXBSOJiFVlTc8hNYL4FOoiD160l33IeObve8px++ukJG0b2JkcgYokCGBp 1/rodJhm32EpgD9jU5bSuHSgDyU06nQa7Kr0J5YhoJgtXKaycj52hXyXk95IQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670719090; a=rsa-sha256; cv=none; b=eDsDYeAmUzX9akf8mIdJuDrcpFY0gXX/n6yOvHaJX3gajyjpp3xIh9fJ4+DOvAPgnKiFXC pqKHdNPojGuqUHQfLUowVXdi+XUXjYANvzdNwyHUM9UeUxpbYlXR00SpfT7G5/4gUFZgUe 3iLTlkm8/8QIMA/iy+0BJrE2hWutQGj0AIT+2942SxZKHtopQkLxmjmopn4qUyl01EEvTH uXLnIf+ZSq26zqUyWOlKYbOn2cd907YS8eD5Ja9qHyZCM3BeCZxK5VfGgEde2iL4Mw8OkJ YFhFhNu+kUCmXi0OU6mn5EQX2Pbobw/zQ+WqCSN+6+We/smShMPe4yFPfpPSxA== 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 4NV5TG4Bb4zbRR; Sun, 11 Dec 2022 00:38:10 +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 2BB0cAwK003742; Sun, 11 Dec 2022 00:38:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BB0cAgi003741; Sun, 11 Dec 2022 00:38:10 GMT (envelope-from git) Date: Sun, 11 Dec 2022 00:38:10 GMT Message-Id: <202212110038.2BB0cAgi003741@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: 7575051c42c6 - stable/13 - Clean up comments in fsck.h. 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org 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/13 X-Git-Reftype: branch X-Git-Commit: 7575051c42c6b6f8fa17bb85be0569444a81c345 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mckusick: URL: https://cgit.FreeBSD.org/src/commit/?id=7575051c42c6b6f8fa17bb85be0569444a81c345 commit 7575051c42c6b6f8fa17bb85be0569444a81c345 Author: Kirk McKusick AuthorDate: 2022-05-10 23:05:05 +0000 Commit: Kirk McKusick CommitDate: 2022-12-11 00:37:16 +0000 Clean up comments in fsck.h. (cherry picked from commit bf46c0a9ae4e544e07ec460f31962618dffd2b1e) Sponsored by: The FreeBSD Foundation --- sbin/fsck_ffs/fsck.h | 111 +++++++++++++++++++++++++-------------------------- 1 file changed, 55 insertions(+), 56 deletions(-) diff --git a/sbin/fsck_ffs/fsck.h b/sbin/fsck_ffs/fsck.h index daa346826eff..1fb0df0c5124 100644 --- a/sbin/fsck_ffs/fsck.h +++ b/sbin/fsck_ffs/fsck.h @@ -226,7 +226,6 @@ extern struct timespec startprog; extern struct bufarea *icachebp; /* inode cache buffer */ extern struct bufarea sblk; /* file system superblock */ extern struct bufarea *pdirbp; /* current directory contents */ -extern int sujrecovery; /* 1 => doing check using the journal */ #define dirty(bp) do { \ if (fswritefd < 0) \ @@ -320,61 +319,61 @@ extern unsigned long numdirs, listmax; extern long countdirs; /* number of directories we actually found */ #define MIBSIZE 3 /* size of fsck sysctl MIBs */ -extern int adjrefcnt[MIBSIZE]; /* MIB command to adjust inode reference cnt */ -extern int adjblkcnt[MIBSIZE]; /* MIB command to adjust inode block count */ -extern int setsize[MIBSIZE]; /* MIB command to set inode size */ -extern int adjndir[MIBSIZE]; /* MIB command to adjust number of directories */ -extern int adjnbfree[MIBSIZE]; /* MIB command to adjust number of free blocks */ -extern int adjnifree[MIBSIZE]; /* MIB command to adjust number of free inodes */ -extern int adjnffree[MIBSIZE]; /* MIB command to adjust number of free frags */ -extern int adjnumclusters[MIBSIZE]; /* MIB command to adjust number of free clusters */ -extern int freefiles[MIBSIZE]; /* MIB command to free a set of files */ -extern int freedirs[MIBSIZE]; /* MIB command to free a set of directories */ -extern int freeblks[MIBSIZE]; /* MIB command to free a set of data blocks */ -extern struct fsck_cmd cmd; /* sysctl file system update commands */ -extern char snapname[BUFSIZ]; /* when doing snapshots, the name of the file */ -extern char *cdevname; /* name of device being checked */ -extern long dev_bsize; /* computed value of DEV_BSIZE */ -extern long secsize; /* actual disk sector size */ -extern u_int real_dev_bsize; /* actual disk sector size, not overridden */ -extern char nflag; /* assume a no response */ -extern char yflag; /* assume a yes response */ -extern int bkgrdflag; /* use a snapshot to run on an active system */ -extern off_t bflag; /* location of alternate super block */ -extern int debug; /* output debugging info */ -extern int Eflag; /* delete empty data blocks */ -extern int Zflag; /* zero empty data blocks */ -extern int zflag; /* zero unused directory space */ -extern int inoopt; /* trim out unused inodes */ -extern char ckclean; /* only do work if not cleanly unmounted */ -extern int cvtlevel; /* convert to newer file system format */ -extern int ckhashadd; /* check hashes to be added */ -extern int bkgrdcheck; /* determine if background check is possible */ -extern int bkgrdsumadj; /* whether the kernel have ability to adjust superblock summary */ -extern char usedsoftdep; /* just fix soft dependency inconsistencies */ -extern char preen; /* just fix normal inconsistencies */ -extern char rerun; /* rerun fsck. Only used in non-preen mode */ -extern int returntosingle; /* 1 => return to single user mode on exit */ -extern char resolved; /* cleared if unresolved changes => not clean */ -extern int sbhashfailed; /* when reading superblock check hash failed */ -extern char havesb; /* superblock has been read */ -extern char skipclean; /* skip clean file systems if preening */ -extern int fsmodified; /* 1 => write done to file system */ -extern int fsreadfd; /* file descriptor for reading file system */ -extern int fswritefd; /* file descriptor for writing file system */ -extern int surrender; /* Give up if reads fail */ -extern int wantrestart; /* Restart fsck on early termination */ - -extern ufs2_daddr_t maxfsblock; /* number of blocks in the file system */ -extern char *blockmap; /* ptr to primary blk allocation map */ -extern ino_t maxino; /* number of inodes in file system */ - -extern ino_t lfdir; /* lost & found directory inode number */ -extern const char *lfname; /* lost & found directory name */ -extern int lfmode; /* lost & found directory creation mode */ - -extern ufs2_daddr_t n_blks; /* number of blocks in use */ -extern ino_t n_files; /* number of files in use */ +extern int adjblkcnt[MIBSIZE]; /* MIB cmd to adjust inode block count */ +extern int adjrefcnt[MIBSIZE]; /* MIB cmd to adjust inode reference count */ +extern int adjndir[MIBSIZE]; /* MIB cmd to adjust number of directories */ +extern int adjnbfree[MIBSIZE]; /* MIB cmd to adjust number of free blocks */ +extern int adjnifree[MIBSIZE]; /* MIB cmd to adjust number of free inodes */ +extern int adjnffree[MIBSIZE]; /* MIB cmd to adjust number of free frags */ +extern int adjnumclusters[MIBSIZE]; /* MIB cmd adjust number of free clusters */ +extern int freefiles[MIBSIZE]; /* MIB cmd to free a set of files */ +extern int freedirs[MIBSIZE]; /* MIB cmd to free a set of directories */ +extern int freeblks[MIBSIZE]; /* MIB cmd to free a set of data blocks */ +extern int setsize[MIBSIZE]; /* MIB cmd to set inode size */ +extern struct fsck_cmd cmd; /* sysctl file system update commands */ + +extern int bkgrdcheck; /* determine if background check is possible */ +extern int bkgrdsumadj; /* whether the kernel has the ability to adjust + the superblock summary fields */ +extern off_t bflag; /* location of alternate super block */ +extern int bkgrdflag; /* use a snapshot to run on an active system */ +extern char *blockmap; /* ptr to primary blk allocation map */ +extern char *cdevname; /* name of device being checked */ +extern char ckclean; /* only do work if not cleanly unmounted */ +extern int ckhashadd; /* check hashes to be added */ +extern int cvtlevel; /* convert to newer file system format */ +extern long dev_bsize; /* computed value of DEV_BSIZE */ +extern u_int real_dev_bsize; /* actual disk sector size, not overridden */ +extern int debug; /* output debugging info */ +extern int Eflag; /* delete empty data blocks */ +extern int fsmodified; /* 1 => write done to file system */ +extern int fsreadfd; /* file descriptor for reading file system */ +extern int fswritefd; /* file descriptor for writing file system */ +extern char havesb; /* superblock has been read */ +extern int inoopt; /* trim out unused inodes */ +extern ino_t lfdir; /* lost & found directory inode number */ +extern int lfmode; /* lost & found directory creation mode */ +extern const char *lfname; /* lost & found directory name */ +extern ufs2_daddr_t maxfsblock; /* number of blocks in the file system */ +extern ino_t maxino; /* number of inodes in file system */ +extern ufs2_daddr_t n_blks; /* number of blocks in use */ +extern ino_t n_files; /* number of files in use */ +extern char nflag; /* assume a no response */ +extern char preen; /* just fix normal inconsistencies */ +extern char rerun; /* rerun fsck. Only used in non-preen mode */ +extern char resolved; /* cleared if unresolved changes => not clean */ +extern int returntosingle; /* 1 => return to single user mode on exit */ +extern int sbhashfailed; /* when reading superblock check hash failed */ +extern long secsize; /* actual disk sector size */ +extern char skipclean; /* skip clean file systems if preening */ +extern char snapname[BUFSIZ]; /* when doing snapshots, the name of the file */ +extern int sujrecovery; /* 1 => doing check using the journal */ +extern int surrender; /* Give up if reads fail */ +extern char usedsoftdep; /* just fix soft dependency inconsistencies */ +extern int wantrestart; /* Restart fsck on early termination */ +extern char yflag; /* assume a yes response */ +extern int zflag; /* zero unused directory space */ +extern int Zflag; /* zero empty data blocks */ extern volatile sig_atomic_t got_siginfo; /* received a SIGINFO */ extern volatile sig_atomic_t got_sigalarm; /* received a SIGALRM */