mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Markus Pargmann <mpa@pengutronix.de>
To: Antony Pavlov <antonynpavlov@gmail.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH v2 9/9] fs: Add pstore filesystem
Date: Tue, 08 Dec 2015 11:38:23 +0100	[thread overview]
Message-ID: <1563794.ZGoa3k9mEj@adelgunde> (raw)
In-Reply-To: <20151208133552.eded730b31053a53a7115a53@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 3772 bytes --]

Hi,

On Tuesday 08 December 2015 13:35:52 Antony Pavlov wrote:
> On Tue,  8 Dec 2015 10:39:32 +0100
> Markus Pargmann <mpa@pengutronix.de> wrote:
> 
> > pstore is a persistent storage filesystem used for RAMOOPS. It is used
> > to store console logs, panics, ftrace and other information in case of a
> > crash/panic/oops/reboot.
> > 
> > pstore is implemented for barebox as a read-only filesystem at the
> > moment. It may be extended later on. The idea is to provide a way to
> > extract essential data from the last running kernel.
> > 
> > Most of the code is copied from the kernel. However this is only a
> > lightweight implementation without real write support yet.
> > 
> > Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
> > ---
> > 
> > Notes:
> >     Changes in v2:
> >     - Moved the config symbol from the pstore Makefile to the upper level Makefile
> > 
> >  common/startup.c           |   5 +
> >  fs/Kconfig                 |   2 +
> >  fs/Makefile                |   1 +
> >  fs/pstore/Kconfig          |  86 ++++++++
> >  fs/pstore/Makefile         |   9 +
> >  fs/pstore/fs.c             | 280 +++++++++++++++++++++++++
> >  fs/pstore/internal.h       |  19 ++
> >  fs/pstore/platform.c       | 138 ++++++++++++
> >  fs/pstore/ram.c            | 507 +++++++++++++++++++++++++++++++++++++++++++++
> >  fs/pstore/ram_core.c       | 426 +++++++++++++++++++++++++++++++++++++
> >  include/linux/pstore.h     |  90 ++++++++
> >  include/linux/pstore_ram.h |  87 ++++++++
> >  12 files changed, 1650 insertions(+)
> >  create mode 100644 fs/pstore/Kconfig
> >  create mode 100644 fs/pstore/Makefile
> >  create mode 100644 fs/pstore/fs.c
> >  create mode 100644 fs/pstore/internal.h
> >  create mode 100644 fs/pstore/platform.c
> >  create mode 100644 fs/pstore/ram.c
> >  create mode 100644 fs/pstore/ram_core.c
> >  create mode 100644 include/linux/pstore.h
> >  create mode 100644 include/linux/pstore_ram.h
> > 
> > --- /dev/null
> > +++ b/fs/pstore/fs.c
> > @@ -0,0 +1,280 @@
> > +/*
> > + * Persistent Storage Barebox filesystem layer
> > + * Copyright © 2015 Pengutronix, Markus Pargmann <mpa@pengutronix.de>
> > + *
> > + * This program is free software; you can redistribute it and/or modify
> > + * it under the terms of the GNU General Public License as published by
> > + * the Free Software Foundation; either version 2 of the License, or
> > + * (at your option) any later version.
> > + *
> > + * This program is distributed in the hope that it will be useful,
> > + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> > + * GNU General Public License for more details.
> > + *
> > + * You should have received a copy of the GNU General Public License
> > + * along with this program; if not, see <http://www.gnu.org/licenses/>.
> > + */
> > +
> > +#include <common.h>
> > +#include <driver.h>
> > +#include <fs.h>
> > +#include <errno.h>
> > +#include <fcntl.h>
> > +#include <fs.h>
> > +#include <malloc.h>
> > +#include <init.h>
> > +#include <linux/stat.h>
> > +#include <linux/err.h>
> > +#include <linux/pstore.h>
> > +#include <libbb.h>
> > +#include <rtc.h>
> > +#include <libfile.h>
> > +#include <linux/pstore.h>
> 
> <linux/psstore.h> and <fs.h> are included twice.

Oh thanks. Removed these and sorted the includes.

Best Regards,

Markus

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2015-12-08 10:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-08  9:39 [PATCH v2 0/9] RAMOOPS read support for Barebox Markus Pargmann
2015-12-08  9:39 ` [PATCH v2 1/9] arm: boards: karo-tx6x remove definition of DIV_ROUND_UP Markus Pargmann
2015-12-08  9:39 ` [PATCH v2 2/9] log2: Add missing __rounddown_pow_of_two() Markus Pargmann
2015-12-08  9:39 ` [PATCH v2 3/9] printk: Add missing include/declaration Markus Pargmann
2015-12-08  9:39 ` [PATCH v2 4/9] vsprintf: Add scnprintf from kernel Markus Pargmann
2015-12-08  9:39 ` [PATCH v2 5/9] lib: Import reed solomon code " Markus Pargmann
2015-12-08  9:39 ` [PATCH v2 6/9] arm: Clarify memory layout calculation Markus Pargmann
2015-12-08  9:39 ` [PATCH v2 7/9] arm: start: Add visible sdram region for barebox board data Markus Pargmann
2015-12-08  9:39 ` [PATCH v2 8/9] arm: Add RAMOOPS memory area Markus Pargmann
2015-12-08  9:39 ` [PATCH v2 9/9] fs: Add pstore filesystem Markus Pargmann
2015-12-08 10:35   ` Antony Pavlov
2015-12-08 10:38     ` Markus Pargmann [this message]
2015-12-10  7:50 ` [PATCH v2 0/9] RAMOOPS read support for Barebox Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1563794.ZGoa3k9mEj@adelgunde \
    --to=mpa@pengutronix.de \
    --cc=antonynpavlov@gmail.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox