Hi

 This patch fixes a bug so that the partial dump command "makedumpfile"
returns a correct code when it stops abnormally.

Makedumpfile returns the return value 0 when the dump file is normally 
made, and returns non-0 value when the dump file is not made by the error.
However, since there is a bug in makedumpfile, there is a possibility of 
returning an illegal value including 0 when the error occurs.  This is 
because the area including the return value had been released. 
I corrected to store the return value in the area not released.  By the 
way, when making an error, the following return values are returned. 

1: Abnormal end.
2: Specified configuration file doesn't suit the dump_mem.
3: Makedumpfile detected illegal page descriptor.
4. Makedumpfile detected an output error.


Method of installation:
  You can compile the makedumpfile command as follows;
  1.Download the .tar.gz which previous patch sets have been applied to.
    URL is as follows. (The file name may be attachment-0001.obj.)
http://lists.osdl.org/pipermail/fastboot/2006-September/003918.html
  2. "tar -zxvf makedumpfile-20060907.tar.gz"
  3. "cd makedumpfile"
  4. "patch -p1 < makedumpfile_fix_retcd.patch"
  5. "make clean; make; make install"


Todo:
  1.Adjusting to relocatable kernel
  2.Porting to IA64
  3.Excluding free pages
  4.Output to a remote host
  5.Dumping DISCONTIGMEM kernel


Thanks
tachibana

Attachment: makedumpfile_fix_retcd.patch
Description: Binary data

_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot

Reply via email to