btrfs-convert won't convert ext* - No valid Btrfs found on /dev/sdb1

2013-09-05 Thread Тимофей Титовец
Hello guys, i try to convert ext4 volume, but btrfs-convert show me error:
No valid Btrfs found on file
unable to open ctree
conversion aborted.
Ubuntu 13.04
Kernel: 3.11
btrfs-progs git version 0.20-git20130822~194aa4a13

way to reproduce error:
$ truncate -s 4G file
$ mkfs.ext4 file #say yes to create fs on non block device.
$ btrfs-convert file
 No valid Btrfs found on file
 unable to open ctree
 conversion aborted.

With best regards,
Timofey.
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Mixed blocks, he can avoid ENOSPACE error, when he can't allocated metadata blocks?

2013-09-01 Thread Тимофей Титовец
Hello list, sorry for my bad english anyway.
if my message is  delirium, just ignore this message.
My question:
When using mixed blocks, metadata and data chunks has be merge, but we
have (when using mixed) speed penalty.
how many penalty will be have if we using mixed?

Kernel 3.11-rc7, Ubuntu 13.10 x64
my simple test:
#Mixed
sudo mkfs.btrfs -f -M /dev/sdb #sdb old seagate hdd 80G
sudo mount /dev/sdb /mnt
time sudo dd if=/dev/zero of=/mnt/zero bs=1M count=4096
~48.5s
time sudo rm /mnt/zero
~1.5s
sudo umount /mnt
---
#default setting
sudo mkfs.btrfs -f /dev/sdb
sudo mount /dev/sdb /mnt
time sudo dd if=/dev/zero of=/mnt/zero bs=1M count=4096
~48.5s
time sudo rm /mnt/zero
~1.5s
sudo umount /mnt
---
#raw write
time sudo dd if=/dev/zero of=/dev/sdb bs=1M count=4096
~59s

I don't see any different between mixed and defaults blocks.
So using mixed blocks have sense? Or this is outdated function?
Can i change in future type of chunk allocation between mixed and
default (with using balance function)?

i believe in mixed blocks because this function can awoid problems
with ENOSPACE error (when system can't allocated metadata chunk) and
can up space utilization on the disk.
On slow hdd, we no see any different between profiles, and on speed
ssd perfomance penalty should not be significant.

(i just using btrfs on my PC (1 TB hdd) and laptop (ssd 128 GB), i
like this fs and i haven't any problem
(Only enospace, but i just add temp drive and using balance to fix this)
and i just try optimizing fs).
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html