aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
authorLuck, Tony <tony.luck@intel.com>2011-03-18 18:33:43 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-21 16:50:05 -0400
commit366f7e7a79b19bd8c4e8f55fdf12b81538d1a7a4 (patch)
tree0c43335ab9e91ca895fdec82d1327cec16dcb645 /Documentation/ABI
parent10effcb548c170d59ea1d2152f2ee0ad45ce4c9d (diff)
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 <hch@infradead.org> Signed-off-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r--Documentation/ABI/testing/pstore12
-rw-r--r--Documentation/ABI/testing/sysfs-fs-pstore7
2 files changed, 9 insertions, 10 deletions
diff --git a/Documentation/ABI/testing/pstore b/Documentation/ABI/testing/pstore
index f1fb2a004264..ddf451ee2a08 100644
--- a/Documentation/ABI/testing/pstore
+++ b/Documentation/ABI/testing/pstore
@@ -1,6 +1,6 @@
1Where: /dev/pstore/... 1Where: /dev/pstore/...
2Date: January 2011 2Date: March 2011
3Kernel Version: 2.6.38 3Kernel Version: 2.6.39
4Contact: tony.luck@intel.com 4Contact: tony.luck@intel.com
5Description: Generic interface to platform dependent persistent storage. 5Description: Generic interface to platform dependent persistent storage.
6 6
@@ -11,7 +11,7 @@ Description: Generic interface to platform dependent persistent storage.
11 of the console log is captured, but other interesting 11 of the console log is captured, but other interesting
12 data can also be saved. 12 data can also be saved.
13 13
14 # mount -t pstore - /dev/pstore 14 # mount -t pstore -o kmsg_bytes=8000 - /dev/pstore
15 15
16 $ ls -l /dev/pstore 16 $ ls -l /dev/pstore
17 total 0 17 total 0
@@ -33,3 +33,9 @@ Description: Generic interface to platform dependent persistent storage.
33 will be saved elsewhere and erased from persistent store 33 will be saved elsewhere and erased from persistent store
34 soon after boot to free up space ready for the next 34 soon after boot to free up space ready for the next
35 catastrophe. 35 catastrophe.
36
37 The 'kmsg_bytes' mount option changes the target amount of
38 data saved on each oops/panic. Pstore saves (possibly
39 multiple) files based on the record size of the underlying
40 persistent storage until at least this amount is reached.
41 Default is 10 Kbytes.
diff --git a/Documentation/ABI/testing/sysfs-fs-pstore b/Documentation/ABI/testing/sysfs-fs-pstore
deleted file mode 100644
index 8e659d854805..000000000000
--- a/Documentation/ABI/testing/sysfs-fs-pstore
+++ /dev/null
@@ -1,7 +0,0 @@
1What: /sys/fs/pstore/kmsg_bytes
2Date: January 2011
3Kernel Version: 2.6.38
4Contact: "Tony Luck" <tony.luck@intel.com>
5Description:
6 Controls amount of console log that will be saved
7 to persistent store on oops/panic.