lukem
5157971af5
- add -F; indicates "special" is a file system image in a regular file
...
- reorder "special" validation to after option parsing
- use getopt(3) instead of homegrown code
- add getnum() to parse and validate a number
- clean up man page
- ansi KNF, WARNS=2
2001-08-19 09:39:24 +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
aymeric
93564fe83d
Move reference to article on soft-updates from tunefs.8 to mount_ffs.8
...
OK'd by Ignatios.
2001-03-05 23:18:09 +00:00
fvdl
474a72e217
Disable (unifdef for now) tunefs -n <disable|enable>, this is done via
...
a mount option now.
2000-06-15 22:37:17 +00:00
nathanw
0428b61594
Finish describing what the soft dependancy code does.
...
Add a reference to the McKusick/Ganger Usenix paper.
Addresses PR#8838.
2000-04-27 21:34:27 +00:00
jdolecek
f8eb46874f
State the possible values of optimize_prefernce in description of
...
-o flag. Fixes bin/9706.
2000-03-30 10:43:46 +00:00
wiz
03df73abb2
reorder long descriptions for arguments to be in alphabetical order.
...
XXX: shouldn't 'enable' and 'disable' for -n be marked up in some way?
2000-01-28 19:51:34 +00:00
fvdl
f6356db85f
Fix typo.
1999-11-15 20:53:56 +00:00
fvdl
b154796d0f
Update for soft updates code.
1999-11-15 19:22:22 +00:00
mycroft
f6590b22cd
Clean up SYNOPSIS formatting.
1999-03-07 11:02:05 +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
mycroft
519d858510
__AUDIT__ cleanup.
1998-07-28 19:22:54 +00:00
mycroft
a344493d39
const poisoning.
1998-07-26 20:57:54 +00:00
thorpej
88bcefdcce
Need <string.h> for memcpy() prototype.
1998-03-26 06:00:34 +00:00
bouyer
8e1f7e498a
Add support for non-native byteorder FFS.
1998-03-18 17:19:14 +00:00
enami
0d4522a03f
Fix .Nm usage.
1997-10-20 09:11:16 +00:00
lukem
704a9823f1
resolve conflicts from lite-2 merge
1997-09-16 12:54:42 +00:00
lukem
69e477ff1f
* fix .Nm usage
...
* prototype main() to pass WARNS=1
1997-09-15 11:27:12 +00:00
mikel
ca9a02b5b1
oops, missed a comma.
1996-12-27 05:53:53 +00:00
mikel
875986c568
eliminate obsolete references to mkfs(8);
...
from Klaus Klein <kleink@layla.inka.de>
1996-12-26 04:33:34 +00:00
cgd
0114e805ce
convert to new RCS Id conventions; reduce my headache
1995-03-18 14:54:19 +00:00
mycroft
705a6ebacb
Use S_IS*().
1995-01-30 19:39:36 +00:00
cgd
06e2955ff1
specify man pages the new way.
1994-12-22 10:44:04 +00:00
mycroft
bab8181299
Update from 4.4-Lite, with local changes.
1994-06-08 19:33:47 +00:00
cgd
f01b9646e3
back to 10%, per mkm
1994-04-20 03:56:03 +00:00
cgd
7c9ad60ed9
documentation, general cleanup. ick.
1994-04-12 05:03:23 +00:00
cgd
7989c52b3e
off_t casts, from Thomas Eberhardt
1994-04-12 04:17:37 +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
5b11c06adf
Add RCS indentifiers.
1993-07-31 15:27:53 +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