Package: kvpm Version: 0.8.6-3 Severity: critical Tags: upstream patch Justification: causes serious data loss
Dear Maintainer, If a partition with data on it is moved by kvpm and that same disk has another partition which is mounted then sometimes the data on the moved partition is scrambled. Even the filesystem is gone. Unmounting the other partition is the only fix for the problem. -- System Information: Debian Release: 7.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages kvpm depends on: ii kde-runtime 4:4.9.5-0r1 ii libblkid1 2.20.1-5.3 ii libc6 2.13-38 ii libkdecore5 4:4.9.5-0r1 ii libkdeui5 4:4.9.5-0r1 ii libkio5 4:4.9.5-0r1 ii liblvm2app2.2 2.02.98-1 ii libparted0debian1 2.3-12 ii libqtcore4 4:4.8.2+dfsg-11 ii libqtgui4 4:4.8.2+dfsg-11 ii libstdc++6 4.7.2-5 Versions of packages kvpm recommends: ii dosfstools 3.0.16-2 ii jfsutils 1.1.15-2 ii ntfs-3g 1:2013.1.13AR.1-2 ii reiserfsprogs 1:3.6.21-1 ii xfsprogs 3.1.9 Versions of packages kvpm suggests: pn btrfs-tools <none> pn reiser4progs <none> -- no debconf information
This patch corrects a bug in which data is sometimes corrupted when moving a disk partition while the disk has other partitions mounted. --- a/kvpm/partchange.cpp +++ b/kvpm/partchange.cpp @@ -649,13 +649,8 @@ return false; } else { - if( !movefs(old_start, current_start, old_size) ){ - return false; - } - else{ - pedCommitAndWait(m_ped_disk); - return true; - } + pedCommitAndWait(m_ped_disk); + return movefs(old_start, current_start, old_size); } }