Can't Delete Folder - Corrupted FS?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EncFS |
Fix Released
|
Undecided
|
rosa maria | ||
encfs (Ubuntu) |
Fix Released
|
Undecided
|
rosa maria |
Bug Description
Binary package hint: encfs
Steps to reproduce:
> cd ~
> encfs ~/.test-encfs ~/test-encfs
Enter password: **********
> cd ~/test-encfs
> mkdir s.com
> mkdir s1.com
> mkdir s2.com
> cd s1.com
> mkdir f0
> cd f0
> touch file0.txt
> touch file2.txt
> cd ~/test-encfs/s2.com
> mkdir f0
> cd f0
> touch file1.txt
> touch file3.txt
> cd ~/test-encfs
> mv s1.com/* s.com/
> mv s2.com/* s.com/
ERROR -- mv: cannot move `s2.com/f0' to a subdirectory of itself, `s.com/f0'
NOW:
> ~/test-encfs$ ls -lhA s.com/f0/
total 0
-rw-r--r-- 1 philip philip 0 2007-11-05 10:30 file0.txt
-rw-r--r-- 1 philip philip 0 2007-11-05 10:30 file2.txt
==> file1.txt and file3.txt were not copied
> ls -lhA s2.com/f0/
total 0
> rm -R s2.com/
rm: cannot remove directory `s2.com//f0': Directory not empty
> cd s2.com/
> rm -R f0/
rm: cannot remove directory `f0/': Directory not empty
> ls -lhA f0/
total 0
> rm -R f0/*
rm: cannot remove `f0/*': No such file or directory
> sudo rm -R f0/
rm: cannot remove directory `f0/': Permission denied
> sudo chmod 777 f0/
chmod: cannot access `f0/': Permission denied
Using Gutsy, encfs 1.3.2-1-1
Changed in encfs: | |
status: | Fix Committed → Fix Released |
Changed in encfs: | |
assignee: | nobody → rosa maria (rprosamaria383) |
Changed in encfs (Ubuntu): | |
assignee: | nobody → rosa maria (rprosamaria383) |
Basically, create structure like this
s.com
s1.com
|--- f0
|--- file0.txt
|--- file2.txt
s2.com
|--- f0
|--- file1.txt
|--- file3.txt
mv all s1.com to s.com
mv all s2.com to s.com
now s2.com/f0 can't be deleted.