From patchwork Thu Oct 29 23:17:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Xu X-Patchwork-Id: 11867895 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64159C2D0A3 for ; Thu, 29 Oct 2020 23:18:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CF4912076E for ; Thu, 29 Oct 2020 23:18:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=dxuuu.xyz header.i=@dxuuu.xyz header.b="hdCVHld1"; dkim=temperror (0-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="RHih5xdO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725763AbgJ2XSJ (ORCPT ); Thu, 29 Oct 2020 19:18:09 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:60021 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726033AbgJ2XSI (ORCPT ); Thu, 29 Oct 2020 19:18:08 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 0C0595C01C5; Thu, 29 Oct 2020 19:18:07 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 29 Oct 2020 19:18:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dxuuu.xyz; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=sUVdLcDMLXZbJwvIloH7jpFhg/ xLyevGNEkUgHuERHc=; b=hdCVHld1uZlXMYzYA4obiFdL9SDqd1t9PvrGhu5Ab+ 5isYTwOTB3ADYd8xAxA8urEpt27XBWfldzdhJd6d8KjPEsAqHIIQx/J3ZCvLlrMn 7gQH9hKSaiV5VQsPm+Dixh9BboqbgzMvyGrptv4xpDOP6IE1aCnzP41JVtnw1ITb 6vkIsCfnWH0iUm1ODA3vJdADDXDzGtqcYSIi4HYfBEg+CIQwWPc9/I04kqDb/oR6 LrWiK9ZyfGkn2hD70amfTDTwHQQ0qwWIeHjepEx+0/CJg7UAi8p1bYqaPSin9QWS zL2uIr2Lig333j789phWAPOVx1Y6NKtBg/8cUskoh+CQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=sUVdLcDMLXZbJwvIl oH7jpFhg/xLyevGNEkUgHuERHc=; b=RHih5xdONJYgS/fRTCaDYUeu00w0YVHuJ 9tiG6W7X1A8DmEVQ4P31KqJDbJ/dwcpvZYZwiyI4zQlKFycdLapNd0wcCLL+guqw fjT3pKMiN7ueuPMGsMIrb2AICpaBPgJZ6UD24rCUYfqN6ks6PGJ/S5TAU9912ZB9 k7Ii0cSIDvLOOEBNqLmNw4dBL3ng6oeAjfRsrxUI41ynbfwRHT7RWi/AreBRwIhJ zWehmReh/bjkYbEP5RaG3YeH5HpV4obT6oHt7zz+fAcWiQMsfCJwSx2NTwUapfef nm8YWocWld7n91WpO/evxLzTX7WTXKuILOIC+iBfzSEnMrytuz4TA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrleeggddtkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdefhedmnecujfgurhephffvuf ffkffoggfgsedtkeertdertddtnecuhfhrohhmpeffrghnihgvlhcuighuuceougiguhes ugiguhhuuhdrgiihiieqnecuggftrfgrthhtvghrnhepffffgeejudehlefgtddukeeije fggeehheejgfeijeevveetieevueekgfehkeejnecuffhomhgrihhnpehgihhthhhusgdr tghomhenucfkphepudeifedruddugedrudefvddrudenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegugihusegugihuuhhurdighiii X-ME-Proxy: Received: from dlxu-fedora-R90QNFJV.thefacebook.com (unknown [163.114.132.1]) by mail.messagingengine.com (Postfix) with ESMTPA id 57E8D3064682; Thu, 29 Oct 2020 19:18:05 -0400 (EDT) From: Daniel Xu To: linux-btrfs@vger.kernel.org, dsterba@suse.cz Cc: Daniel Xu , kernel-team@fb.com Subject: [PATCH 0/3] btrfs-progs: rescue: Add create-control-device subcommand Date: Thu, 29 Oct 2020 16:17:35 -0700 Message-Id: X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org This patchset adds a new `btrfs rescue create-control-device` subcommand that acts as a convenient way to invoke: # mknod --mode=600 c 10 234 /dev/btrfs-control on systems that don't have `mknod` installed or when you're lazy. Link: https://github.com/kdave/btrfs-progs/issues/223 Daniel Xu (3): btrfs-progs: rescue: Add create-control-device subcommand btrfs-progs: bash: Update completion script with create-control-device btrfs-progs: rescue: Update docs with create-control-device Documentation/btrfs-man5.asciidoc | 8 ++++++- Documentation/btrfs-rescue.asciidoc | 5 +++++ btrfs-completion | 2 +- cmds/rescue.c | 35 +++++++++++++++++++++++++++++ 4 files changed, 48 insertions(+), 2 deletions(-) Reviewed-by: Josef Bacik --- 2.26.2