search for: calc_siz

Displaying 7 results from an estimated 7 matches for "calc_siz".

Did you mean: calc_size
2011 May 02
5
[PATCH v3 0/3] btrfs: quasi-round-robin for chunk allocation
In a multi device setup, the chunk allocator currently always allocates chunks on the devices in the same order. This leads to a very uneven distribution, especially with RAID1 or RAID10 and an uneven number of devices. This patch always sorts the devices before allocating, and allocates the stripes on the devices with the most available space, as long as there is enough space available. In a low
2011 Apr 12
3
[PATCH v2 0/3] btrfs: quasi-round-robin for chunk allocation
In a multi device setup, the chunk allocator currently always allocates chunks on the devices in the same order. This leads to a very uneven distribution, especially with RAID1 or RAID10 and an uneven number of devices. This patch always sorts the devices before allocating, and allocates the stripes on the devices with the most available space, as long as there is enough space available. In a low
2009 Aug 05
3
RAID[56] with arbitrary numbers of "parity" stripes.
...ntk(KERN_ERR "btrfs: unable to go below %d " + "devices on raid5/raid6\n", required_devs + 1); + ret = -EINVAL; + goto out; + } } if (strcmp(device_path, "missing") == 0) { @@ -2142,10 +2134,8 @@ static noinline u64 chunk_bytes_by_type(u64 type, u64 calc_size, return calc_size; else if (type & BTRFS_BLOCK_GROUP_RAID10) return calc_size * (num_stripes / sub_stripes); - else if (type & BTRFS_BLOCK_GROUP_RAID5) - return calc_size * (num_stripes - 1); - else if (type & BTRFS_BLOCK_GROUP_RAID6) - return calc_size * (num_stripes - 2); +...
2013 Jun 08
0
[PATCH] Btrfs-progs: elaborate error handling of mkfs
...tup the root directory %d\n", ret); exit(1); } diff --git a/volumes.c b/volumes.c index d6f81f8..8285240 100644 --- a/volumes.c +++ b/volumes.c @@ -842,11 +842,13 @@ again: info->chunk_root->root_key.objectid, BTRFS_FIRST_CHUNK_TREE_OBJECTID, key.offset, calc_size, &dev_offset); - BUG_ON(ret); + if (ret) + goto out; device->bytes_used += calc_size; ret = btrfs_update_device(trans, device); - BUG_ON(ret); + if (ret) + goto out; map->stripes[index].dev = device; map->stripes[index].physical = dev_offset; @@ -878,7 +880,6 @...
2013 Sep 05
3
[PATCH v2 0/3] btrfs-progs: prevent mkfs from aborting with small volume
Here are 3 patches to avoid undesired aborts of mkfs.btrfs. These are based on top of Chris''s btrfs-progs.git: git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git Thanks, H.Seto Hidetoshi Seto (3): btrfs-progs: error if device for mkfs is too small btrfs-progs: error if device have no space to make primary chunks btrfs-progs: calculate available
2009 Mar 31
15
Error: undefined method ''calc_min'' for #<Wx::IdleEvent>
Hi, I occasionally had the following error when application in idle state. Error: undefined method ''calc_min'' for #<Wx::IdleEvent:0xb115e44> OS: WXMSW Ruby Version: 1.8.6 wxRuby 2.0.0 Backtrace: (eval):154:in `calc_min'' (eval):154:in `layout'' (eval):154:in `process_event'' (eval):154:in `on_run'' (eval):154:in
2010 Sep 03
0
[PATCH 1/2] btrfs: document where we use BUG_ON instead of error handling
...S_FIRST_CHUNK_TREE_OBJECTID, start, *num_bytes); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); index = 0; while (index < map->num_stripes) { @@ -2368,7 +2368,7 @@ again: info->chunk_root->root_key.objectid, BTRFS_FIRST_CHUNK_TREE_OBJECTID, start, dev_offset, calc_size); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); index++; } @@ -2399,7 +2399,7 @@ static int __finish_chunk_alloc(struct btrfs_trans_handle *trans, device = map->stripes[index].dev; device->bytes_used += stripe_size; ret = btrfs_update_device(trans, device); - BUG_ON(ret); +...