| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
| |
gzip(1). gdb doesn't understand these, but then again it didn't
understand compressed crashdumps either.
* Change a stray lseek() into a Lseek()
* Remove the extraneous prototype for log() which has apparently never
existed in FreeBSD's sources
Obtained from: NetBSD (partially)
MFC after: 2 weeks
|
|
|
|
| |
adjust to whatever kernbase is in the kernel that we are dumping.
|
|
|
|
|
|
|
| |
as __printflike()/__printf0like(), adding const, or adding missing "%s"
format strings, as appropriate.
MFC after: 2 weeks
|
| |
|
|
|
|
|
|
| |
the Alpha, it was because of luck that it was little endian.
Tidy up the dumpsize/dumppages confusion and the out of date comments.
|
|
|
|
| |
with 2GB or more of ram.
|
|
|
|
| |
- MAN[1-9] -> MAN.
|
| |
|
|
|
|
| |
string two revisions ago.
|
| |
|
|
|
|
|
|
|
|
|
| |
Use sysctlbyname() instead of sysctl().
Clear up and simplify the version extraction code.
Attempt to detect stretches of zeroes in the dump and avoid writing
them to disk to save space and time.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
returns doesn't exist, or doesn't match the desired device, fall back to
scanning /dev for a matching node, and as a last resort, if that fails,
try to create the node ourselves as /dev/dump.
Add comments to several variables and functions.
Clean up syslog(3) usage; use %m instead of strerror(3).
Other minor cleanup.
|
|
|
|
|
|
|
|
|
|
|
| |
1) use devname() instead of searching /dev for the dump device
2) use fopen() instead of open() so we don't need to differentiate
between compressing and not compressing when writing the core
file or the kernel (zopen() returns a FILE *, so we just use
fwrite() in both cases)
There should be no functional changes.
|
|
|
|
|
| |
was colliding with dirname() in libc.a and causing a Sig 10/bus error.
Just change dirname to savedir and be done with it.
|
|
|
|
| |
Submitted by: bde
|
|
|
|
| |
Botched/Noticed by: peter
|
|
|
|
| |
Submitted by: peter
|
| |
|
|
|
|
| |
this.
|
|
|
|
|
|
| |
indention, and size issue between 32 and 64bit machines.
Submitted by: bde
|
|
|
|
|
| |
tell the user how much space is avaible for writing the corefile, and how
much space we wanted.
|
| |
|
|
|
|
|
|
| |
sectorsizes up to 8k.
Pointed out by: sos
|
| |
|
|
|
|
| |
after the dev_t changes.
|
|
|
|
| |
Reviewed by: Doug Rabson <dfr@nlsystems.com>
|
| |
|
| |
|
| |
|
|
|
|
| |
posix standard on the topic.
|
| |
|
|
|
|
|
|
|
|
| |
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
but Bill has beaten me on this. ;-)
However, he missed the part to compute the kernelsize in kilobytes,
so the minfree consideration was now overcautious. (I've also
changed the return type of dump_size() to void since int was useless.)
Being here, the fact that `vmcore' was written world-readable was just
a plain security hole: everybody who was able to crash a kernel could
later read any confidential information out of it at his will. Create
it with umask 077 instead.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- make minfree work by getting the dump size before checking to see
if the dump will fit on the filesystem
- also fail to dump if no minfree is specified but there are not enough
free blocks.
Fix a typo in the man page.
Fixes PR bin/1322
Submitted by: "Philippe C." <charnier@lirmm.fr>
|
|
|
|
|
|
| |
in the calculation of free disk space. Fixes PR#1569.
Submitted by: Tor Egge <Tor.Egge@idt.ntnu.no>
|
|
|
|
| |
Pointed out by: Philippe Charnier <charnier@lirmm.fr>
|
| |
|
|
|
|
| |
last round of <vm/*.h> include file changes.
|
|
|
|
| |
which is no longer bogusly installed in /usr/include.
|
|
|
|
|
|
|
|
|
| |
1024 that used to remain on a line of its own after savecore completed
its job will be overwritten later in the /etc/rc process.
Reviewed by:
Submitted by: graichen@sirius.physik.fu-berlin.de (Thomas Graichen)
Obtained from:
|
|
|
|
|
|
| |
fclosed twice and this didn't seem to cause any problems, but when
/var/crash was on an an unwritable nfs-mounted partition, fclose(NULL)
caused a core dump.
|
| |
|
|
|
|
|
| |
needs to have a colon for it. Looks like nobody has tested this
so far.
|
|
|
|
|
|
|
| |
DANGER WILL ROBINSON!
_PATH_UNIX is currently defined as the literal string "don't use this".
I am of two minds about this myself, but wanted to get something into the
tree as quickly as possible.
|
| |
|
|
|
|
|
| |
in `fastboot'/`fasthalt' in which the interpreter would hang around
after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
|
|
|
|
| |
Change vm_paramh. to vm_param.h
|