Skip to contentSkip to conversation

Compressed size of a filesystem

DISCUSSION Suman Chakravartula 2 participants 2 messages Oct 20, 2014 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hi,

I'd like to calculate the compressed size of a btrfs filesystem. I read the wiki and understand the backward compatibility issues mentioned. Also, the "df before and after" method doesn't work for me and I have no control over when end users are writing to the filesystem.

Wiki says there's a patch which is not merged. Is that refering to this discussion:

http://comments.gmane.org/gmane.comp.file-systems.btrfs/14942

Why was the patch not merged?

Signature · 2 lines
Suman Chakravartula
Rockstor, Inc.
#1 lore raw
Quoted 9 lines · Suman Chakravartula

I'd like to calculate the compressed size of a btrfs filesystem. I read the wiki and understand the backward compatibility issues mentioned. Also, the "df before and after" method doesn't work for me and I have no control over when end users are writing to the filesystem.

Wiki says there's a patch which is not merged. Is that refering to this discussion:

http://comments.gmane.org/gmane.comp.file-systems.btrfs/14942

I'll update the link.

Quoted 1 line

Why was the patch not merged?

Because the approach was abandoned in favor of a more generic solution that reuses the existing interface (FIEMAP). The patchset implementing this is

http://thread.gmane.org/gmane.comp.file-systems.btrfs/37312