From c6e924fea8fd2abc1359ad08e51bf326cbeb3ed4 Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Mon, 28 Apr 2014 19:27:58 -0400 Subject: [PATCH] Fix libblkid ZFS detection when making new pools zfsonlinux/zfs@1db7b9be75a225cedb3b7a60028ca5695e5b8346 should have fixed this, but this particular string was overlooked. Signed-off-by: Richard Yao Signed-off-by: Brian Behlendorf Closes #2288 --- cmd/zpool/zpool_vdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/zpool/zpool_vdev.c b/cmd/zpool/zpool_vdev.c index 316e291c3d..862c576837 100644 --- a/cmd/zpool/zpool_vdev.c +++ b/cmd/zpool/zpool_vdev.c @@ -377,7 +377,7 @@ check_slice(const char *path, blkid_cache cache, int force, boolean_t isspare) * using check_file() to see if it's safe. The one safe * case is a spare device shared between multiple pools. */ - if (strcmp(value, "zfs") == 0) { + if (strcmp(value, "zfs_member") == 0) { err = check_file(path, force, isspare); } else { if (force) {