← Back to team overview

ecryptfs team mailing list archive

[Bug 441237] Re: tar cant archive symlinks on ecryptfs

 

I'm having no luck reproducing on 2.6.32-rc1.  exe, please take a look and let
me know if I didn't follow your instructions properly:

---
$ uname -a
Linux fedora-virt 2.6.32-rc2 #13 SMP Thu Oct 1 16:34:39 CDT 2009 x86_64 x86_64 x86_64 GNU/Linux
$ grep ecryptfs /proc/mounts 
/tmp/lower /tmp/upper ecryptfs rw,relatime,ecryptfs_fnek_sig=253ca7e88811d184,ecryptfs_sig=253ca7e88811d184,ecryptfs_cipher=aes,ecryptfs_key_bytes=16 0 0
$ pwd
/tmp
$ hg init testrepo
$ cd ./testrepo/
$ echo "content" > testfile
$ ln -s testfile ./.testlink
$ hg add
adding .testlink
adding testfile
$ hg ci -m "commit"
No username found, using 'tyhicks@fedora-virt.localdomain' instead
$ cd /tmp/upper
$ hg clone ssh://localhost//tmp/testrepo clondedrepo
requesting all changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 2 changes to 2 files
updating working directory
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ tar -cf - ./clonedrepo/ | tar -tvf -
drwxrwxr-x tyhicks/tyhicks   0 2009-10-02 06:55 ./clonedrepo/
drwxrwxr-x tyhicks/tyhicks   0 2009-10-02 06:55 ./clonedrepo/.hg/
-rw-rw-r-- tyhicks/tyhicks   7 2009-10-02 06:55 ./clonedrepo/.hg/undo.branch
-rw-rw-r-- tyhicks/tyhicks  57 2009-10-02 06:55 ./clonedrepo/.hg/00changelog.i
-rw-rw-r-- tyhicks/tyhicks  92 2009-10-02 06:55 ./clonedrepo/.hg/branchheads.cache
-rw-rw-r-- tyhicks/tyhicks   0 2009-10-02 06:55 ./clonedrepo/.hg/undo.dirstate
-rw-rw-r-- tyhicks/tyhicks   8 2009-10-02 06:55 ./clonedrepo/.hg/branch
drwxrwxr-x tyhicks/tyhicks   0 2009-10-02 06:55 ./clonedrepo/.hg/store/
-rw-rw-r-- tyhicks/tyhicks  33 2009-10-02 06:55 ./clonedrepo/.hg/store/fncache
-rw-rw-r-- tyhicks/tyhicks 173 2009-10-02 06:55 ./clonedrepo/.hg/store/00changelog.i
-rw-rw-r-- tyhicks/tyhicks 155 2009-10-02 06:55 ./clonedrepo/.hg/store/00manifest.i
-rw-rw-r-- tyhicks/tyhicks  68 2009-10-02 06:55 ./clonedrepo/.hg/store/undo
drwxrwxr-x tyhicks/tyhicks   0 2009-10-02 06:55 ./clonedrepo/.hg/store/data/
-rw-rw-r-- tyhicks/tyhicks  73 2009-10-02 06:55 ./clonedrepo/.hg/store/data/testfile.i
-rw-rw-r-- tyhicks/tyhicks  73 2009-10-02 06:55 ./clonedrepo/.hg/store/data/.testlink.i
-rw-rw-r-- tyhicks/tyhicks  23 2009-10-02 06:55 ./clonedrepo/.hg/requires
-rw-rw-r-- tyhicks/tyhicks  48 2009-10-02 06:55 ./clonedrepo/.hg/hgrc
-rw-rw-r-- tyhicks/tyhicks  91 2009-10-02 06:55 ./clonedrepo/.hg/dirstate
lrwxrwxrwx tyhicks/tyhicks   0 2009-10-02 06:55 ./clonedrepo/.testlink -> testfile
-rw-rw-r-- tyhicks/tyhicks   8 2009-10-02 06:55 ./clonedrepo/testfile
$ ls -la ./clonedrepo/
total 16
drwxrwxr-x 3 tyhicks tyhicks 4096 2009-10-02 06:55 .
drwxr-xr-x 5 tyhicks tyhicks 4096 2009-10-02 06:55 ..
drwxrwxr-x 3 tyhicks tyhicks 4096 2009-10-02 06:55 .hg
-rw-rw-r-- 1 tyhicks tyhicks    8 2009-10-02 06:55 testfile
lrwxrwxrwx 1 tyhicks tyhicks   84 2009-10-02 06:55 .testlink -> testfile
---

-- 
tar cant archive symlinks on ecryptfs
https://bugs.launchpad.net/bugs/441237
You received this bug notification because you are a member of eCryptfs,
which is subscribed to ecryptfs-utils in ubuntu.

Status in “ecryptfs-utils” package in Ubuntu: New

Bug description:
Binary package hint: ecryptfs-utils

Hello! I've got a very strange problem. Symlinks doesn't want to be archived:

user@ubuntu:~$ ls -la ./weird/
total 0
drwxr-xr-x  2 user user    0 2009-10-03 12:33 .
drwxr-xr-x 35 user user 8192 2009-10-03 12:33 ..
lrwxrwxrwx  1 user user    0 2009-10-03 11:43 .bashrc -> ./.profile
-rw-r--r--  1 user user  697 2009-10-03 11:43 .profile
user@ubuntu:~$ tar -cf - ./weird/ | tar -tvf -
drwxr-xr-x user/user 0 2009-10-03 12:33 ./weird/
lrwxrwxrwx user/user 0 2009-10-03 11:43 ./weird/.bashrc -> .\251t\b \251t\b<W
-rw-r--r-- user/user 697 2009-10-03 11:43 ./weird/.profile

I don't know what ".\251t\b \251t\b<W" mean.

Steps to reproduce(:

cd /tmp
hg init testrepo
cd ./testrepo
echo "content" > testfile
ln -s testfile ./.testlink
hg add
hg ci -m "commit"
cd ~
hg clone ssh://localhost//tmp/testrepo clonedrepo
tar -cf - ./clonedrepo | tar -tvf -


mount:
/home/user/.Private on /home/user type ecryptfs (ecryptfs_sig=6838319cfdb74235,ecryptfs_fnek_sig=6f10y2de3b0e0f6c,ecryptfs_cipher=aes,ecryptfs_key_bytes=16)

ProblemType: Bug
Architecture: i386
Date: Sat Oct  3 12:18:10 2009
DistroRelease: Ubuntu 9.10
Package: tar 1.22-1
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
SourcePackage: tar
Uname: Linux 2.6.31-11-generic i686



References