Bug#730040: lvm2: global_filter issue: lvm commands create a ????P??? directory in the current one when exiting
Yann Amar
quidame at poivron.org
Wed Nov 20 15:47:52 UTC 2013
Package: lvm2
Version: 2.02.98-6+b1
Severity: normal
Dear Maintainer,
When 'global_filter' is enabled (with any value, say [ "r/.*/" ] for example),
and if 'obtain_device_list_from_udev' is set to 0 (zero), then lvm commands
create an empty ????P??? (unprintable basename) directory in the current one:
root at sid:~# egrep '^\s*(obtain_device_list_from_udev|(global_)?filter)\s*=' /etc/lvm/lvm.conf
obtain_device_list_from_udev = 0
filter = [ "a/.*/" ]
global_filter = [ "r/.*/" ]
root at sid:~# mkdir /tmp/test
root at sid:~# cd /tmp/test
root at sid:/tmp/test# ls
root at sid:/tmp/test# vgscan
Reading all physical volumes. This may take a while...
No volume groups found
� P� : open failed: Is a directory
root at sid:/tmp/test# ls
????P???
root at sid:/tmp/test# ls # followed by <TAB><TAB>
�^I^HP�^I^H/
root at sid:/tmp/test# ls | cat -v
M- at M-9 ^HPM-9 ^H
root at sid:/tmp/test# rmdir ????P???
root at sid:/tmp/test# lvm
lvm> vgscan
Reading all physical volumes. This may take a while...
No volume groups found
lvm> quit
Exiting.
� P� : open failed: Is a directory
root at sid:/tmp/test# rmdir �\ ^HP�\ ^H/
root at sid:/tmp/test# touch �\ ^HP�\ ^H
root at sid:/tmp/test# ls -l
total 0
-rw-r--r-- 1 root root 0 Nov 20 04:30 ????P???
root at sid:/tmp/test# ls | cat -v
M- at M-9 ^HPM-9 ^H
root at sid:/tmp/test# lvm
lvm> lvscan
No volume groups found
lvm> quit
Exiting.
Directory "� P� " not found
root at sid:/tmp/test#
This may be easily reproduced from a freshly installed system, with or
without LVM layout (I dont't know if it makes a difference, but tests
have been performed on systems installed on USB sticks or external HDD,
as my computer has no internal disk). Also, this leads to the creation
of this unprintable directory at each boot, directly under /. I have
checked ftp://sources.redhat.com/pub/lvm2/WHATS_NEW, and I doubt this
has been fixed in upstream.
Cheers,
quidame
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 3.11-2-486
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lvm2 depends on:
ii dmsetup 2:1.02.77-6+b1
ii initscripts 2.88dsf-43
ii libc6 2.17-96
ii libdevmapper-event1.02.1 2:1.02.77-6+b1
ii libdevmapper1.02.1 2:1.02.77-6+b1
ii libreadline5 5.2+dfsg-2
ii libudev1 204-5
ii lsb-base 4.1+Debian12
lvm2 recommends no packages.
Versions of packages lvm2 suggests:
pn thin-provisioning-tools <none>
-- Configuration Files:
/etc/lvm/lvm.conf changed [not included]
-- no debconf information
More information about the pkg-lvm-maintainers
mailing list