• A
    [PATCH] device-mapper: list_versions fix · c4cc6635
    Alasdair G Kergon 提交于
    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: NAlasdair G Kergon <agk@redhat.com>
    Signed-off-by: NAndrew Morton <akpm@osdl.org>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    c4cc6635
dm-ioctl.c 28.7 KB