Commit Graph

1216 Commits

Author SHA1 Message Date
jdp
8634d15b90 Fix a type mismatch between a scanf format string and the
corresponding argument.
1998-03-08 23:57:00 +00:00
steve
e9cbc6d4a9 Make this compile again.
PR:		5948
Submitted by:	Brian Feldman
1998-03-08 19:03:05 +00:00
msmith
0bf6e985f7 If we are mounting the root filesystem, and we're accessing it through
something that might refer to the compatability slice rather than the
correct slice entry, try all the possible slice entries first.

This is a compatability hack to deal with the case where the kernel has
correctly mounted the root filesystem out of its slice, but the user
has not updated their /etc/fstab file to reflect this.  A diagnostic
is emitted if the mount succeeds, indicating that the file should be
updated.

This is a prelude to fixing the kernel to behave as alluded to above.
Reviewed by:	(discussed with) julian, phk
1998-03-08 14:50:04 +00:00
julian
3da153eb72 Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman)
Submitted by:	Kirk McKusick (mcKusick@mckusick.com)
Obtained from:  WHistle development tree
1998-03-08 09:59:44 +00:00
ache
a8832a2adc Oops, merge back 32bit fat description from -stable.
It was added to -stable but not to -current, strange.
1998-03-07 22:00:31 +00:00
ache
946b6b0c98 Add primary fat-32 1998-03-07 08:45:46 +00:00
phk
b5f3b9447e If numdirs is zero, print a helpful message instead of divding by zero later. 1998-03-04 18:03:54 +00:00
jraynard
9e6ecbd5b4 Don't assume sigset_t and int are equivalent. 1998-03-02 23:19:29 +00:00
joerg
28d46ad331 Andreas Klemm reported that 2 hours are too few to format a 9 GB
Barracuda.  Bump the timeout to 3 hours.
1998-03-01 20:15:00 +00:00
ache
6024ab2a70 Add more info about special characters in dos2unix/unix2dos tables 1998-03-01 08:41:05 +00:00
ache
32240cd9be Minimize clock drift between getting and setting time
Submitted by: bde
1998-02-25 09:40:21 +00:00
bde
918b070c4d Fixed annoying warning for unused sccsid. 1998-02-24 01:36:58 +00:00
ache
cdbef20215 Add more info about -W option 1998-02-23 17:29:08 +00:00
ache
6e6e7ba043 Note that default local charset assumed as ISO 8859-1 1998-02-23 17:20:07 +00:00
ache
cbd6232416 Implement loadable DOS<->local conversion tables for DOS names
Additionly load toupper table to create DOS names always in uppercase
1998-02-23 16:49:16 +00:00
ache
13936b1468 Implement loadable upper->lower local conversion table
Recently introduced -w renamed to -W
1998-02-23 09:41:02 +00:00
ache
d803c1de47 Add missing DESTDIR 1998-02-23 09:15:01 +00:00
ache
e2ed5f9bce Add loadable local<->Unicode conversion support for Win95 names
Note: DOS names still not work and require similar changes
1998-02-22 15:28:06 +00:00
jb
513b7e746b Remove the casts on signal() returns and compare the returned value
with SIG_ERR to detect the error case.

Suggested by: bde.
1998-02-20 07:28:50 +00:00
jkh
2ec40d191b Support for FAT32 partitions.
Submitted by:	Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
Obtained from:	NetBSD
1998-02-18 09:30:31 +00:00
bde
f9e0814721 Converted putfsent() to Lite2 mount interface - don't use numeric
filesystem types.
1998-02-13 04:54:27 +00:00
alex
6382bb89d1 Alter ipfw's behavior with respect to fragmented packets when the packet
offset is non-zero:

  - Do not match fragmented packets if the rule specifies a port or
    TCP flags
  - Match fragmented packets if the rule does not specify a port and
    TCP flags

Since ipfw cannot examine port numbers or TCP flags for such packets,
it is now illegal to specify the 'frag' option with either ports or
tcpflags.  Both kernel and ipfw userland utility will reject rules
containing a combination of these options.

BEWARE: packets that were previously passed may now be rejected, and
vice versa.

Reviewed by:	Archie Cobbs <archie@whistle.com>
1998-02-12 00:57:06 +00:00
msmith
76c6f11315 Document the enhanced behaviour of the '-c' flag. 1998-02-10 00:17:44 +00:00
jhay
373ddc81bd opt_diagnostic.h isn't needed anymore. 1998-02-06 22:31:14 +00:00
jhay
e0f69fa0e7 fsdb and fsck use the ffs code which needs opt_diagnostic.h. 1998-02-05 14:31:05 +00:00
bde
b4c5e0e630 Fixed the previous fix. The original path was annulled when it
was a directory, so the error message for attempting to unmount
an unmounted-on directory was more broken than before.
1998-02-03 17:23:26 +00:00
bde
38915c865f Don't define KERNEL before including <nfs/nfs.h>. It is no longer
necessary.  This fixes warnings about missing forward declarations
for structs in kernel-only prototypes.
1998-02-01 21:53:19 +00:00
steve
fb3f240261 Spell 'implements' correctly.
PR:		5614
Submitted by:	Dag-Erling Coidan Smorgrav <dag-erli@ifi.uio.no>
1998-02-01 07:03:29 +00:00
steve
8a15e93dfc Revert last commit and SEE ALSO pstat(8) instead.
Submitted by:	Bruce Evans
1998-02-01 06:46:37 +00:00
phk
e96175b046 Retire dumplfs, mount_lfs and newlfs 1998-01-30 12:40:57 +00:00
phk
df84d8d754 Retire dumplfs mount_lfs newlfs 1998-01-30 12:39:18 +00:00
brian
151166a0c9 Make it clear that aliasing is done on the public interface, not
the private one.
1998-01-29 00:40:41 +00:00
steve
65d1eef9d0 SEE ALSO swapinfo(8).
PR:		5447
Submitted by:	Craig Leres <leres@ee.lbl.gov>
1998-01-25 17:28:52 +00:00
jb
99613a0e1d signal() returns an pointer, so must be cast to long, not int before
comparing < 0.
1998-01-25 09:16:55 +00:00
jb
81a440536e read() and write() return ssize_t not int, so the first arg to atomic()
should be ssize_t too.
1998-01-25 09:15:10 +00:00
bde
4997fa45d5 Converted to Lite2 mount interface - use vfc_typenum from the
already looked up vfsconf struct for nfs instead of MOUNT_NFS.
Removed related FreeBSD ifdefs.
1998-01-20 15:22:27 +00:00
bde
d194d95de3 Removed definition of _NEW_VFSCONF. The new vfsconf interface is now
the default.
1998-01-20 10:40:18 +00:00
bde
80a96c12e9 mount(8) only uses realpath() for the mountpoint, so don't look up the
real path here for the mount device (or path).  This fixes difficulties
unmounting devices that are actually symlinks to real devices.

Also, print the original path instead of the real path in early error
messages.  nfs path handling and later error messages may still be wrong,
probably only in silly cases where the original path is both a symlink
and a remote path.

PR:		5208
1998-01-19 18:48:36 +00:00
bde
1e5fe91100 Don't create superblocks with size larger than SBSIZE (8192). The
size was rounded up to a multiple of the fragment size, but this
gave invalid file systems when the fragment size was > SBSIZE (fsck
aborts early on them).  Now a fragment size of 32768 seems to work
(too-simple tests with fsck and iozone worked).
1998-01-19 16:55:26 +00:00
bde
92601bdd3f Guard against a block size of 0 in the label. When the first
superblock is invalid, fsck looks at the label to help guess where
the next superblock should be.  If the partition type is 4.2BSD,
fsck assumed that the block size was valid and divided by it, so
it dumped core if the size was 0.

Initialization of the label was broken almost 3 years ago in rev.1.9
of newfs/newfs.c.  Newfs does not change the label at all, so there
is no problem (except the breakage of the automatic search for
backup superblocks) unless something else sets the partition type
to 4.2BSD.  However, it is too easy to set partition types to
4.2.BSD by copying an old label or by using a disktab entry to
create the label.

PR:	2537
1998-01-19 16:28:29 +00:00
bde
75271c7114 Removed most unused includes of <net/if_var.h> outside the kernel. 1998-01-16 17:38:56 +00:00
bde
b21011ede8 Fixed some spelling errors. 1998-01-16 06:31:23 +00:00
charnier
b6704cd82c Use err(3). Change exit(-1). Remove unused #include. 1998-01-14 07:17:12 +00:00
charnier
bdda6b9f02 Use err(3). Change exit(-1), and make exit values equal to 1 when errors.
Remove unused #includes.
1998-01-12 07:57:57 +00:00
darrenr
124c65d310 change s_port to ntohs(s_port) for printf in DEBUG. 1998-01-11 06:03:35 +00:00
alex
a1819e927e Pass an actual empty environment to execle() as per POSIX rather than
rely on undocumented behavior.

The following fixes were obtained from OpenBSD:

  o -Wall fixes to tlist array initialization and assignment used
    as truth value.
  o Use a restricted environment.
  o Improved error message when shutdown fails to exec reboot or halt.
1998-01-10 20:11:06 +00:00
alex
e81c54e37d Added environment parameter to execle calls.
Obtained from:	NetBSD PR2737 (augustss@cs.chalmers.se) via OpenBSD
1998-01-08 20:05:45 +00:00
alex
03ec7b3a7c Bump up packet and byte counters to 64-bit unsigned ints. As a
consequence, ipfw's list command now adjusts its output at runtime
based on the largest packet/byte counter values.

NOTE:
  o The ipfw struct has changed requiring a recompile of both kernel
    and userland ipfw utility.

  o This probably should not be brought into 2.2.

PR:		3738
1998-01-08 03:03:54 +00:00
alex
fca3437c8b Correct a comment from my last commit. 1998-01-08 02:23:59 +00:00
alex
1064266fe3 Allow 'shutdown datespec' to work into the next century. Handle dates
in the 22nd century and beyond even though it's irrelevant with a 32-bit
time_t which expires in the year 2038.
1998-01-08 02:21:30 +00:00