From: Kay Sievers Date: Sat, 16 Aug 2008 12:30:30 +0000 (+0200) Subject: block: fix partial read() of /proc/{partitions,diskstats} X-Git-Tag: v2.6.27-rc5~54^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=068281d302def5efd96d84a163ba17e85f5ea564;p=pandora-kernel.git block: fix partial read() of /proc/{partitions,diskstats} The proc files get truncated if they do not fit into the buffer with a single read(). We need to move the seq_file index from the callback of class_find_device() to the caller of class_find_device(), to keep its value across multiple invocations of the callback. Signed-off-by: Kay Sievers Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed