From patchwork Mon Nov 16 17:35:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Darrick J. Wong" X-Patchwork-Id: 11909887 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 94D9A14C0 for ; Mon, 16 Nov 2020 17:38:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7874520B80 for ; Mon, 16 Nov 2020 17:38:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="IfxlQcmv" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731598AbgKPRhV (ORCPT ); Mon, 16 Nov 2020 12:37:21 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:56340 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733242AbgKPRhV (ORCPT ); Mon, 16 Nov 2020 12:37:21 -0500 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AGHUOGX097104; Mon, 16 Nov 2020 17:37:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : from : to : cc : date : message-id : mime-version : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=dtAyO0Fj4PIa6Vp6kF6O898/B3iyx+8UmDk7/x27qiw=; b=IfxlQcmveweSh5Dxjb0btgwAP1/BaHXak4+dQxn4+P8pLarX33mlUCTCFsrUJHsVU3LP /Qm188lfBMMp4enI/8N/6Vbg+aOMW0Vfpx3EMQ/xykNBdhJWvfk0hZApsP8xGqMPB5GC CjbSjKvAuyjzilS3ORZsr9Lhmvo5vsIGFfpzCd3/SEegX9ftMApap741v+fI5u9QQg8J m+MbrzNIQa8KRveO95Al3a722T1sO/lJgnHnxL/vz48w/J4TgpTXBr/qtdhX5SUIKpld HsmOESkjHHNebgOBnorC3YGI57Gm4Cb8zDsQ/cRJzDuGxT99Q3xvLXtDrUraFlFgQcS4 jw== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 34t76kp9j1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 16 Nov 2020 17:37:18 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AGHVE9o134317; Mon, 16 Nov 2020 17:35:17 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 34umcx33e0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 16 Nov 2020 17:35:17 +0000 Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 0AGHZGYL018080; Mon, 16 Nov 2020 17:35:17 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 16 Nov 2020 09:35:05 -0800 Subject: [PATCH v2 0/2] xfs_db: add minimal directory navigation From: "Darrick J. Wong" To: sandeen@sandeen.net, darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org Date: Mon, 16 Nov 2020 09:35:04 -0800 Message-ID: <160554810400.2672934.11229550425583973318.stgit@magnolia> User-Agent: StGit/0.19 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9807 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxscore=0 phishscore=0 spamscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011160102 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9807 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 phishscore=0 adultscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 mlxlogscore=999 malwarescore=0 mlxscore=0 spamscore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011160102 Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org Hi all, Improve the usability of xfs_db by enabling users to navigate to inodes by path and to list the contents of directories. v2: Various cleanups and reorganizing suggested by dchinner If you're going to start using this mess, you probably ought to just pull from my git trees, which are linked below. This is an extraordinary way to destroy everything. Enjoy! Comments and questions are, as always, welcome. --D xfsprogs git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=xfs_db-directory-navigation fstests git tree: https://git.kernel.org/cgit/linux/kernel/git/djwong/xfstests-dev.git/log/?h=xfs_db-directory-navigation --- db/Makefile | 2 db/command.c | 1 db/command.h | 1 db/namei.c | 612 ++++++++++++++++++++++++++++++++++++++++++++++ libxfs/libxfs_api_defs.h | 1 man/man8/xfs_db.8 | 20 ++ 6 files changed, 636 insertions(+), 1 deletion(-) create mode 100644 db/namei.c