From patchwork Mon Oct 26 23:32:28 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: 11859047 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 5614B921 for ; Mon, 26 Oct 2020 23:34:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3CC5420809 for ; Mon, 26 Oct 2020 23:34:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="WW/4r4m4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406580AbgJZXeg (ORCPT ); Mon, 26 Oct 2020 19:34:36 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:54700 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406567AbgJZXeg (ORCPT ); Mon, 26 Oct 2020 19:34:36 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 09QNOv6x164755; Mon, 26 Oct 2020 23:34:34 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=iVU8UagIfZZQOkd67lTi6RZwhSUUu+/BYuYI+mvkADs=; b=WW/4r4m415Yqne7elNKDdZCouxEHWH1BKSnRdfQ97wNFlrIy4z3iodpqMwtsOZoTcKwp T6/DIjj0+k8jAblSvQtLIRTK8+6CDFZier/nld5Xc2JUWLHF9qP3l5q3YV9Pml6d/yTf shjjKiOPibN0qBRGGLN+9Bi2NfdGuhlOeFn8DPEA3bfyIo48lb/wl7j7i9zxK7MIKjxW 50XVxbmD0I3offLUPWoTtyxybnKF85pnUzwIzC9TAAowJ2mTIzOW7UPEUOHI8WBGtb4s N9IxxhyiuNxJf/uUE4lx/YOyOnulc7BLbtXFr6/ZntkPbYpUqKPYLGsektWWARzbj92i ww== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 34dgm3vupv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 26 Oct 2020 23:34:33 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 09QNPG9w120984; Mon, 26 Oct 2020 23:32:33 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 34cx6va4g5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Oct 2020 23:32:33 +0000 Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 09QNWWVX004825; Mon, 26 Oct 2020 23:32:33 GMT Received: from localhost (/10.159.145.170) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 26 Oct 2020 16:32:29 -0700 Subject: [PATCH 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, 26 Oct 2020 16:32:28 -0700 Message-ID: <160375514873.880118.10145241423813965771.stgit@magnolia> User-Agent: StGit/0.19 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9786 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 spamscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010260153 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9786 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 lowpriorityscore=0 impostorscore=0 adultscore=0 bulkscore=0 spamscore=0 phishscore=0 mlxlogscore=999 suspectscore=0 clxscore=1015 mlxscore=0 malwarescore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010260153 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. 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 | 608 ++++++++++++++++++++++++++++++++++++++++++++++ libxfs/libxfs_api_defs.h | 1 man/man8/xfs_db.8 | 18 + 6 files changed, 630 insertions(+), 1 deletion(-) create mode 100644 db/namei.c