Commit Graph

2654 Commits

Author SHA1 Message Date
christos
373820b6f3 fix inconsistencies with USEAPP; centralize the flags check so that we
don't have to deal with it in the future.
2002-01-31 20:15:14 +00:00
christos
bcbaa46862 Use __MNT_FLAGS from <sys/mount.h> instead of rolling our own list. Also
when -v is used, print even the silent flags.
2002-01-30 21:40:31 +00:00
tv
01c2615055 Move the inclusion of <bsd.prog.mk> up so that keysym.h can have ${DESTDIR}
properly in its dependency list.
2002-01-30 20:32:29 +00:00
tv
fcae5f73b7 Add hooks to make mtree compilable from src/tools. 2002-01-29 00:07:27 +00:00
simonb
3860ddc415 Descend into kern.tkstat. 2002-01-28 02:07:40 +00:00
simonb
adce1e7c12 Document the new kern.tkstat.* sysctls. 2002-01-28 02:07:01 +00:00
simonb
750526acc6 ANSIfy. 2002-01-28 01:37:17 +00:00
simonb
8e6a975576 Fix a tyop in a comment. 2002-01-27 23:50:36 +00:00
simonb
f8f98db732 Prod from lukem - remember to add hw.disk* here too. 2002-01-27 13:04:21 +00:00
simonb
93f270352c Teach sysctl(8) that hw.diskstats is a structure. 2002-01-27 12:47:37 +00:00
christos
62a708c06d KNF: - use %m always instead of sometimes using strerror()
- space problems in casts
     - don't cast 0, use NULL
     - don't have long lines
     - don't cast malloc
     - use warn/warnx instead of fprintf
     - fix bug where a failed mount_mfs would cause the program to continue.
     - pass lint
2002-01-26 19:50:25 +00:00
fair
20d78a0f95 make the description of -w and -r more clear, per PR 13503. 2002-01-24 23:35:10 +00:00
lukem
d369b2c6a5 fix compilation problems on my alpha 2002-01-23 01:45:41 +00:00
wiz
65c4d36952 Use mdoc macros instead of man ones. 2002-01-21 18:23:09 +00:00
wiz
b8ed997fc6 Fix typo in macro. 2002-01-21 18:14:33 +00:00
abs
c48a08886b Rename MSDOSFS_ROOT to MFS_DEV_IF_NO_CONSOLE, and rework:
- Always attempt mfs dev if missing /dev/console
    - Save and run both MAKEDEV and MAKEDEV.local
    - After creating the mfs dev, mknod() and freopen() /dev/console.
    - If MAKEDEV is missing do not fail out early, but still create the mfs,
      /dev/console.
    - If we hit any errors fail out to single user.
This change _only_ affects systems booting without /dev/console.
2002-01-21 15:57:40 +00:00
wiz
8c920e9e22 Drop trailing whitespace. 2002-01-21 11:40:20 +00:00
oster
c4aed2da0e Add a description of how to possibly recover a RAID set in the
event of a multiple disk failure.
2002-01-20 02:30:11 +00:00
lukem
94243a4cd5 wrap some mfs specific code in #ifdef MFS 2002-01-18 08:59:18 +00:00
lukem
775d59e652 fix this if MFS is not #defined 2002-01-18 08:37:08 +00:00
abs
83c1ea626b Increase the size of the dev mfs to at least enough for 1.5.2 i386.
bin/15235 by Gavan Fantom.
2002-01-16 18:30:57 +00:00
lukem
6707a64c88 If -F isn't given, only newfs(8) partitions of type `4.2BSD'. 2002-01-15 07:41:50 +00:00
jandberg
dd3802a0b8 added amiga display/mouse/keyboard types 2002-01-13 18:16:10 +00:00
fair
fe1cad9aa9 Cross-link fdisk(8), mbr(8), and mbrlabel(8) in the SEE ALSO sections,
as suggested in PR 14288.  Also add a little white space to mbr(8) to
make it a little more readable.
2002-01-13 08:02:14 +00:00
wiz
6220b41f40 Grammar fix, and drop a trailing comma in SEE ALSO section. 2002-01-09 23:10:19 +00:00
thorpej
94fb6ebed1 Descend into dkctl. 2002-01-09 22:31:57 +00:00
thorpej
fcc3de9c40 dkctl(8) -- a program to manupulate disks. It currently supports
the disk cache-related ioctls.
2002-01-09 22:30:14 +00:00
martin
ee0b7f707c Xref pppoe(4) and ifwatchd(8). 2002-01-09 20:20:54 +00:00
darrenr
53b688a6ee should be using htons() to convert from a host byte order into a network
byte order, not ntohs().
2002-01-09 12:30:15 +00:00
thorpej
62a62f7bc9 Use MACHINE_ARCH, not MACHINE. 2002-01-08 20:54:49 +00:00
lukem
ed7fcecaac need ufs/ufs/dinode.h for ufs/ffs/fs.h 2002-01-08 05:01:50 +00:00
bouyer
cf39881866 For -l: specify the timeout on the command line (in seconds) instead of
hardwiring it to 2s, as suggested on tech-userlevel.
2002-01-07 17:34:08 +00:00
martin
3b1c9c16b0 Improve usage message. 2002-01-07 12:22:02 +00:00
simonb
ab5ccee692 Add the ability for the user, group and permissions of an MFS to be set
on the command line with the -u, -g and -p options respectively.
The old malloc() replacement (and related functions) didn't work with
the libc get{pw,gr}nam() functions so it was removed and a separate
memory allocation function added that is only called to allocate the
space for the MFS file system.
Also use a table for the usage flags instead of multiple fprintf()'s
with "if (mfs)" checks sprinkled through.
2002-01-07 12:00:09 +00:00
martin
74801af62d Display the authentication failure count (if non zero) and make the
limit settable.
2002-01-07 11:10:25 +00:00
wiz
ed2ab556af Fix two typos and a whitespace nit. 2002-01-07 00:55:25 +00:00
lukem
df7858b179 add ugly hack for alpha to crank the optimisation level down to -O1,
because the default -O2 with gcc 2.95.3 builds a non functional newfs
2002-01-06 23:09:47 +00:00
martin
28ae1fab38 Make idle timeout settable and display it.
Bring the man page closer to reality.
2002-01-06 20:23:55 +00:00
martin
3fd75e2cd7 Adapt to new if_sppp.h ioctls.
Add -d option to dump PPPoE session state. XXX need to document this.
2002-01-04 12:23:00 +00:00
lukem
574fa8fb21 remove duplicate MAN= entry 2002-01-04 11:30:33 +00:00
lukem
04e7d8d5fb move mount_mfs(8) into separate man page 2002-01-04 10:47:47 +00:00
lukem
2b8424b54a oops; another minor fix from rev 1.34 noticed by Simon Gerraty 2002-01-04 06:48:49 +00:00
jdolecek
b3adaffa36 make sure string_table is initialized to NULL in read_shstring_table(),
so that NULL is returned if .strtab is not found
2002-01-03 21:45:58 +00:00
lukem
4c7a4f8eda don't bother printing a warning about the cylinder group size being
restricted if -c isn't given; it just confuses a user of newfs (and
the cpg info is printed as part of the display anyway), and prints an
unnecessary warning for mount_mfs.
2001-12-31 07:07:58 +00:00
lukem
14fb096dce document that default block-size, frag-size, and bytes-per-inode are
now dependent upon file system size
2001-12-31 02:27:14 +00:00
augustss
c6d7884ffd Change how default block size is picked. The default block size is used
if there is no command line option and the disklabel gives 0 as the size.
The default used to be 8k, not the default is picked depending on the
file system size.  FS < 20M gets 4k, <1G get 8k, and >1G get 16k.
The 16k default was suggested by lukem which FreeBSD is using.
2001-12-30 18:49:28 +00:00
mrg
c43c746480 fix a typo 2001-12-30 17:42:18 +00:00
lukem
059cb50f9d Revert rev 1.37 (use disklabel value for cpg if -c isn't given), because
we would rather let the "optimal cpg" calculation kick in at this point.
2001-12-30 16:53:00 +00:00
lukem
86c0243f4f Fixes from and/or inspired by FreeBSD:
- Change the default cpg from 16 to 65536, which effectively means
  that the largest allowable value for cpg will be computed if it's
  not specified with -c or in the disklabel for that partition.
  This is much more convenient for users.
- Improve the description of the defaults for various options
2001-12-30 16:47:55 +00:00
lukem
9dcaec9cca Add -a to "auto-size" the tape, rather than relying upon other options
to define the tape size.  Requires the tape driver to either return ENOSPC
at end of media, or 0 when a write is attempted (such as the "early warning"
support in st(4) enabled with "mt eew 1").   From FreeBSD.
2001-12-30 04:03:16 +00:00