diff options
author | 2005-09-09 16:23:53 -0700 | |
---|---|---|
committer | 2005-09-09 16:39:12 -0700 | |
commit | 0002b2718dd04da67c21f8a7830de8d95a9b0345 (patch) | |
tree | c84f916df71293e0e15643a8a07d9508d1404395 /lib/dec_and_lock.c | |
parent | [PATCH] md: remove old cruft from md_k.h header file (diff) | |
download | wireguard-linux-0002b2718dd04da67c21f8a7830de8d95a9b0345.tar.xz wireguard-linux-0002b2718dd04da67c21f8a7830de8d95a9b0345.zip |
[PATCH] md: limit size of sb read/written to appropriate amount
version-1 superblocks are not (normally) 4K long, and can be of variable size.
Writing the full 4K can cause corruption (but only in non-default
configurations).
With this patch the super-block-flavour can choose a size to read, and set a
size to write based on what it finds.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'lib/dec_and_lock.c')
0 files changed, 0 insertions, 0 deletions