Home | History | Annotate | Download | only in badsect
History log of /src/sbin/badsect/badsect.c
RevisionDateAuthorComments
 1.35  17-Nov-2022  chs Restore backward compatibility of UFS2 with previous NetBSD releases by
disabling support in UFS2 for extended attributes (including ACLs).
Add a new variant of UFS2 called "UFS2ea" that does support extended attributes.
Add new fsck_ffs operations "-c ea" and "-c no-ea" to convert file systems
from UFS2 to UFS2ea and vice-versa (both of which delete all existing extended
attributes in the process).
 1.34  05-Sep-2016  sevan Drop main() prototype.
 1.33  23-Jun-2013  dholland fsbtodb() -> FFS_FSBTODB(), EXT2_FSBTODB(), or MFS_FSBTODB()
dbtofsb() -> FFS_DBTOFSB() or EXT2_DBTOFSB()

(Christos already did the lfs ones a few days back)
 1.32  16-Mar-2009  lukem branches: 1.32.6; 1.32.12;
fix sign-compare issues
 1.31  29-Dec-2008  christos branches: 1.31.2;
fix dev_t format.
 1.30  20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)
 1.29  08-Aug-2004  christos branches: 1.29.26; 1.29.30;
cleanup some lint
remove unused variables
XXX: fs.h macros are not portable in ansi.
 1.28  08-Aug-2004  christos - fix broken superblock finding code was wrong.
- ansify, KNF
- if the filesystem was not modified, don't ask the user to fsck.
 1.27  27-Mar-2004  dsl Don't require ffsv2 suberblocks to have FS_FLAGS_UPDATED set
 1.26  21-Mar-2004  dsl When searching for the superblock, check that the fs_sblockloc field
matches the location we read it from to ensure we don't have one of the
alternate superblocks.
Fixes part of PR kern/24809
 1.25  05-Jan-2004  jmmv Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
 1.24  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.23  13-Jul-2003  itojun use bounded string op
 1.22  02-Apr-2003  fvdl Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
 1.21  24-Jan-2003  fvdl Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
 1.20  17-Aug-2001  lukem remove third argument (`int ns') from ffs_sb_swap(), and let ffs_sb_swap()
determine the endianness of the `struct fs *o' superblock from o->fs_magic
and set needswap as necessary, rather than trusting the caller to get
it right. invariably, almost every caller of ffs_sb_swap() was calling it
with ns set to the wrong value for ns anyway!
ansi KNF ffs_bswap.c declarations whilst here.

this fixes all sorts of problems when trying to use other-endian file systems,
notably the kernel trying to access memory *way* off, possibly corrupting or
panicing, and userland programs SEGVing and/or corrupting things (e.g,
"fsck_ffs -B" to swap a file system endianness).

whilst the previous rev of ffs_bswap.c (1.10, 2000/12/23) made this problem
worse, i suspect that the problem was always there and previous versions
just happened not to trash things at the wrong time.

FFS_EI should now be a lot more stable.
 1.19  19-Feb-2001  cgd convert to use getprogname()
 1.18  04-Feb-2001  christos fix nested extern
 1.17  30-Jul-1999  drochner branches: 1.17.8;
don't use the result of a readdir() after closedir(), from
Christian Groessler per PR bin/8107
 1.16  25-Aug-1998  ross from Erik Bertelsen <erik@mediator.uni-c.dk>
{ put } { in } { lots } { of } { these } { to } { shut } { up } { egcs }
 1.15  18-Mar-1998  bouyer Add support for non-native endian ffs.
 1.14  16-Sep-1997  lukem resolve sccsid conflict
 1.13  14-Sep-1997  lukem * don't use register
* warnx() doesn't need trailing \n
 1.12  01-Aug-1997  christos Fix warnings.
Use warn(3) and err(3) instead of printf+perror
 1.11  21-Sep-1996  scottr Since the filesystem is mounted on the block device, we need to use
the character device instead. Closes PRs 897, 994, 2719, and 2769, but
somewhat differently.
 1.10  18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.9  30-Jan-1995  mycroft Don't mix stat flags and inode flags.
 1.8  31-Oct-1994  cgd Add string.h
 1.7  11-Jun-1994  mycroft Fix up RCS ids.
 1.6  10-Jun-1994  pk Update to 4.4-lite.
 1.5  15-Dec-1993  jtc Update to use <dirent.h>.
 1.4  01-Aug-1993  mycroft Add RCS identifiers.
 1.3  23-Mar-1993  cgd changed "Id" to "Header" for rcsids
 1.2  22-Mar-1993  cgd added rcs ids to all files
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.3  16-Sep-1997  lukem imported from lite-2
 1.1.1.2  13-Jun-1994  mycroft Import 4.4-Lite version.
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.17.8.1  25-Nov-2001  he Pull up revision 1.20 (requested by lukem):
Call ffs_sb_swap() with the correct arguments. Fixes problems
with using other-endian file systems.
 1.29.30.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.29.26.2  17-Jan-2009  mjf Sync with HEAD.
 1.29.26.1  28-Sep-2008  mjf Sync with HEAD.
 1.31.2.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.32.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.32.6.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")

RSS XML Feed