Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4632147yba; Mon, 20 May 2019 00:33:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzqWfUqOEwXMpZkjVsqdrcdDy2RChBufSXR2hvH6FzQyzghqQ5UlIWks5cJazwtoEEx2s3 X-Received: by 2002:aa7:881a:: with SMTP id c26mr71882212pfo.254.1558337599828; Mon, 20 May 2019 00:33:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558337599; cv=none; d=google.com; s=arc-20160816; b=FWKIz9HdCjSERzre0sfsCZEkmZQ3ekNXGBrosbQxlwYslA2jlBhqNYSJs8jT6ZxZ+V UTW6y75EqCN+jzx4Cmhk35FiWacOi6zgyYYuluC5CeyFxLQh9ahaeOztJSfSC6MIaFTz FJiGHlI+fVEbK0FklNByaV9/0fUpmfi1vLV2Mc4Q0L0bYNfJPRN/OQ4Q+pYCBe/BnBaJ aFknYAjts7FeelLYvAk78U0PQmJ4/GjucQa+CjZGJal4lCBtVB/m8dRPiIavoEeYcH2R o5l986Ukl7Kk8R1bjvlktBT0+R8mZLiB+XyOLlmYkA4qlGJeLRTyA68sqteaUjwg8OfQ CKxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=M9gF003sey4m6ZmXpEUbjfnhDsoOFBA4gIaS9I0d8bE=; b=c5u8b4N7u3h//S35oyWVTelUECWzJXkkvM9gsAYGFcy/Ti5sjt1sDNpV24R7i+tlJC nAnynIkWSXakvGvchO22Rxwq8a/0do/O1twwOnDu0DoHA393F+uCZrs67Bok7PpfbFvu iw0wuYJH2DDBEIFCc2koSbNEbIkv6CoYhYFuKUiZagkr4GlSg3E6OuJADT38LDzfABqg ZzfxBmfl9+fSuKJf3aCYNo6NQ9awTdVbyEBQBGBrWlSrGw/k8w6QiC+9NezJjWEhJEbT D+VmzM3oZIY4xLPt4U31Awp8rvPOnTbd5oKHXK3prg6Xc8Ofe4/qzRU3WjWBHQZPwHhP AqOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CTLFErxQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si17023851plp.223.2019.05.20.00.33.05; Mon, 20 May 2019 00:33:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CTLFErxQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729976AbfETHaJ (ORCPT + 99 others); Mon, 20 May 2019 03:30:09 -0400 Received: from mail-pl1-f181.google.com ([209.85.214.181]:36711 "EHLO mail-pl1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727319AbfETHaJ (ORCPT ); Mon, 20 May 2019 03:30:09 -0400 Received: by mail-pl1-f181.google.com with SMTP id d21so6307861plr.3 for ; Mon, 20 May 2019 00:30:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=M9gF003sey4m6ZmXpEUbjfnhDsoOFBA4gIaS9I0d8bE=; b=CTLFErxQnOfqsBVxHwCquDeLPv1gabZlcjpr0Eg9qF6kBjUePHbkS9Lqfxw7Tww4tp OCQXX8wgdu7jug44fnqGHp4P8VgF5iHlERldi04fy1ihJH9Ome48FAeD7rAR5Rk2XSTW RoLng7/fPRmMMmbKFRN3qnDb614IysnQ/K9vxZO6rt8KtQXn+Rhsi7QLDw8P7IWIJcdV a+XEuQe/wRS55VGZsav7g8vtVrpPyJuXfzkEgU1bW8IIfBzZXOzsuXaq26AjFu19zHpP VI23HhREN+SXrBFY5sn1GgC7bZ9fJ+pFIXnfTf9FB4TM2aFwmwh3t0mC9IhqYzSrm4lt P4Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=M9gF003sey4m6ZmXpEUbjfnhDsoOFBA4gIaS9I0d8bE=; b=bstnmWYN8TATfbuwdDlrNjVkvTCIxGsWBXN5/c6LP3hZU+RVo4cHUQG+CFLmPMHrfz liT7TD87cGWmZX8clcQaGxQAJ/Q9aSCVC44wms8H2nkYzZMoyN5N3hlY1RCklAE9rL1x hpvo0yjqC+9zwy5kQ4qY8JV0IRtQuD5xC5IKeSUjPvCfomnSt6u0rFnw0B+8Pj+Uass3 5ip9+OZ8JeoxBXNr7QKsrdwHi/RY5Uh+hP1S6pyCuzi7FV3ZnMUJZxcr1aWt3a6a5+BV 1N9IWd/0l9yHekTGyyy26zvItJELL1le2aisMaPBbSY6Y1agAbEBvZT++AXq39U6XjUY Wbrg== X-Gm-Message-State: APjAAAVgu6/k1duYo1GzgMwEBD+AzyrGWcR8qgPE51LiNXfoMlnHibuM Dzffe2P1vX8j9o1Y8Jygxl/dZTxxfJILK7q3eKP37Q== X-Received: by 2002:a17:902:8c85:: with SMTP id t5mr74423655plo.23.1558337408257; Mon, 20 May 2019 00:30:08 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ronny Meeus Date: Mon, 20 May 2019 09:29:57 +0200 Message-ID: Subject: Re: fs/pstore question To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Op do 9 mei 2019 10:05 schreef Ronny Meeus : > > Hello > > I'm using the pstore feature to log kernel crashes. > > What I observe is that after reboot, always 2 entries are present in the pstore: > > ls -l /mnt/pstore > total 0 > -r--r--r-- 1 root root 16372 Jan 1 00:00 dmesg-ramoops-0 > -r--r--r-- 1 root root 16372 Jan 1 00:00 dmesg-ramoops-1 > > If I do not delete the entries and force a new crash, only 2 new > entries are available > after the system is online again and the older entries are overwritten. > > The reason for this is that the write index is always initialized to 0 > during init. > Is this intentional? I would expect that existing entries are kept > until they are explicitly > deleted or the storage is full. In the latter case the oldest entries > can be replaced. > > Best regards, > Ronny Any feedback is appreciated. Thanks