Bug#719117: lvm2: Fsadm uses an incorrect regex to search for mounted fs

Martín Ferrari tincho at debian.org
Thu Aug 8 14:08:43 UTC 2013


Package: lvm2
Version: 2.02.98-4
Severity: normal

Hi,

I was trying to resize a filesystem with lvresize, which uses fsadm, and I kept
being asked to umount another filesystem. Using strace I could see that fsadm
is running grep with an incorrect regex:

[pid  4343] execve("/bin/grep", ["grep", "^/dev/mapper/joeylvm-var", "/proc/mounts"], [/* 21 vars */]) = 0

I was trying to resize /dev/mapper/joeylvm-var, but /dev/mapper/joeylvm-var2 was mounted, and that grep command was matching.

Thanks.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lvm2 depends on:
ii  dmsetup                   2:1.02.77-4
ii  initscripts               2.88dsf-43
ii  libc6                     2.17-92
ii  libdevmapper-event1.02.1  2:1.02.77-4
ii  libdevmapper1.02.1        2:1.02.77-4
ii  libreadline5              5.2+dfsg-2
ii  libudev0                  175-7.2
ii  lsb-base                  4.1+Debian12

lvm2 recommends no packages.

Versions of packages lvm2 suggests:
pn  thin-provisioning-tools  <none>

-- no debconf information



More information about the pkg-lvm-maintainers mailing list