From: rpeterso@sourceware.org <rpeterso@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/gfs2/edit gfs2hex.c hexedit.c
Date: 12 Jun 2006 20:43:34 -0000 [thread overview]
Message-ID: <20060612204334.20370.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rpeterso at sourceware.org 2006-06-12 20:43:33
Modified files:
gfs2/edit : gfs2hex.c hexedit.c
Log message:
Fixed a bug when printing stuffed directories. For example,
gfs2_edit -p masterdir was not working properly.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/edit/gfs2hex.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/edit/hexedit.c.diff?cvsroot=cluster&r1=1.3&r2=1.4
--- cluster/gfs2/edit/gfs2hex.c 2006/06/06 14:35:32 1.2
+++ cluster/gfs2/edit/gfs2hex.c 2006/06/12 20:43:33 1.3
@@ -220,12 +220,11 @@
!(di->di_flags & GFS2_DIF_EXHASH)) {
int skip = 0;
/* Directory Entries: */
- indirect[indirect_blocks].dirents = 0;
+ indirect[0].dirents = 0;
for (x = sizeof(struct gfs2_dinode); x < bufsize; x += skip) {
- skip = indirect_dirent(&indirect[indirect_blocks], buf + x, 0);
+ skip = indirect_dirent(&indirect[0], buf + x, indirect[0].dirents);
if (skip <= 0)
break;
- indirect_blocks++;
}
}
else if (isdir &&
--- cluster/gfs2/edit/hexedit.c 2006/06/06 14:35:32 1.3
+++ cluster/gfs2/edit/hexedit.c 2006/06/12 20:43:33 1.4
@@ -669,7 +669,11 @@
total_dirents++;
if (indirect[e].dirents > 1) {
eol(5);
- print_gfs2("%d. (%d). 0x%llx: ", total_dirents, d + 1,
+ print_gfs2("%d. (%d). %lld (0x%llx) / %lld (0x%llx): ",
+ total_dirents, d + 1,
+ indirect[e].dirent[d].dirent.de_inum.no_formal_ino,
+ indirect[e].dirent[d].dirent.de_inum.no_formal_ino,
+ indirect[e].dirent[d].block,
indirect[e].dirent[d].block);
}
switch(indirect[e].dirent[d].dirent.de_type) {
next reply other threads:[~2006-06-12 20:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-12 20:43 rpeterso [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-08-09 20:22 [Cluster-devel] cluster/gfs2/edit gfs2hex.c hexedit.c rpeterso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060612204334.20370.qmail@sourceware.org \
--to=rpeterso@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.