Google Groups Home
Help | Sign in
R: [ext3grep] Re: s_journal_dev == 0
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
pepposole@virgilio.it  
View profile
 More options May 12, 2:47 am
From: "peppos...@virgilio.it" <peppos...@virgilio.it>
Date: Mon, 12 May 2008 07:47:54 +0100 (GMT+01:00)
Local: Mon, May 12 2008 2:47 am
Subject: R: [ext3grep] Re: s_journal_dev == 0
Thank you so much to everyone....

Carlo, i'm trying to understand how
ext3 works before try to modify source code...

Thanks

Davide

----
Messaggio originale----
Da: ca...@alinoe.com
Data: 11-mag-2008 18.59
A:
<ext3grep@googlegroups.com>
Ogg: [ext3grep] Re: s_journal_dev == 0

On
Sun, May 11, 2008 at 10:10:36AM -0400, Theodore Tso wrote:

> In any

case, if ext3grep doesn't want to support external journals, it
> can

ignore s_journal_dev and s_journal_uuid.  The only field it needs
> to

pay attention to is s_journal_inum, and to have it give a message
> of

recorded sorrow ("very sorry, we don't support external journals")
> if

s_journal_inum is zero.

Thanks... I went ahead and wrote a minimal
patch to use s_journal_inum
instead of s_journal_dev in order to
correct this error of me.

It is already committed to SVN (rev 95)

Index: ext3grep.cc
===================================================================
---
ext3grep.cc     (revision 94)
+++ ext3grep.cc (working copy)
@@ -1377,7
+1377,7 @@
   feature_incompat_filetype = super_block.
s_feature_incompat & EXT3_FEATURE_INCOMPAT_FILETYPE;

   // Do we have
a journal?
-  if (super_block.s_journal_dev == 0)
+  if (super_block.
s_journal_inum != 0)
   {
     InodePointer journal_inode = get_inode
(super_block.s_journal_inum);
     int first_block = journal_inode-

>block()[0];

@@ -1401,10 +1401,10 @@
   }

   // Check commandline
options against superblock contents.
-  if (commandline_journal &&
super_block.s_journal_dev)
+  if (commandline_journal && !super_block.
s_journal_inum)
   {
     std::cout << std::flush;
-    std::cerr <<
progname << ": --journal: The journal appears to be external." << std::
endl;
+    std::cerr << progname << ": --journal: The journal is on an
external device. Please add support for it." << std::endl;
     exit
(EXIT_FAILURE);
   }
   if (commandline_inode != -1)
@@ -4219,7 +4219,7
@@

 static bool is_journal(int blocknr)
 {
-  if (super_block.
s_journal_dev)
+  if (!super_block.s_journal_inum)
   {
     ASSERT(!
commandline_journal);
     return false;

--
Carlo Wood <carlo@alinoe.
com>

--~--~---------~--~----~------------~-------~--~----~
To post to
this group, send email to ext3grep@googlegroups.com
To unsubscribe from
this group, send email to ext3grep-unsubscribe@googlegroups.com
For
more options, visit this group at http://groups.google.
com/group/ext3grep?hl=en
-~----------~----~----~----~------~----~------
~--~---


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google