Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1638262 > unrolled thread

[xfstests PATCH v2 3/3] btrfs: allow it to use $SCRATCH_LOGDEV

Started byJeff Layton <jlayton@redhat.com>
First post2017-05-09 18:20 +0200
Last post2017-05-09 18:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [xfstests PATCH v2 3/3] btrfs: allow it to use $SCRATCH_LOGDEV Jeff Layton <jlayton@redhat.com> - 2017-05-09 18:20 +0200

#1638262 — [xfstests PATCH v2 3/3] btrfs: allow it to use $SCRATCH_LOGDEV

FromJeff Layton <jlayton@redhat.com>
Date2017-05-09 18:20 +0200
Subject[xfstests PATCH v2 3/3] btrfs: allow it to use $SCRATCH_LOGDEV
Message-ID<tFg1I-45Y-25@gated-at.bofh.it>
With btrfs, we can't really put the log on a separate device. What we
can do however is mirror the metadata across two devices and put the
data on a single device. When we turn on dmerror then the metadata can
fall back to using the other mirror while the data errors out.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
 common/rc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/rc b/common/rc
index 8b815d9c8c33..2084c1f24f30 100644
--- a/common/rc
+++ b/common/rc
@@ -829,6 +829,8 @@ _scratch_mkfs()
 		;;
 	btrfs)
 		mkfs_cmd="$MKFS_BTRFS_PROG"
+		[ "$USE_EXTERNAL" = yes -a ! -z "$SCRATCH_LOGDEV" ] && \
+			mkfs_cmd="$mkfs_cmd -d single -m raid1 $SCRATCH_LOGDEV"
 		mkfs_filter="cat"
 		;;
 	ext2|ext3)
-- 
2.9.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web