diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2003-03-14 02:08:21 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-03-14 02:08:21 -0800 |
| commit | d7710d00ef73d87efc610cbacdeac202947b384a (patch) | |
| tree | a87ea89a246cec6489795dd8ec00fe3f18ba59c2 /include/linux/raid/md.h | |
| parent | 8cdeea1a383b6b7d2ca2dfe3fd786f24d59bdc99 (diff) | |
[PATCH] md: Convert /proc/mdstat to use seq_file
From: Angus Sawyer <angus.sawyer@dsl.pipex.com>
Mainly straightforward convert of sprintf -> seq_printf. seq_start and
seq_next modelled on /proc/partitions. locking/ref counting as for
ITERATE_MDDEV.
pos == 0 -> header
pos == n -> nth mddev
pos == 0x10000 -> tail
Diffstat (limited to 'include/linux/raid/md.h')
| -rw-r--r-- | include/linux/raid/md.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/raid/md.h b/include/linux/raid/md.h index d7834b08cc88..3260343d634e 100644 --- a/include/linux/raid/md.h +++ b/include/linux/raid/md.h @@ -27,6 +27,7 @@ #include <linux/module.h> #include <linux/hdreg.h> #include <linux/proc_fs.h> +#include <linux/seq_file.h> #include <linux/smp_lock.h> #include <linux/delay.h> #include <net/checksum.h> |
