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@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@sid:~# mkdir /tmp/test
root@sid:~# cd /tmp/test
root@sid:/tmp/test# ls
root@sid:/tmp/test# vgscan
Reading all physical volumes. This may take a while...
No volume groups found
� P� : open failed: Is a directory
root@sid:/tmp/test# ls
????P???
root@sid:/tmp/test# ls # followed by <TAB><TAB>
�^I^HP�^I^H/
root@sid:/tmp/test# ls | cat -v
M-@M-9 ^HPM-9 ^H
root@sid:/tmp/test# rmdir ????P???
root@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@sid:/tmp/test# rmdir �\ ^HP�\ ^H/
root@sid:/tmp/test# touch �\ ^HP�\ ^H
root@sid:/tmp/test# ls -l
total 0
-rw-r--r-- 1 root root 0 Nov 20 04:30 ????P???
root@sid:/tmp/test# ls | cat -v
M-@M-9 ^HPM-9 ^H
root@sid:/tmp/test# lvm
lvm> lvscan
No volume groups found
lvm> quit
Exiting.
Directory "� P� " not found
root@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