g2p / bedup

Btrfs deduplication
http://pypi.python.org/pypi/bedup
GNU General Public License v2.0
322 stars 50 forks source link

bedup shows retained files in newely created read-only snapshot #54

Closed Shished closed 9 years ago

Shished commented 10 years ago

# btrfs su sn -r /home /home/snapshot # btrfs fi sync /home # bedup scan /home ................................... Scanning volume /home/snapshot generations from 0 to 25603, with size cutoff 8388608 03:07.1 Scanned 8293716 retained 8579

btrfs fi usage /home doesn't shows changes in used and free space after creation of the snapshot.

I'm using bedup 0.9.0, btrfsprogs 3.16.2, linux 3.17.1, OS: openSUSE 13.1 x86_64.

g2p commented 9 years ago

Those are new inodes. The (ino, dev) pair has changed and there's no way to detect that they match an existing inode before the second stage of deduplication (which looks at extents).