History log of /netbsd-src/sbin/badsect/badsect.c (Results 1 – 25 of 35)
Revision Date Author Comments
# 87ba0e2a 17-Nov-2022 chs <chs@NetBSD.org>

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

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).

show more ...


# 51fe790c 05-Sep-2016 sevan <sevan@NetBSD.org>

Drop main() prototype.


# 2737439d 23-Jun-2013 dholland <dholland@NetBSD.org>

fsbtodb() -> FFS_FSBTODB(), EXT2_FSBTODB(), or MFS_FSBTODB()
dbtofsb() -> FFS_DBTOFSB() or EXT2_DBTOFSB()

(Christos already did the lfs ones a few days back)


# c1237301 16-Mar-2009 lukem <lukem@NetBSD.org>

fix sign-compare issues


# ac3b5d9c 29-Dec-2008 christos <christos@NetBSD.org>

fix dev_t format.


# 6543a91f 20-Jul-2008 lukem <lukem@NetBSD.org>

Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)


# fe9cbbdc 08-Aug-2004 christos <christos@NetBSD.org>

cleanup some lint
remove unused variables
XXX: fs.h macros are not portable in ansi.


# 7abcefad 08-Aug-2004 christos <christos@NetBSD.org>

- fix broken superblock finding code was wrong.
- ansify, KNF
- if the filesystem was not modified, don't ask the user to fsck.


# 33599967 27-Mar-2004 dsl <dsl@NetBSD.org>

Don't require ffsv2 suberblocks to have FS_FLAGS_UPDATED set


# de51f399 21-Mar-2004 dsl <dsl@NetBSD.org>

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


# b635f565 05-Jan-2004 jmmv <jmmv@NetBSD.org>

Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.


# bf07c871 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.


# 69501841 13-Jul-2003 itojun <itojun@NetBSD.org>

use bounded string op


# 42614ed3 02-Apr-2003 fvdl <fvdl@NetBSD.org>

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 t

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.

show more ...


# a3ff3a30 24-Jan-2003 fvdl <fvdl@NetBSD.org>

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.


# 1b81d635 17-Aug-2001 lukem <lukem@NetBSD.org>

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 trusti

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.

show more ...


# 8a986b2e 19-Feb-2001 cgd <cgd@NetBSD.org>

convert to use getprogname()


# ee002727 04-Feb-2001 christos <christos@NetBSD.org>

fix nested extern


# 6205a5ed 30-Jul-1999 drochner <drochner@NetBSD.org>

don't use the result of a readdir() after closedir(), from
Christian Groessler per PR bin/8107


# 029a64cc 25-Aug-1998 ross <ross@NetBSD.org>

from Erik Bertelsen <erik@mediator.uni-c.dk>
{ put } { in } { lots } { of } { these } { to } { shut } { up } { egcs }


# 29e97528 18-Mar-1998 bouyer <bouyer@NetBSD.org>

Add support for non-native endian ffs.


# 6cdb4c3f 16-Sep-1997 lukem <lukem@NetBSD.org>

resolve sccsid conflict


# bc8059eb 14-Sep-1997 lukem <lukem@NetBSD.org>

* don't use register
* warnx() doesn't need trailing \n


# 59ae79eb 01-Aug-1997 christos <christos@NetBSD.org>

Fix warnings.
Use warn(3) and err(3) instead of printf+perror


# b9656d47 21-Sep-1996 scottr <scottr@NetBSD.org>

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.


12