Date: Tue, 28 Sep 2010 11:49:12 +0200 From: Alexander Leidinger <Alexander@Leidinger.net> To: John Baldwin <jhb@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, freebsd-arch@freebsd.org Subject: Re: svn commit: r212964 - head/sys/kern Message-ID: <20100928114912.17443a2o7j71kpaw@webmail.leidinger.net> In-Reply-To: <201009270928.47232.jhb@freebsd.org> References: <201009211507.o8LF7iVv097676@svn.freebsd.org> <alpine.LNX.2.00.1009231841500.23791@ury.york.ac.uk> <20100924225352.GD49476@server.vk2pj.dyndns.org> <201009270928.47232.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Quoting John Baldwin <jhb@freebsd.org> (from Mon, 27 Sep 2010 09:28:47 -0400):
>> savecore already has support for a 'minfree' file to prevent
>> crashdumps filling the crashdir. Maybe the default install should
>> include a minfree set to (say) 512MB.
>
> The one problem this approach is it implements a FIFO instead of a LIFO. I
> want the N most recent crashdumps to be saved, not the first N.
Check the size in the shell script before, remove older ones ("ls -1t
| grep pattern | tail +<N+1>" gives you possible candidates).
Bye,
Alexander.
--
Applause, n.:
The echo of a platitude from the mouth of a fool.
-- Ambrose Bierce, "The Devil's Dictionary"
http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100928114912.17443a2o7j71kpaw>
