17 May, 2011

2 commits

  • Currently after mount/remount operation on pstore filesystem,
    the content on pstore will be lost. It is because current ERST
    implementation doesn't support multi-user usage, which moves
    internal pointer to the end after accessing it. Adding
    multi-user support for pstore usage.

    Signed-off-by: Chen Gong
    Signed-off-by: Tony Luck

    Chen Gong
     
  • the return type of function _read_ in pstore is size_t,
    but in the callback function of _read_, the logic doesn't
    consider it too much, which means if negative value (assuming
    error here) is returned, it will be converted to positive because
    of type casting. ssize_t is enough for this function.

    Signed-off-by: Chen Gong
    Signed-off-by: Tony Luck

    Chen Gong
     

31 Mar, 2011

1 commit


23 Mar, 2011

1 commit

  • pstore_dump() can be called with many different "reason" codes. Save
    the name of the code in the persistent store record.

    Also - only worthwhile calling pstore_mkfile for KMSG_DUMP_OOPS - that
    is the only one where the kernel will continue running.

    Reviewed-by: Seiji Aguchi
    Signed-off-by: Tony Luck

    Tony Luck
     

22 Mar, 2011

1 commit


21 Mar, 2011

1 commit


18 Mar, 2011

1 commit

  • 1) Change from ->get_sb() to ->mount()
    2) Use mount_single() instead of mount_nodev()
    3) Pulled in ramfs_get_inode() & trimmed to what I need for pstore
    4) Drop the ugly pstore_writefile() Just save data using kmalloc() and
    provide a pstore_file_read() that uses simple_read_from_buffer().

    Signed-off-by: Al Viro

    Tony Luck
     

07 Jan, 2011

1 commit


29 Dec, 2010

1 commit

  • Some platforms have a small amount of non-volatile storage that
    can be used to store information useful to diagnose the cause of
    a system crash. This is the generic part of a file system interface
    that presents information from the crash as a series of files in
    /dev/pstore. Once the information has been seen, the underlying
    storage is freed by deleting the files.

    Signed-off-by: Tony Luck

    Tony Luck