[Bug 516946] [NEW] pdumpfs omits extra files when --exclude is used on certian large directory trees
Pallinger Péter
pp.publikus at gmail.com
Thu Feb 4 08:57:48 UTC 2010
Public bug reported:
Binary package hint: pdumpfs
I hit together a small "script" to test this behaviour:
SRC=/home; mkdir -p /tmp/dump/; pdumpfs -n --exclude 'fjhrqwphfeuiqwph'
$SRC /tmp/dump/ |cut -c14- | sort > /tmp/1 ; find $SRC | sort | diff -
/tmp/1|less
The output should be empty, except if you do have a file called 'fjhrqwphfeuiqwph'. :)
You can test that by removing the --exclude option, the difference disappears.
Interestingly, the error is produced for /home and /proc (for proc, not only the since ended and started processes account for the difference), but it is not produced for /usr, /lib, /var, /dev and /sys. I am yet to find a small directory tree that produces the error, it is maybe due to some special kinds of files, or some files changing during the pdumpfs process, etc.
Upon inserting some debug messages into the recursive_copy function (see below), it seems that the files are not excluded, but are not in the internal list of files at all (there was no output beginning with 'excluding:').
if @matcher.exclude?(s)
wprintf("excluding?: %s", s)
I got somewhat stuck, as I am not familiar with ruby. I may investigate
further if I will have the time, but any help would be welcome (e.g.
results of running the above script at your machines, etc.).
--------------------
system info:
Description: Ubuntu 9.10
Release: 9.10
pdumpfs:
Telepítve: 1.3-3
Jelölt: 1.3-3
Verziótáblázat:
*** 1.3-3 0
500 http://hu.archive.ubuntu.com karmic/universe Packages
100 /var/lib/dpkg/status
ProblemType: Bug
Architecture: i386
Date: Thu Feb 4 08:44:09 2010
DistroRelease: Ubuntu 9.10
Package: pdumpfs 1.3-3
PackageArchitecture: all
ProcEnviron:
LANG=hu_HU.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-17.54-generic
SourcePackage: pdumpfs
Uname: Linux 2.6.31-17-generic i686
XsessionErrors:
(gnome-settings-daemon:4027): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
(gnome-settings-daemon:4027): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
(nautilus:4131): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
(polkit-gnome-authentication-agent-1:4156): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
(gnome-panel:4130): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 24
** Affects: pdumpfs (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug i386
--
pdumpfs omits extra files when --exclude is used on certian large directory trees
https://bugs.launchpad.net/bugs/516946
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list