Re: [PATCH user-cr] Allow for logfile for kernel debug messages (v2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 21, 2009 at 06:18:37PM -0400, Oren Laadan wrote:
> 
> 
> Serge E. Hallyn wrote:
> > Quoting Oren Laadan (orenl@xxxxxxxxxxx):
> >> Serge E. Hallyn wrote:
> >>> If unspecified, -1 will be sent for logfd to the kernel, and there
> >>> will be no debug log.   If specified, then checkpoint and restart
> >>> debug msgs will be sent to the logfile.
> >> The new interface will cover error reporting, so when run without '-l'
> > 
> > Not sure what you mean by 'the new interface will cover error reporting'.
> 
> I mean that using an logging fd rids the need to write an error record
> to the checkpoint image. So I think we may retire ckpt_write_err() in
> favor of the new interface.

Having the error in the image is incredibly useful. Not only does it
tell you an error message but it establishes plenty of useful context --
the preceding portions of the checkpoint image. Removing it seems like it
would be a big mistake.

> The downside (if any) is that the error message is cannot be recovered
> from the partial image file (so what ?).

Because it's easy. The easier we make the interface to use the better.
Otherwise we'll get people trying to piece together what happened from
two separate streams -- the checkpoint image and the log -- and doing it
poorly. Better to keep them intertwined in the case of checkpoint.

Cheers,
	-Matt Helsley
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux