From patchwork Mon Apr 16 11:39:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zheng Liu X-Patchwork-Id: 152797 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 B21B7B6FAA for ; Mon, 16 Apr 2012 21:34:20 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753263Ab2DPLeS (ORCPT ); Mon, 16 Apr 2012 07:34:18 -0400 Received: from mail-pz0-f52.google.com ([209.85.210.52]:62902 "EHLO mail-pz0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753030Ab2DPLeR (ORCPT ); Mon, 16 Apr 2012 07:34:17 -0400 Received: by mail-pz0-f52.google.com with SMTP id e40so6801134dak.11 for ; Mon, 16 Apr 2012 04:34:17 -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=NTh3bRK6nDP7QmQn32HouVQpbD/HpGjanL7AGhHskEs=; b=eJE3zxIs5SXBgJta4Befv3oYflkDcIwIPCpssCq6ioaHoHxkiEawb6kZpCGTtRbDXC YXcf4rfFMsjZLjRmeCdAk893bCfihJdxof2ZGbtvsZhkwLP5nJkCY1J63qorEVCo8GaZ L/GKs/un1snn+/HJxDFzIpbZkdcZ1YVXj1lpL9PUTkwrtxl44AzDAek1KkikwlkBNZ1U sc8iKbnEn3ShflJ/p202FQbvrPrSnOhwUpERKHtH1gLMZAqAHYZtrm5/Fd3IX2W1TLGG ihHhjF5K+WucrmFbnubk2icjbFWMqbA4ifsAJIICVwSBhqm/0dIQzSzp346xH0wG8KAo 05kA== Received: by 10.68.202.167 with SMTP id kj7mr27933210pbc.9.1334576057209; Mon, 16 Apr 2012 04:34:17 -0700 (PDT) Received: from localhost.localdomain ([182.92.247.2]) by mx.google.com with ESMTPS id l6sm17474160pbp.33.2012.04.16.04.34.15 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Apr 2012 04:34:16 -0700 (PDT) From: Zheng Liu To: linux-ext4@vger.kernel.org Subject: [PATCH 13/32] debufs: make blocks cmd support inline data Date: Mon, 16 Apr 2012 19:39:48 +0800 Message-Id: <1334576407-4007-14-git-send-email-wenqing.lz@taobao.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1334576407-4007-1-git-send-email-wenqing.lz@taobao.com> References: <1334576407-4007-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 df9b954..17e5ec8 100644 --- a/debugfs/debugfs.c +++ b/debugfs/debugfs.c @@ -958,6 +958,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);