| To: | xfs-oss <xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] xfs_db: add header to freesp -d output |
| From: | Eric Sandeen <sandeen@xxxxxxxxxx> |
| Date: | Wed, 21 Aug 2013 17:40:47 -0500 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 |
Today, xfs_db's freesp -d command dumps out a bunch of numbers:
# xfs_db -c "freesp -d" /dev/sdb1
0 4 1
0 5 1
0 6 1
0 7 1
0 12 174772
...
which are not useful to the non-code-reading user.
Add some headers:
# xfs_db -c "freesp -d" /dev/sdb1
agno agbno len
0 4 1
0 5 1
0 6 1
0 7 1
0 12 174772
...
so there's at least some context.
Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---
p.s. - If folks want different strings, I'm game.
diff --git a/db/freesp.c b/db/freesp.c
index 6f69eba..361fa96 100644
--- a/db/freesp.c
+++ b/db/freesp.c
@@ -96,6 +96,10 @@ freesp_f(
if (!init(argc, argv))
return 0;
+
+ if (dumpflag)
+ dbprintf("%8s %8s %8s\n", "agno", "agbno", "len");
+
for (agno = 0; agno < mp->m_sb.sb_agcount; agno++) {
if (inaglist(agno))
scan_ag(agno);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 1/3] quota: Add a new quotactl command Q_XGETQSTATV, Chandra Seetharaman |
|---|---|
| Next by Date: | Re: [PATCH 51/50] xfs: add xfs sb v4 support for dirent filetype field, Dave Chinner |
| Previous by Thread: | [XFS updates] XFS development tree branch, for-next, updated. for-linus-v3.11-rc1-2-12205-ged56f34, xfs |
| Next by Thread: | Re: [PATCH] xfs_db: add header to freesp -d output, Geoffrey Wehrman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |