From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from aserp2130.oracle.com ([141.146.126.79]:42058 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731193AbeGRDvO (ORCPT ); Tue, 17 Jul 2018 23:51:14 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6I3EdXi034650 for ; Wed, 18 Jul 2018 03:15:32 GMT Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2130.oracle.com with ESMTP id 2k7a3t378b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 18 Jul 2018 03:15:32 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w6I3FVdd008228 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 18 Jul 2018 03:15:31 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w6I3FVPx009262 for ; Wed, 18 Jul 2018 03:15:31 GMT Subject: Re: [PATCH v7] Add cli and ioctl to forget scanned device(s) From: Anand Jain To: linux-btrfs@vger.kernel.org References: <20180718030801.31617-1-anand.jain@oracle.com> Message-ID: <44ea10b7-736c-792e-51e0-40434024da74@oracle.com> Date: Wed, 18 Jul 2018 11:18:55 +0800 MIME-Version: 1.0 In-Reply-To: <20180718030801.31617-1-anand.jain@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Sender: linux-btrfs-owner@vger.kernel.org List-ID: Please ignore this. There is a line of code which is un-commit. I am sending this series again. Sorry for the noise. Thanks, Anand On 07/18/2018 11:07 AM, Anand Jain wrote: > v7: > Availalbe for pull from > btrfs-progs: > git@github.com:asj/btrfs-progs.git forget > btrfs.ko: > git@github.com:asj/btrfs-devel.git misc-next-jul18 > > Use struct btrfs_ioctl_vol_args (instead of struct > btrfs_ioctl_vol_args_v2) as its inline with other ioctl > btrfs-control > The CLI usage remains same. However internally the ioctl flag is not > required to delete all the unmounted devices. Instead leave > btrfs_ioctl_vol_args::name NULL. > > v6: > Use the changed fn name btrfs_free_stale_devices(). > > Change in title: > Old v5: > Cover-letter: > [PATCH v5] Add cli and ioctl to ignore a scanned device > Kernel: > [PATCH v5] btrfs: introduce feature to ignore a btrfs device > Progs: > [PATCH v5] btrfs-progs: add 'btrfs device ignore' cli > > v5: > Adds feature to delete all stale devices > Reuses btrfs_free_stale_devices() fn and so depends on the > patch-set [1] in the ML. > Uses struct btrfs_ioctl_vol_args_v2 instead of > struct btrfs_ioctl_vol_args as arg > Does the device path matching instead of btrfs_device matching > (we won't delete the mounted device as btrfs_free_stale_devices() > checks for it) > v4: > No change. But as the ML thread may be confusing, so resend. > v3: > No change. Send to correct ML. > v2: > Accepts review from Nikolay, details are in the specific patch. > Patch 1/2 is renamed from > [PATCH 1/2] btrfs: refactor btrfs_free_stale_device() to get device list delete > to > [PATCH 1/2] btrfs: add function to device list delete > > Adds cli and ioctl to forget a scanned device or forget all stale > devices in the kernel. > > Anand Jain (1): > btrfs: introduce feature to forget a btrfs device > > fs/btrfs/super.c | 3 +++ > fs/btrfs/volumes.c | 9 +++++++++ > fs/btrfs/volumes.h | 1 + > include/uapi/linux/btrfs.h | 2 ++ > 4 files changed, 15 insertions(+) > > Anand Jain (1): > btrfs-progs: add cli to forget one or all scanned devices > > cmds-device.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ioctl.h | 2 ++ > 2 files changed, 60 insertions(+) >