Re: overlayfs patches for ovl_copy_up & ovl_rename

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

that is a list of some errors found when doiing a remaster that uses overlayfs 
as a filesystem modification layer,
After doing a big package upgrade we note that the rootdir has some errors, 
this is only a little percent of the total files contained in the filesystem,
44 files of 86173

overlayfs mounted on /tmp/live-net-remaster-pro1Wm/chroot type overlayfs 
options rw,relatime,lowerdir=/tmp/live-net-remaster-
pro1Wm/image/00filesystem.squashfs,upperdir=/home/tmp.7P8ARuGANF 

CASE 1: complete directory /usr/share/doc/xorg disappears,
is in lowerdir, has not been modified, but rootdir does not show it,

# lowerdir
# find /tmp/live-net-remaster-pro1Wm/image/00filesystem.squashfs/usr/share/doc/ 
-maxdepth 1 -name 'xorg*' 
/tmp/live-net-remaster-pro1Wm/image/00filesystem.squashfs/usr/share/doc/xorg

# upperdir
# find /home/tmp.7P8ARuGANF/usr/share/doc/ -maxdepth 1 -name 'x*'
/home/tmp.7P8ARuGANF/usr/share/doc/xserver-xorg-video-ati
/home/tmp.7P8ARuGANF/usr/share/doc/xml-core
/home/tmp.7P8ARuGANF/usr/share/doc/xserver-xorg-video-radeon
(xorg is not listed)

# rootdir
# find /tmp/live-net-remaster-pro1Wm/chroot/usr/share/doc/ -maxdepth 1 -name 
'xorg*'
(not listed)

directory xorg contains a lot of files, not shown in rootdir.
 5 root root 4096   /usr/share/doc/xorg
-rw-r--r-- 1 root root 7381   /usr/share/doc/xorg/asciidoc-xhtml11.css
-rw-r--r-- 1 root root 4180   /usr/share/doc/xorg/asciidoc-xhtml11.js
drwxr-xr-x 2 root root 4096   /usr/share/doc/xorg/faq
-rw-r--r-- 1 root root 5163   /usr/share/doc/xorg/faq/general.html
-rw-r--r-- 1 root root 2732   /usr/share/doc/xorg/faq/general.txt
drwxr-xr-x 2 root root 4096   /usr/share/doc/xorg/howto
-rw-r--r-- 1 root root 11521   /usr/share/doc/xorg/howto/build-mesa.html
-rw-r--r-- 1 root root 2717   /usr/share/doc/xorg/howto/build-mesa.txt.gz
-rw-r--r-- 1 root root 10758   /usr/share/doc/xorg/howto/configure-input.html
-rw-r--r-- 1 root root 2891   /usr/share/doc/xorg/howto/configure-input.txt.gz
-rw-r--r-- 1 root root 2994   /usr/share/doc/xorg/howto/report-bugs.html
-rw-r--r-- 1 root root 1278   /usr/share/doc/xorg/howto/report-bugs.txt
-rw-r--r-- 1 root root 6703   /usr/share/doc/xorg/howto/triage-bugs.html
-rw-r--r-- 1 root root 3529   /usr/share/doc/xorg/howto/triage-bugs.txt
-rw-r--r-- 1 root root 8145   /usr/share/doc/xorg/howto/use-gdb.html
-rw-r--r-- 1 root root 1940   /usr/share/doc/xorg/howto/use-gdb.txt.gz
-rw-r--r-- 1 root root 10678   /usr/share/doc/xorg/howto/use-xrandr.html
-rw-r--r-- 1 root root 2615   /usr/share/doc/xorg/howto/use-xrandr.txt.gz
-rw-r--r-- 1 root root 3349   /usr/share/doc/xorg/index.html
-rw-r--r-- 1 root root 1341   /usr/share/doc/xorg/index.txt
drwxr-xr-x 2 root root 4096   /usr/share/doc/xorg/reference
-rw-r--r-- 1 root root 12636   /usr/share/doc/xorg/reference/dependencies.html
-rw-r--r-- 1 root root 3415   
/usr/share/doc/xorg/reference/dependencies.txt.gz
-rw-r--r-- 1 root root 4690   /usr/share/doc/xorg/reference/squeeze-
backports.html
-rw-r--r-- 1 root root 2565   /usr/share/doc/xorg/reference/squeeze-
backports.txt
-rw-r--r-- 1 root root 3529   /usr/share/doc/xorg/reference/upstream-
contacts.html
-rw-r--r-- 1 root root 1392   /usr/share/doc/xorg/reference/upstream-
contacts.txt
-rw-r--r-- 1 root root 1953   /usr/share/doc/xorg/upstream-features.html
-rw-r--r-- 1 root root 556   /usr/share/doc/xorg/upstream-features.txt
-rw-r--r-- 1 root root 179   /usr/share/doc/xorg/xsf.css
-rw-r--r-- 1 root root 3914   /usr/share/doc/xorg/xsf.png
-rw-r--r-- 1 root root 11221   /usr/share/doc/xorg/xsf.svg

CASE 2: link /usr/share/man/man1/ucat.1.gz -> unp.1.gz
also disappears, same obs. as before,

# lowerdir
# find /tmp/live-net-remaster-
pro1Wm/image/00filesystem.squashfs/usr/share/man/man1/ -maxdepth 1 -name 
'ucat*'
/tmp/live-net-remaster-
pro1Wm/image/00filesystem.squashfs/usr/share/man/man1/ucat.1.gz

# upperdir
# find /home/tmp.7P8ARuGANF/usr/share/man/man1 -maxdepth 1 -name 'ucat*'
(not listed)

# rootdir
# find /tmp/live-net-remaster-pro1Wm/chroot/usr/share/man/man1/ -maxdepth 1 -
name 'ucat1*'
(not listed)

CASE 3: file /var/lib/dpkg/info/krdc.postrm
has been modified, but is not in rootdir

# lowerdir
# find /tmp/live-net-remaster-
pro1Wm/image/00filesystem.squashfs/var/lib/dpkg/info/ -maxdepth 1 -name 
'krdc.postrm*'
/tmp/live-net-remaster-
pro1Wm/image/00filesystem.squashfs/var/lib/dpkg/info/krdc.postrm
ls -la /tmp/live-net-remaster-
pro1Wm/image/00filesystem.squashfs/var/lib/dpkg/info/krdc.postrm
-rwxr-xr-x 1 root root 132 2010-11-28 16:51 /tmp/live-net-remaster-
pro1Wm/image/00filesystem.squashfs/var/lib/dpkg/info/krdc.postrm

# upperdir
# find /home/tmp.7P8ARuGANF/var/lib/dpkg/info/ -maxdepth 1 -name 'krdc.postrm*'
/home/tmp.7P8ARuGANF/var/lib/dpkg/info/krdc.postrm
# ls -la /home/tmp.7P8ARuGANF/var/lib/dpkg/info/krdc.postrm
-rwxr-xr-x 1 root root 132 2011-05-26 04:35 
/home/tmp.7P8ARuGANF/var/lib/dpkg/info/krdc.postrm

# rootdir
# find /tmp/live-net-remaster-pro1Wm/chroot/var/lib/dpkg/info/ -maxdepth 1 -
name 'krdc.postrm*'
(not listed)

CASE 4: file /var/lib/dpkg/info/libgraphicsmagick3.shlibs
not modified, is not in rootdir

# lowerdir
# find /tmp/live-net-remaster-
pro1Wm/image/00filesystem.squashfs/var/lib/dpkg/info/ -maxdepth 1 -name 
'libgraphicsmagick3.shlibs*'
/tmp/live-net-remaster-
pro1Wm/image/00filesystem.squashfs/var/lib/dpkg/info/libgraphicsmagick3.shlibs
# ls -la /tmp/live-net-remaster-
pro1Wm/image/00filesystem.squashfs/var/lib/dpkg/info/libgraphicsmagick3.shlibs
-rw-r--r-- 1 root root 82 2011-05-03 20:30 /tmp/live-net-remaster-
pro1Wm/image/00filesystem.squashfs/var/lib/dpkg/info/libgraphicsmagick3.shlibs

# upperdir
# find /home/tmp.7P8ARuGANF/var/lib/dpkg/info/ -maxdepth 1 -name 
'libgraphicsmagick3.shlibs*'
(not listed)

# rootdir
# find /tmp/live-net-remaster-pro1Wm/chroot/var/lib/dpkg/info/ -maxdepth 1 -
name 'libgraphicsmagick3.shlibs*'
(not listed)

some additional files about this test can be found in:

http://livenet.selfip.com/ftp/debian/overlayfs/ovl-test.tar.bz2

Thanks,

Jordi Pujol

Live never ending Tale
GNU/Linux Live forever!
http://livenet.selfip.com
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux