ramonlopesb / opendedup

Automatically exported from code.google.com/p/opendedup
0 stars 0 forks source link

sdfscli --file-info does not get updated when a duplicate file is deleted #27

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create and mount a share using default settings:
mksdfs --volume-name=sdfs_vol2 --volume-capacity=1GB
mountsdfs -v sdfs_vol2 -m K
2. Copy a file called perl.pdf.
3. Create a new directory and copy perl.pdf (same copy) to that new directory.
4. Run commands
sdfscli --file-info --file-path=perl.pdf
sdfscli --file-info --file-path="New Folder\perl.pdf"
Output so far seems correct.
5. Delete perl.pdf in root directory.
6. Set garbage collection to 1 minute by using sdfscli --cleanstore 1
7. Wait 2 minutes for garbage collection to take place.
8. Then try sdfscli --file-info --file-path="New Folder\perl.pdf" and
notice that the output of this command is the same as it was in step 4

What is the expected output? What do you see instead?
Output in step 4 is as follows:
For command 1:sdfscli --file-info --file-path=perl.pdf:
#
file name : perl.pdf
sdfs path : C:\Program Files\sdfs\volumes\sdfs_vol2\files\perl.pdf
file type : file
dedup file : true
map file guid : 69f38cbe-f2ad-46c4-8997-3e7c90ef17bc
file open : false
real bytes written : 335834
virtual bytes written : 335834
dublicate data : 0
byes read : 0
dedup rate : 0%

for command 2: sdfscli --file-info --file-path="New Folder\perl.pdf"
#
file name : perl.pdf
sdfs path : C:\Program Files\sdfs\volumes\sdfs_vol2\files\New Folder\perl.pdf
file type : file
dedup file : true
map file guid : ee0b807a-962f-41c6-b940-daacd049db50
file open : false
real bytes written : 0
virtual bytes written : 335834
dublicate data : 393216
byes read : 0
dedup rate : 117.09%

Output of perl.pdf in New folder AFTER deletion of perl.pdf in root directory:
#
file name : perl.pdf
sdfs path : C:\Program Files\sdfs\volumes\sdfs_vol2\files\New Folder\perl.pdf
file type : file
dedup file : true
map file guid : ee0b807a-962f-41c6-b940-daacd049db50
file open : false
real bytes written : 0
virtual bytes written : 335834
dublicate data : 393216
byes read : 0
dedup rate : 117.09%

What version of the product are you using? On what operating system?
0.9.7 on Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by z0r...@googlemail.com on 29 Oct 2010 at 12:09