Home | History | Annotate | Download | only in clri
History log of /src/sbin/clri/clri.c
RevisionDateAuthorComments
 1.26  26-Feb-2023  andvar s/superblok/superblock/ in comment.
 1.25  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.24  30-Aug-2015  mlelstv Calculate sector size from superblock and use that instead of DEV_BSIZE.
 1.23  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.22  26-Jul-2009  dholland branches: 1.22.6; 1.22.12;
Remove gross hack and attendant need for -fno-strict-aliasing.
 1.21  16-Mar-2009  lukem fix sign-compare issues
 1.20  20-Jul-2008  lukem branches: 1.20.4;
Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)
 1.19  20-Jan-2005  xtraeme branches: 1.19.26; 1.19.30;
Kill __P(), ANSIfy, remove main() prototype; WARNS=3
 1.18  27-Mar-2004  dsl Don'r check FS_FLAGS_UPDATED for ffsv2
 1.17  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.16  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.15  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.14  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.13  25-Aug-1998  ross branches: 1.13.10;
from Erik Bertelsen <erik@mediator.uni-c.dk>
{ put } { in } { lots } { of } { these } { to } { shut } { up } { egcs }
 1.12  18-Mar-1998  bouyer Add support for non-native endian FFS.
Clear the clean flag in the SB when an inode has been cleared.
 1.11  16-Sep-1997  lukem resolve sccsid conflict
 1.10  14-Sep-1997  lukem - fix use of .Nm
- deprecate use of register
- cleanup for WARNS=1
 1.9  18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.8  30-Jan-1995  mycroft Make this more type safe.
 1.7  23-Sep-1994  mycroft err(3)/warn(3) cleanup
 1.6  08-Jun-1994  mycroft Update from 4.4-Lite.
 1.5  25-Apr-1994  cgd need <sys/time.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.13.10.1  25-Nov-2001  he Pull up revision 1.14 (requested by lukem):
Call ffs_sb_swap() with the correct arguments. Fixes problems
with using other-endian file systems.
 1.19.30.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.19.26.1  28-Sep-2008  mjf Sync with HEAD.
 1.20.4.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.22.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.22.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