All of lore.kernel.org
 help / color / mirror / Atom feed
* Btrfs-progs-3.16: fs metadata is both single and dup?
@ 2014-09-02 12:05 Holger Hoffstätte
  2014-09-02 12:13 ` Hugo Mills
  0 siblings, 1 reply; 6+ messages in thread
From: Holger Hoffstätte @ 2014-09-02 12:05 UTC (permalink / raw)
  To: linux-btrfs


I updated to progs-3.16 and noticed during testing:

root>losetup 
NAME       SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE
/dev/loop0         0      0         0  0 /tmp/img

root>mkfs.btrfs -f /dev/loop0
Btrfs v3.16
See http://btrfs.wiki.kernel.org for more information.

Performing full device TRIM (8.00GiB) ...
Turning ON incompat feature 'extref': increased hardlink limit per file 
to 65536
fs created label (null) on /dev/loop0
	nodesize 16384 leafsize 16384 sectorsize 4096 size 8.00GiB
root>mkdir /tmp/btrfs
root>mount /dev/loop0 /tmp/btrfs 

All fine until here..

root>btrfs filesystem df /tmp/btrfs 
Data, single: total=8.00MiB, used=64.00KiB
System, DUP: total=8.00MiB, used=16.00KiB
System, single: total=4.00MiB, used=0.00
Metadata, DUP: total=409.56MiB, used=112.00KiB
Metadata, single: total=8.00MiB, used=0.00

..wait, what? Let's be clear..

root>btrfs balance start -mconvert=dup /tmp/btrfs 
Done, had to relocate 4 out of 5 chunks

root>btrfs filesystem df /tmp/btrfs            
Data, single: total=8.00MiB, used=64.00KiB
System, DUP: total=32.00MiB, used=16.00KiB
Metadata, DUP: total=128.00MiB, used=112.00KiB

Now looking as expected.

root>btrfs balance start -mconvert=single -f /tmp/btrfs 
Done, had to relocate 2 out of 3 chunks

root>btrfs filesystem df /tmp/btrfs            
Data, single: total=8.00MiB, used=128.00KiB
System, single: total=32.00MiB, used=16.00KiB
Metadata, single: total=256.00MiB, used=112.00KiB

Looking good too (metadata doubled)

So where does the confusing initial display come from? I'm running this 
against a (very patched) 3.14.17, but don't remember ever seeing this 
with btrfs-progs-3.14.2.

Any ideas?

thanks
Holger


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-09-03  8:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-02 12:05 Btrfs-progs-3.16: fs metadata is both single and dup? Holger Hoffstätte
2014-09-02 12:13 ` Hugo Mills
2014-09-02 12:34   ` Holger Hoffstätte
2014-09-03  4:53   ` Duncan
2014-09-03  7:33     ` Hugo Mills
2014-09-03  8:41       ` Duncan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.