Two bugs in 0.12.6: offline mode, deleted file detection SuSE 9.2
Matthias Andree <[email protected]> Wed, 27 Apr 2005 23:08:36 +0200
| Newsgroups | gmane.linux.suse.fou4s.devel |
|---|---|
| Message-ID | <[email protected]> |
#1: in offline mode, fou4s --import of a newer "offlinehost.fou" file
does not appear to have any effect.
Scenario:
OFFLINEHOST: fou4s --export offlinehost.fou
(transfer .fou file)
NETWORKHOST: fou4s --import offlinehost.fou
fou4s -u --host offlinehost --export updates.tar # 1st
(transfer .tar file)
OFFLINEHOST: fou4s --import updates.tar -i
fou4s --export offlinehost.fou
(transfer .fou file)
NETWORKHOST: fou4s --import offlinehost.fou
fou4s -u --host offlinehost --export updates.tar # 2nd
BUG HERE: the 2nd fou4s -u --host ... --export run exports all
updates that had already been exported in the 1st run.
It is necessary to remove the cache for offlinehost (rm -rf
/var/cache/fou4s/.cache.offlinehost) and re-import the .fou file to
clear this condition. Perhaps importing a .fou file should
implicitly clear the file.
I can reproduce this anytime and provide more detailed data if desired.
#2: on SuSE 9.2, deleted files in use by running processes are not
reliably detected. lsof does not print filename-RPMDELETE or
filename;12345678 files, but instead something like this:
/lib/some/library (path inode=12345)
I observed this with today's firefox update, but haven't kept a
screendump. I reproduced this by reinstalling gnome-terminal,
excerpt:
# lsof -n -F pcn -c gnome-terminal
p6880
cgnome-terminal
n/home/ma
n/
n/opt/gnome/bin/gnome-terminal
[...]
n/usr/X11R6/lib/X11/locale/lib/common/xlcUTF8Load.so.2
n/opt/gnome/share/locale/de/LC_MESSAGES/gnome-terminal.mo (path inode=570755)
n/usr/lib/locale/de_DE.utf8/LC_CTYPE
[...]
The additional difficulty is that inodes might get reused so even
this isn't reliable.
--
Matthias Andree
--