forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pstore: use mount option instead sysfs to tweak kmsg_bytes
/sys/fs is a somewhat strange way to tweak what could more obviously be tuned with a mount option. Suggested-by: Christoph Hellwig <[email protected]> Signed-off-by: Tony Luck <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
Showing
5 changed files
with
59 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Where: /dev/pstore/... | ||
Date: January 2011 | ||
Kernel Version: 2.6.38 | ||
Date: March 2011 | ||
Kernel Version: 2.6.39 | ||
Contact: [email protected] | ||
Description: Generic interface to platform dependent persistent storage. | ||
|
||
|
@@ -11,7 +11,7 @@ Description: Generic interface to platform dependent persistent storage. | |
of the console log is captured, but other interesting | ||
data can also be saved. | ||
|
||
# mount -t pstore - /dev/pstore | ||
# mount -t pstore -o kmsg_bytes=8000 - /dev/pstore | ||
|
||
$ ls -l /dev/pstore | ||
total 0 | ||
|
@@ -33,3 +33,9 @@ Description: Generic interface to platform dependent persistent storage. | |
will be saved elsewhere and erased from persistent store | ||
soon after boot to free up space ready for the next | ||
catastrophe. | ||
|
||
The 'kmsg_bytes' mount option changes the target amount of | ||
data saved on each oops/panic. Pstore saves (possibly | ||
multiple) files based on the record size of the underlying | ||
persistent storage until at least this amount is reached. | ||
Default is 10 Kbytes. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
extern void pstore_set_kmsg_bytes(int); | ||
extern void pstore_get_records(void); | ||
extern int pstore_mkfile(enum pstore_type_id, char *psname, u64 id, | ||
char *data, size_t size, | ||
struct timespec time, int (*erase)(u64)); | ||
extern int pstore_is_mounted(void); | ||
|
||
extern struct kobj_attribute pstore_kmsg_bytes_attr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters