[PATCH] md: new sysfs interface for setting bits in the write-intent-bitmap
Paul Clements authored

Add a new sysfs interface that allows the bitmap of an array to be dirtied.
The interface is write-only, and is used as follows:

echo "1000" > /sys/block/md2/md/bitmap

(dirty the bit for chunk 1000 [offset 0] in the in-memory and on-disk
bitmaps of array md2)

echo "1000-2000" > /sys/block/md1/md/bitmap

(dirty the bits for chunks 1000-2000 in md1's bitmap)

This is useful, for example, in cluster environments where you may need to
combine two disjoint bitmaps into one (following a server failure, after a
secondary server has taken over the array).  By combining the bitmaps on
the two servers, a full resync can be avoided (This was discussed on the
list back on March 18, 2005, "[PATCH 1/2] md bitmap bug fixes" thread).
Signed-off-by: default avatarNeil Brown <neilb@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
9b1d1dac
Name Last commit Last update
..
acpi Pull acpi_os_allocate into test branch
asm-alpha [PATCH] rename the provided execve functions to kernel_execve
asm-arm [WATCHDOG] pnx4008: add watchdog support
asm-arm26 [PATCH] rename the provided execve functions to kernel_execve
asm-avr32 [PATCH] AVR32: Implement kernel_execve
asm-cris [PATCH] remove remaining errno and __KERNEL_SYSCALLS__ references
asm-frv [PATCH] remove remaining errno and __KERNEL_SYSCALLS__ references
asm-generic [PATCH] paravirt: remove set pte atomic
asm-h8300 [PATCH] remove remaining errno and __KERNEL_SYSCALLS__ references
asm-i386 [PATCH] sched: introduce child field in sched_domain
asm-ia64 [PATCH] sched: introduce child field in sched_domain
asm-m32r [PATCH] remove remaining errno and __KERNEL_SYSCALLS__ references
asm-m68k [PATCH] remove remaining errno and __KERNEL_SYSCALLS__ references
asm-m68knommu [PATCH] remove remaining errno and __KERNEL_SYSCALLS__ references
asm-mips [PATCH] sched: introduce child field in sched_domain
asm-parisc [PATCH] rename the provided execve functions to kernel_execve
asm-powerpc [PATCH] sched: introduce child field in sched_domain
asm-ppc [PATCH] Directed yield: cpu_relax variants for spinlocks and rw-locks
asm-s390 [PATCH] remove remaining errno and __KERNEL_SYSCALLS__ references
asm-sh [PATCH] remove remaining errno and __KERNEL_SYSCALLS__ references
asm-sh64 [PATCH] remove remaining errno and __KERNEL_SYSCALLS__ references
asm-sparc [PATCH] remove remaining errno and __KERNEL_SYSCALLS__ references
asm-sparc64 [PATCH] remove remaining errno and __KERNEL_SYSCALLS__ references
asm-um [PATCH] rename the provided execve functions to kernel_execve
asm-v850 [PATCH] remove remaining errno and __KERNEL_SYSCALLS__ references
asm-x86_64
asm-xtensa
crypto
keys
linux
math-emu
media
mtd
net
pcmcia
rdma
rxrpc
scsi
sound
video
Kbuild