From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q2UEsqYb116618 for ; Fri, 30 Mar 2012 09:54:53 -0500 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id MtPlGaioJA2krOtv for ; Fri, 30 Mar 2012 07:54:51 -0700 (PDT) Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2UEspLJ016137 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 30 Mar 2012 10:54:51 -0400 Received: from liberator.sandeen.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q2UEsnXm011508 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 30 Mar 2012 10:54:51 -0400 Message-ID: <4F75C939.6030009@redhat.com> Date: Fri, 30 Mar 2012 09:54:49 -0500 From: Eric Sandeen MIME-Version: 1.0 Subject: [PATCH 1/2] xfs_fsr: extra debugging info List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: xfs-oss Provide 2 new pieces of information when -d is specified to xfs_fsr: * If we needed to grow the forkoffset and couldn't * If we were unable to match the fork offset Signed-off-by: Eric Sandeen --- diff --git a/fsr/xfs_fsr.c b/fsr/xfs_fsr.c index 2db2224..d83bdc9 100644 --- a/fsr/xfs_fsr.c +++ b/fsr/xfs_fsr.c @@ -1021,6 +1021,7 @@ fsr_setup_attr_fork( { struct stat64 tstatbuf; int i; + int diff = 0; int last_forkoff = 0; int no_change_cnt = 0; int ret; @@ -1056,7 +1057,6 @@ fsr_setup_attr_fork( xfs_bstat_t tbstat; xfs_ino_t ino; char name[64]; - int diff; /* * bulkstat the temp inode to see what the forkoff is. Use @@ -1122,6 +1122,8 @@ fsr_setup_attr_fork( * non-contiguous offsets. */ /* XXX: unimplemented! */ + if (dflag) + printf(_("data fork growth unimplemented\n")); goto out; } @@ -1137,6 +1139,10 @@ fsr_setup_attr_fork( out: if (dflag) fsrprintf(_("set temp attr\n")); + /* We failed to resolve the fork difference */ + if (dflag && diff) + fsrprintf(_("failed to match fork offset\n"));; + return 0; } _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs