linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vyacheslav Dubeyko <slava@dubeyko.com>
To: htl10@users.sourceforge.net
Cc: Sergei Antonov <saproj@gmail.com>,
	Linux FS devel list <linux-fsdevel@vger.kernel.org>,
	Al Viro <viro@zeniv.linux.org.uk>,
	ChristophHellwig <hch@infradead.org>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH v3 01/15] hfsplus: add necessary declarations for journal replay
Date: Fri, 14 Feb 2014 11:22:18 +0400	[thread overview]
Message-ID: <1392362538.9253.13.camel@ubuntu> (raw)
In-Reply-To: <1392322044.28154.YahooMailBasic@web172303.mail.ir2.yahoo.com>

On Thu, 2014-02-13 at 20:07 +0000, Hin-Tak Leung wrote:
>  
>  Hi all,
> 
> I Have mentioned earlier that I have the powerpc version of Darwin 8 (equivalent
> to Mac OS X 10.4) running inside pearpc, and have other uses of it and therefore have given it
> some use. I can look into this - and probably will, when I try v3 of  Vyacheslav's patch set.
> 

So, had you any error messages when you tried patchset v3? If you really
have HFS+ volume with big-endian structures in journal then failure with
journal replay or volume corruption is inevitable.

> Darwin 8 does certainly noticed it was uncleanly shut down and display a message about
> journal replay the next time it starts; also it seems to notice the journal had been played
> with by somebody else - there is a message about invalid/invalidating journal entries
> when I ran fsck.hfsplus manually between unclean shut down and restart.
> (That's assuming  fsck.hfsplus can cope with disk images written by the powerpc
> version of darwin 8 correctly, one way or another - I should hope so, as it is
> not unthinkable for a mac user to own both kind of macs).
> 
> So it appears that the journal is not emptied by fsck.hfsplus, but simply marked done
> and no longer relevant, and the darwin kernel code notices that.
> 

As far as I can judge, fsck tool doesn't replay journal, usually. It
need to take into account presence of journal with transactions. But
namely file system driver is responsible for journal replay. And, as I
remember correctly, fsck.hfsplus claims about presence of journal and it
suggests to use force option for volume checking in such case.

Thanks,
Vyacheslav Dubeyko.



  reply	other threads:[~2014-02-14  7:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-12 14:25 [PATCH v3 01/15] hfsplus: add necessary declarations for journal replay Vyacheslav Dubeyko
2014-02-12 16:15 ` Sergei Antonov
2014-02-12 16:38   ` Vyacheslav Dubeyko
2014-02-12 16:50     ` Sergei Antonov
2014-02-12 17:59       ` Vyacheslav Dubeyko
2014-02-13 10:41         ` Sergei Antonov
2014-02-13 10:56           ` Vyacheslav Dubeyko
2014-02-13 20:07         ` Hin-Tak Leung
2014-02-14  7:22           ` Vyacheslav Dubeyko [this message]
2014-02-15  4:04             ` Hin-Tak Leung
2014-02-15 14:27               ` Vyacheslav Dubeyko
  -- strict thread matches above, loose matches on Subject: below --
2014-02-15 16:12 Hin-Tak Leung

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=1392362538.9253.13.camel@ubuntu \
    --to=slava@dubeyko.com \
    --cc=akpm@linux-foundation.org \
    --cc=hch@infradead.org \
    --cc=htl10@users.sourceforge.net \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=saproj@gmail.com \
    --cc=viro@zeniv.linux.org.uk \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).