linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mkfs devices ordering relevant with devices of different sizes?
@ 2012-07-25 13:26 Cyril B. 
  2012-07-26 21:09 ` David Sterba
  0 siblings, 1 reply; 3+ messages in thread
From: Cyril B.  @ 2012-07-25 13:26 UTC (permalink / raw)
  To: linux-btrfs

Hello,

When creating a filesystem with devices of different sizes, the resulting 
filesystem total size depends on the device order specified to mkfs. When 
the smaller device is specified first, the second (larger) device is seen as 
the same size as the first. This doesn't occur when the order is reversed.

It's confusing. Is this expected? I'm using the latest btrfs-progs and Linux 
3.5.


# ./mkfs.btrfs /dev/sda4 /dev/sdc

WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL
WARNING! - see http://btrfs.wiki.kernel.org before using

adding device /dev/sdc id 2
fs created label (null) on /dev/sda4
        nodesize 4096 leafsize 4096 sectorsize 4096 size 3.97TB
Btrfs Btrfs v0.19
backup6:~/btrfs-progs# ./btrfs fi show /dev/sdc
Label: none  uuid: 806b237e-53ed-409e-a7c1-02f101798384
        Total devices 2 FS bytes used 28.00KB
        devid    2 size 1.98TB used 2.01GB path /dev/sdc
        devid    1 size 1.98TB used 2.03GB path /dev/sda4

Btrfs Btrfs v0.19


# ./mkfs.btrfs /dev/sdc /dev/sda4

WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL
WARNING! - see http://btrfs.wiki.kernel.org before using

adding device /dev/sda4 id 2
fs created label (null) on /dev/sdc
        nodesize 4096 leafsize 4096 sectorsize 4096 size 4.71TB
Btrfs Btrfs v0.19
backup6:~/btrfs-progs# ./btrfs fi show /dev/sdc
Label: none  uuid: 8f99c072-521b-4827-a2be-41de6ab11b4f
        Total devices 2 FS bytes used 28.00KB
        devid    1 size 2.73TB used 2.03GB path /dev/sdc
        devid    2 size 1.98TB used 2.01GB path /dev/sda4

Btrfs Btrfs v0.19


Thanks.

-- 
Cyril B.


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

end of thread, other threads:[~2012-07-27 12:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-25 13:26 mkfs devices ordering relevant with devices of different sizes? Cyril B. 
2012-07-26 21:09 ` David Sterba
2012-07-27 12:05   ` Josef Bacik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).