Quote:
Originally Posted by suhas7860
1. When there is little space left on the storage less then the require size, will core
be written partially on the disk? Or will it not be written at all?
|
If you look at
http://lxr.linux.no/source/arch/x86_...32_aout.c#L131
the comments imply that it tries to dump various parts of the core file in order until one of them fails. There is an initial check to see whether there is enough space in "rlimit", but I suspect this is what's set by ulimit -c rather than the space left on the device (note the device is the current directory's device). If there is not enough space in rlimit, it dumps parts of the data, assuming they fit.
So I read all this to mean that the core file would fill the filesystem device, then fail. So you would get a partial (corrupt) core file. But I've never tried it!
Quote:
2.In linux kernel where is source code and configuration file for core dump.
|
ia32_aout.c appears to be the place, assuming we're talking Intel architecture. There will presumably be equivalents in the other architecture sources.
HTH,
-nick