[PATCH] BUG: use metadata_profile instead of data_profile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The function test_num_disk_vs_raid() show an error message if
the raid profile is incompatible with the number of devices.

Unfortunately when the error is related to data profile,
the message print the metadata profile.

This patch correct the bug.

Signed-off-by: Goffredo Baroncelli <kreijack@xxxxxxxxx>
---
 utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils.c b/utils.c
index fc69e9b..e1b56ac 100644
--- a/utils.c
+++ b/utils.c
@@ -2116,7 +2116,7 @@ int test_num_disk_vs_raid(u64 metadata_profile, u64 data_profile,
 	if (data_profile & ~allowed) {
 		snprintf(estr, sz, "unable to create FS with data "
 			"profile %llu (have %llu devices)\n",
-			metadata_profile, dev_cnt);
+			data_profile, dev_cnt);
 		return 1;
 	}
 
-- 
2.1.3

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux