diff mbox

[3/5] btrfs: notice nodatasum is also enabled with nodatacow

Message ID 541A983A.4000102@jp.fujitsu.com (mailing list archive)
State New, archived
Headers show

Commit Message

Satoru Takeuchi Sept. 18, 2014, 8:30 a.m. UTC
From: Naohiro Aota <naota@elisp.net>

Documentation/filesystems/btrfs.txt states the following:

-- 1.8.3.1 

--
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
diff mbox

Patch

===
...
  Nodatacow implies nodatasum, and disables all compression.
...
===

However the current message only mentions nodatacow. It's better to
also mention nodatasum.

Signed-off-by: Naohiro Aota <naota@elisp.net>
Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
---
 fs/btrfs/super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index d131098..7ad4293 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -464,9 +464,9 @@  int btrfs_parse_options(struct btrfs_root *root, char *options)
 			if (!btrfs_test_opt(root, NODATACOW)) {
 				if (btrfs_test_opt(root, COMPRESS)) {
 					btrfs_info(root->fs_info,
-						   "setting nodatacow, compression disabled");
+						   "setting nodatacow and nodatasum, compression disabled");
 				} else {
-					btrfs_info(root->fs_info, "setting nodatacow");
+					btrfs_info(root->fs_info, "setting nodatacow and nodatasum");
 				}
 			}
 			btrfs_clear_opt(info->mount_opt, COMPRESS);