tmp_suning_uos_patched/Documentation/filesystems
Tom Zanussi e82894f84d [PATCH] relayfs
Here's the latest version of relayfs, against linux-2.6.11-mm2.  I'm hoping
you'll consider putting this version back into your tree - the previous
rounds of comment seem to have shaken out all the API issues and the number
of comments on the code itself have also steadily dwindled.

This patch is essentially the same as the relayfs redux part 5 patch, with
some minor changes based on reviewer comments.  Thanks again to Pekka
Enberg for those.  The patch size without documentation is now a little
smaller at just over 40k.  Here's a detailed list of the changes:

- removed the attribute_flags in relay open and changed it to a
  boolean specifying either overwrite or no-overwrite mode, and removed
  everything referencing the attribute flags.
- added a check for NULL names in relayfs_create_entry()
- got rid of the unnecessary multiple labels in relay_create_buf()
- some minor simplification of relay_alloc_buf() which got rid of a
  couple params
- updated the Documentation

In addition, this version (through code contained in the relay-apps tarball
linked to below, not as part of the relayfs patch) tries to make it as easy
as possible to create the cooperating kernel/user pieces of a typical and
common type of logging application, one where kernel logging is kicked off
when a user space data collection app starts and stops when the collection
app exits, with the data being automatically logged to disk in between.  To
create this type of application, you basically just include a header file
(relay-app.h, included in the relay-apps tarball) in your kernel module,
define a couple of callbacks and call an initialization function, and on
the user side call a single function that sets up and continuously monitors
the buffers, and writes data to files as it becomes available.  Channels
are created when the collection app is started and destroyed when it exits,
not when the kernel module is inserted, so different channel buffer sizes
can be specified for each separate run via command-line options.  See the
README in the relay-apps tarball for details.

Also included in the relay-apps tarball are a couple examples
demonstrating how you can use this to create quick and dirty kernel
logging/debugging applications.  They are:

- tprintk, short for 'tee printk', which temporarily puts a kprobe on
  printk() and writes a duplicate stream of printk output to a relayfs
  channel.  This could be used anywhere there's printk() debugging code
  in the kernel which you'd like to exercise, but would rather not have
  your system logs cluttered with debugging junk.  You'd probably want
  to kill klogd while you do this, otherwise there wouldn't be much
  point (since putting a kprobe on printk() doesn't change the output
  of printk()).  I've used this method to temporarily divert the packet
  logging output of the iptables LOG target from the system logs to
  relayfs files instead, for instance.

- klog, which just provides a printk-like formatted logging function
  on top of relayfs.  Again, you can use this to keep stuff out of your
  system logs if used in place of printk.

The example applications can be found here:

http://prdownloads.sourceforge.net/dprobes/relay-apps.tar.gz?download

From: Christoph Hellwig <hch@lst.de>

  avoid lookup_hash usage in relayfs

Signed-off-by: Tom Zanussi <zanussi@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-07 16:57:18 -07:00
..
devfs Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
00-INDEX Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
adfs.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
affs.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
afs.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
automount-support.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
befs.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bfs.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cifs.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
coda.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cramfs.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
directory-locking Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Exporting Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ext2.txt [PATCH] xip: description 2005-06-24 00:06:42 -07:00
ext3.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hfs.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hpfs.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
inotify.txt [PATCH] inotify: documentation update 2005-07-15 09:54:51 -07:00
isofs.txt [PATCH] isofs: show hidden files, add granularity for assoc/hidden files flags 2005-06-21 19:07:38 -07:00
jfs.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Locking [PATCH] doc: Locking update 2005-05-01 08:58:37 -07:00
ncpfs.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ntfs.txt NTFS: Fix a nasty deadlock that appeared in recent kernels. 2005-06-26 22:12:02 +01:00
porting Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
proc.txt [PATCH] add /proc/pid/smaps 2005-09-05 00:05:49 -07:00
relayfs.txt [PATCH] relayfs 2005-09-07 16:57:18 -07:00
romfs.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
smbfs.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sysfs-pci.txt [PATCH] Driver Core: remove driver model detach_state 2005-05-17 14:54:55 -07:00
sysfs.txt [PATCH] Driver core: Documentation: use S_IRUSR | ... in stead of 0644 2005-09-05 16:03:12 -07:00
sysv-fs.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tmpfs.txt [PATCH] shmem: restore superblock info 2005-06-21 18:46:18 -07:00
udf.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ufs.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vfat.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vfs.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfs.txt Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xip.txt [PATCH] xip: description 2005-06-24 00:06:42 -07:00