From patchwork Tue Jul 31 11:48:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Liu X-Patchwork-Id: 174232 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 0E5192C007C for ; Tue, 31 Jul 2012 21:40:23 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756025Ab2GaLkT (ORCPT ); Tue, 31 Jul 2012 07:40:19 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:35285 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756021Ab2GaLkL (ORCPT ); Tue, 31 Jul 2012 07:40:11 -0400 Received: by mail-pb0-f46.google.com with SMTP id rp8so11540445pbb.19 for ; Tue, 31 Jul 2012 04:40:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; bh=h2ZMl+X8Lb/wPIk3i+9fKISTPepUf5KDdtCRf+uALnc=; b=a28xKrFYVK3GxDV1kwnlUd/+LShUNtOp1BuZrrPW/48WglO31aL5UM/vRY9GdueEnu 71PWbP0C2vQbdp8RYY0f6V/wu54ZGK58S73Fa6e7swg36TFlDCnw/M9bc8ohuyzk9KCk f+4CsM7plQkhOJwc8M/4zupMn/K5dVyu0tiucvowJggL3BLUjU77vGfqrxJ1LIM+BP9h f2xoUzHJ1XMMNZToD+J1jfyZTHf1auTAqOj3TO9bxjywZ+mrsh7k8dnNL9TRKsxnrLId Ra2Iw/mTFgLh6vCMPZ+C5ikNWALeziDaxFTqvQdlvt2iOtrxZspSJZwjI/QWzL/vZTiq vN0Q== Received: by 10.68.228.231 with SMTP id sl7mr41175458pbc.45.1343734811039; Tue, 31 Jul 2012 04:40:11 -0700 (PDT) Received: from localhost.localdomain ([182.92.247.2]) by mx.google.com with ESMTPS id oo6sm135950pbc.22.2012.07.31.04.40.09 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 31 Jul 2012 04:40:10 -0700 (PDT) From: Zheng Liu To: linux-ext4@vger.kernel.org Subject: [PATCH 13/36 v4] debugfs: make blocks cmd support inline data Date: Tue, 31 Jul 2012 19:48:06 +0800 Message-Id: <1343735309-30579-14-git-send-email-wenqing.lz@taobao.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1343735309-30579-1-git-send-email-wenqing.lz@taobao.com> References: <1343735309-30579-1-git-send-email-wenqing.lz@taobao.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Zheng Liu Block entries don't point to blocks. So it doesn't show anything when this inode has inline data. Singed-off-by: Zheng Liu --- debugfs/debugfs.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c index 14092e0..db3d3b9 100644 --- a/debugfs/debugfs.c +++ b/debugfs/debugfs.c @@ -968,6 +968,9 @@ void do_blocks(int argc, char *argv[]) return; } + if (ext2fs_has_inline_data(current_fs, inode)) + return; + ext2fs_block_iterate3(current_fs, inode, BLOCK_FLAG_READ_ONLY, NULL, print_blocks_proc, NULL); fputc('\n', stdout);