linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Btrfs: fix wrong max device number for single profile
@ 2013-01-16 11:27 Miao Xie
  2013-01-16 12:03 ` Liu Bo
  0 siblings, 1 reply; 2+ messages in thread
From: Miao Xie @ 2013-01-16 11:27 UTC (permalink / raw)
  To: Linux Btrfs; +Cc: Liu Bo

The max device number of single profile is 1, not 0 (0 means 'as many as
possible'). Fix it.

Cc: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
---
 fs/btrfs/volumes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 86279c3..7fa9773 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -3496,7 +3496,7 @@ struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES] = {
 	{ 1, 1, 2, 2, 2, 2 /* raid1 */ },
 	{ 1, 2, 1, 1, 1, 2 /* dup */ },
 	{ 1, 1, 0, 2, 1, 1 /* raid0 */ },
-	{ 1, 1, 0, 1, 1, 1 /* single */ },
+	{ 1, 1, 1, 1, 1, 1 /* single */ },
 };
 
 static int __btrfs_alloc_chunk(struct btrfs_trans_handle *trans,
-- 
1.7.11.7

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

* Re: [PATCH 1/2] Btrfs: fix wrong max device number for single profile
  2013-01-16 11:27 [PATCH 1/2] Btrfs: fix wrong max device number for single profile Miao Xie
@ 2013-01-16 12:03 ` Liu Bo
  0 siblings, 0 replies; 2+ messages in thread
From: Liu Bo @ 2013-01-16 12:03 UTC (permalink / raw)
  To: Miao Xie; +Cc: Linux Btrfs, Liu Bo

On Wed, Jan 16, 2013 at 07:27:17PM +0800, Miao Xie wrote:
> The max device number of single profile is 1, not 0 (0 means 'as many as
> possible'). Fix it.

Reviewed-by: Liu Bo <bo.li.liu@oracle.com>

> 
> Cc: Liu Bo <bo.li.liu@oracle.com>
> Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
> ---
>  fs/btrfs/volumes.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
> index 86279c3..7fa9773 100644
> --- a/fs/btrfs/volumes.c
> +++ b/fs/btrfs/volumes.c
> @@ -3496,7 +3496,7 @@ struct btrfs_raid_attr btrfs_raid_array[BTRFS_NR_RAID_TYPES] = {
>  	{ 1, 1, 2, 2, 2, 2 /* raid1 */ },
>  	{ 1, 2, 1, 1, 1, 2 /* dup */ },
>  	{ 1, 1, 0, 2, 1, 1 /* raid0 */ },
> -	{ 1, 1, 0, 1, 1, 1 /* single */ },
> +	{ 1, 1, 1, 1, 1, 1 /* single */ },
>  };
>  
>  static int __btrfs_alloc_chunk(struct btrfs_trans_handle *trans,
> -- 
> 1.7.11.7
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2013-01-16 12:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-16 11:27 [PATCH 1/2] Btrfs: fix wrong max device number for single profile Miao Xie
2013-01-16 12:03 ` Liu Bo

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).