| To: | xfs-oss <xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 1/2] xfs_fsr: extra debugging info |
| From: | Eric Sandeen <sandeen@xxxxxxxxxx> |
| Date: | Fri, 30 Mar 2012 09:54:49 -0500 |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 |
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 <sandeen@xxxxxxxxxx>
---
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;
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 5/7] xfs: honor the O_SYNC flag for aysnchronous direct I/O requests, Jeff Moyer |
|---|---|
| Next by Date: | [PATCH 2/2] xfs_fsr: create extent-based attr to grow forkoff, Eric Sandeen |
| Previous by Thread: | [PATCH 1/2] xfs: merge xfs_itobp into xfs_imap_to_bp, Christoph Hellwig |
| Next by Thread: | [PATCH 2/2] xfs_fsr: create extent-based attr to grow forkoff, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |