Commit Graph

50 Commits

Author SHA1 Message Date
dholland 2737439da3 fsbtodb() -> FFS_FSBTODB(), EXT2_FSBTODB(), or MFS_FSBTODB()
dbtofsb() -> FFS_DBTOFSB() or EXT2_DBTOFSB()

(Christos already did the lfs ones a few days back)
2013-06-23 02:06:04 +00:00
lukem c1237301b3 fix sign-compare issues 2009-03-16 12:52:07 +00:00
christos ac3b5d9cdf fix dev_t format. 2008-12-29 16:03:57 +00:00
lukem 6543a91fea Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)
2008-07-20 01:20:21 +00:00
christos 2c6eadc9ce Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.
2005-06-27 01:00:04 +00:00
christos fe9cbbdccb cleanup some lint
remove unused variables
XXX: fs.h macros are not portable in ansi.
2004-08-08 02:51:19 +00:00
christos ad04e20d5f warns = 3 2004-08-08 02:50:46 +00:00
christos 7abcefad61 - fix broken superblock finding code was wrong.
- ansify, KNF
- if the filesystem was not modified, don't ask the user to fsck.
2004-08-08 00:55:06 +00:00
dsl 33599967f2 Don't require ffsv2 suberblocks to have FS_FLAGS_UPDATED set 2004-03-27 12:52:16 +00:00
dsl de51f399c0 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
2004-03-21 19:13:59 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
agc bf07c8719a Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-07 10:04:11 +00:00
itojun 6950184129 use bounded string op 2003-07-13 08:23:39 +00:00
fvdl 42614ed3f3 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.
2003-04-02 10:39:19 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
fvdl a3ff3a3038 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.
2003-01-24 21:55:02 +00:00
lukem 7360d7b6ae Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path 2002-08-19 10:16:51 +00:00
wiz 80d1ff493a Sort sections. 2001-11-16 11:21:37 +00:00
lukem 1b81d6353d 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.
2001-08-17 02:18:46 +00:00
wiz 73f545bb5b Drop arguments of .Os. 2001-06-05 11:22:41 +00:00
wiz bd49a98652 Improve wording of a sentence. misc/10893 by Jim Bernard, part 2. 2001-05-06 12:30:05 +00:00
cgd 8a986b2e96 convert to use getprogname() 2001-02-19 22:48:57 +00:00
christos ee002727d9 fix nested extern 2001-02-04 19:54:56 +00:00
hubertf c58e6bf54d We don't ship format(8), so don't x-ref it. 2000-10-02 21:17:04 +00:00
drochner 6205a5ed9e don't use the result of a readdir() after closedir(), from
Christian Groessler per PR bin/8107
1999-07-30 15:56:58 +00:00
bouyer 3e3f9c7795 #include machine/bswap.h and remove -lutil. 1999-01-15 13:32:05 +00:00
ross 029a64cc29 from Erik Bertelsen <erik@mediator.uni-c.dk>
{ put } { in } { lots } { of } { these } { to } { shut } { up } { egcs }
1998-08-25 19:18:12 +00:00
fair 3d7afc6d03 fix bad .Xr references 1998-04-29 09:49:10 +00:00
bouyer 29e97528a5 Add support for non-native endian ffs. 1998-03-18 16:50:12 +00:00
lukem 6cdb4c3fbf resolve sccsid conflict 1997-09-16 02:13:23 +00:00
lukem 2ddc10a0ab define WARNS?=1 for all of sbin/* 1997-09-15 12:45:47 +00:00
lukem ad6499dd3c can now use '.Nm "" :' 1997-09-15 00:49:56 +00:00
lukem bc8059ebcd * don't use register
* warnx() doesn't need trailing \n
1997-09-14 08:14:32 +00:00
lukem b5e8aaf95a use .Nm appropriately 1997-09-14 07:46:13 +00:00
christos 59ae79ebe0 Fix warnings.
Use warn(3) and err(3) instead of printf+perror
1997-08-01 00:35:50 +00:00
scottr b9656d4793 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.
1996-09-21 06:08:16 +00:00
cgd 0114e805ce convert to new RCS Id conventions; reduce my headache 1995-03-18 14:54:19 +00:00
mycroft 0c1f0c97eb Don't mix stat flags and inode flags. 1995-01-30 20:32:01 +00:00
cgd ae9172d6cd specify man pages the new way. 1994-12-22 09:57:51 +00:00
jtc 3a08d567f4 Misc manpages fixes (PR #551) 1994-11-03 15:37:46 +00:00
cgd 65a9ae984d Add string.h 1994-10-31 04:19:00 +00:00
mycroft c250a07889 Fix up RCS ids. 1994-06-11 07:50:42 +00:00
pk e681ff5f4a Update to 4.4-lite. 1994-06-10 17:42:09 +00:00
jtc ee123e4b36 Update to use <dirent.h>. 1993-12-15 17:01:36 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft dfb9caab49 Add RCS indentifiers. 1993-08-01 07:32:48 +00:00
mycroft cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
cgd 06be60083d changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd 346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00