| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
a FILE* leak in getbounds().
Submitted by: Conrad Meyer <conrad.meyer@isilon.com>
PR: 192032
Sponsored by: EMC / Isilon Storage Division
MFC after: 1 week
|
|
|
|
|
|
| |
CID: 1006120
Found with: Coverity Prevent(tm)
MFC after: 1 week
|
|
|
|
|
|
| |
uninitialized buffer.
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
| |
last one. To make it easier to find the last one create symlinks with 'last'
suffix that will point to the files of the last coredump, eg.:
info.last -> info.5
textdump.tar.last.gz -> textdump.tar.5.gz
Reviewed by: avg
Obtained from: WHEEL Systems
|
|
|
|
|
|
|
| |
dumps stored. Once the limit is reached it restarts from 0.
Reviewed by: avg
Obtained from: WHEEL Systems
|
|
|
|
|
|
| |
earlier.
Obtained from: WHEEL Systems
|
|
|
|
| |
Obtained from: WHEEL Systems
|
|
|
|
| |
Obtained from: WHEEL Systems
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
provide dump directory. Eliminate this redundant argument. This changes
the usage, but the only risk here is that a warning will be printed
about directory given as device.
- Update usage of -C option.
- When clearing dump header from the given device there is also no need to
provide dump directory, although additional arguments for -c were not
documented.
- Document that -v can be used with -c and that list of devices can be given.
Obtained from: WHEEL Systems
|
|
|
|
|
|
| |
options.
Obtained from: WHEEL Systems
|
|
|
|
|
|
| |
exists or we want to keep it), open device read-only.
Obtained from: WHEEL Systems
|
| |
|
| |
|
| |
|
|
|
|
|
| |
is in accordance with the information at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
rather than the memcmp() which is used for regular dumps: the
textdump string is one character shorter, so we need to stop
comparing at the end of the string.
Use independent version checking logic for architecture-specific
version number vs. textdump version number, as the version sequences
may (someday) differ.
Run into by: rrs
|
|
|
|
|
|
| |
Update savecore(8) man page to reflect textdump additions.
MFC after: 3 months
|
|
|
|
| |
Reviewed by: phk
|
|
|
|
|
|
|
|
| |
mangled in rev. 1.72.
PR: bin/86805
Submitted by: Gavin Atkinson
MFC after: 3 days
|
|
|
|
|
|
|
|
|
| |
at LOG_WARNING by default; instead, consider it something to be printed
to the tty when 'verbose' mode is set. This avoids printing out extra
lines at every boot on a system with crash dumps enabled, but that has
not yet had to generate a crashdump.
MFC after: 1 week
|
|
|
|
|
| |
Submitted by: Ed Maste <emaste@sandvine.com>
Approved by: re
|
| |
|
| |
|
|
|
|
|
|
| |
Output more verbosity with additional -v's.
Submitted by: seanc
|
| |
|
|
|
|
| |
Bump WARNS accordingly.
|
|
|
|
|
|
|
| |
rather than the one from libz, corresponding to a function, when
linking statically.
PR: bin/70392
|
| |
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
| |
2 GB by using fseeko() instead of fseek().
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the stack to the heap to work around a problem on ia64. Now, roughly
16 months and two compiler updates later, it isn't an issue anymore
in the sense that putting a 1M buffer on the stack just works and we
don't actually need to work around anything anymore.
However, since there's no advantage or need to put the buffer on the
stack (again), this change merely removes the XXX comment describing
that there's an explicit reason for the heap allocation. Hence, this
change is a functional no-op.
PR: ia64/38677
|
|
|
|
|
|
|
|
| |
The immediate purpose for this option is to use it in rc.d so that we
can make savecore behavior conditional.
Tremendous assistance with ideas and sanity checking provided by tjr
and b@etek.chalmers.se.
|
|
|
|
| |
especially in troff files.
|
|
|
|
|
|
|
| |
sizeof(buf) lurking around that I missed.
PR: 38811
Submitted by: Adrian Colley <aecolley@spamcop.net>
|
|
|
|
|
| |
the stack in DoFile(). This needs some investigation. In the mean time
we do a one time malloc() for the buffer to have it on the heap instead.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- reimplement -z
- use syslog()
- improve consistancy of messages
- allow -f to recover cleared dumps
- return bufsize to 1024 * 1024
- return the ability to write sparse files
- update man page
- fix minfree to require 2k for info file instead of the kernel size
- include Berkeley copyright too due to amount of old code copied
Submitted by: Chad David <davidc@acns.ab.ca>
|
|
|
|
|
|
|
|
| |
restores the check_space() function with small modifications
to make it work with the current code. The patch was slightly
modified by Bill Fenner to handle error messages better.
Reviewed by: fenner
|
|
|
|
|
|
| |
In usage(), use fprintf(3) instead of errx(3), to make the printed string really
start with `usage: ...'.
Reviewed by: marcel
|
|
|
|
| |
read the description while the megs shift from one place to another.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Implement -c (clear) to clear previously kept headers (note that
dumps not cleared will remain until -c is used),
o Implement -f (force) to allow re-saving a previously saved dump,
o Implement -k (keep) and make clearing the dump header the default,
o Implement -v (verbose) and make most output conditional upon it,
o Emit minimal output for the non-verbose case with the assumption
that savecore is run mostly from within /etc/rc,
o Update usage message to reflect what is and what's not,
o mark -d as obsolete.
Low-level changes:
o Rename devname to device, for devname mirrors a global declaration
and GCC 3.x warns about it,
o Open the dump device R/W for clear and !keep to work,
o Reorder the locals of DoFile according to style(9),
o Remove newlines from strings passed to warn* and err*,
o Use stat(2) to check if a dump has been saved before,
o Truncate existing core and info files to support force,
o First check for the magic and the version before we complain about
parity errors. This prevents emitting parity error messages when
there's no dump,
o Keep track of the number of headers found and the number of headers
saved to support the minimal output,
o Close files we opened in DoFile. Not critical, but cleaner.
|
|
|
|
| |
Sponsored by: DARPA & NAI Labs
|
|
|
|
|
|
|
|
|
| |
in dump byte order (=network byte order). Swap blocksize and dumptime
to avoid extraneous padding on 64-bit architectures. Use CTASSERT
instead of runtime checks to make sure the header is 512 bytes large.
Various style(9) fixes.
Reviewed by: phk, bde, mike
|
|
|
|
| |
Pointy-hat to: phk
|
|
|
|
|
|
|
|
|
|
| |
Commandline compatible with the previous savecore unless you specify
any options, none of them are implemented (yet).
Scans all devices marked "dump" or "swap" for dump header signatures
and saves dumps off under a name which is a MD5 hash of the header
information. This should give unique filenames. A *.info file contains
ascii version of the header information.
|
|
|
|
| |
o remove main prototype
|
|
|
|
|
|
| |
It does not help modern compilers, and some may take some hit from it.
(I also found several functions that listed *every* of its 10 local vars with
"register" -- just how many free registers do people think machines have?)
|
| |
|
|
|
|
|
| |
since dumplo is now an off_t. Scratch a couple of other itches as well.
s/L_SET/SEEK_SET/
|