Staging
v0.8.1
https://github.com/torvalds/linux
Revision c4cc66351a24da5feec298be2da59a85f68dd3ea authored by Alasdair G Kergon on 22 November 2005, 05:32:33 UTC, committed by Linus Torvalds on 22 November 2005, 17:14:31 UTC
In some circumstances the LIST_VERSIONS output is truncated because the size
calculation forgets about a 'uint32_t' in each structure - but the inclusion
of the whole of ALIGN_MASK frequently compensates for the omission.

This is a quick workaround to use an upper bound.  (The code ought to be fixed
to supply the actual size.)

Running 'dmsetup targets' may demonstrate the problem: when I run it, the last
line comes out as 'erro' instead of 'error'.  Consequently, 'lvcreate --type
error' doesn't work.

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent b6fcc80
History
Tip revision: c4cc66351a24da5feec298be2da59a85f68dd3ea authored by Alasdair G Kergon on 22 November 2005, 05:32:33 UTC
[PATCH] device-mapper: list_versions fix
Tip revision: c4cc663
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 391 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.5 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 62.3 KB
Makefile -rw-r--r-- 42.8 KB
README -rw-r--r-- 14.7 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top