public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* XFS journal documentation?
@ 2013-12-03 20:55 杨苏立 Yang Su Li
  2013-12-03 21:03 ` Ben Myers
  2013-12-03 21:18 ` Dave Chinner
  0 siblings, 2 replies; 3+ messages in thread
From: 杨苏立 Yang Su Li @ 2013-12-03 20:55 UTC (permalink / raw)
  To: xfs


[-- Attachment #1.1: Type: text/plain, Size: 1231 bytes --]

Hi,

I am trying to understand XFS a little bit better, especially its journal
process. Unfortunately, I am having trouble find documentation in this
regard.

The general XFS documentation (
http://xfs.org/docs/xfsdocs-xml-dev/XFS_Filesystem_Structure//tmp/en-US/html/index.html)
has been quite helpful, but it doesn't describe the journal part of XFS. I
also found some kernel documentation ablout XFS's delayed logging (
https://www.kernel.org/doc/Documentation/filesystems/xfs-delayed-logging-design.txt),
which talks about the journal process a bit. But it seems to assume a lot
of prior knowledge of how the original XFS logging works to completely
understand what the author is talking about; and the term it uses (like
checkpoint) seem to have complete different meaning from, say, ext4.

So I am wondering, is there some kind of (any kind of ) documentation on
XFS journaling? Ideally it will cover the major data structure and major
code flow, but even a very high level, incomplete overview would be better
than what I have now, which is essentially nothing. And if so, where can I
find it?

Thanks a lot!

Suli

-- 
Suli Yang

Department of Physics
University of Wisconsin Madison

4257 Chamberlin Hall
Madison WI 53703

[-- Attachment #1.2: Type: text/html, Size: 1653 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: XFS journal documentation?
  2013-12-03 20:55 XFS journal documentation? 杨苏立 Yang Su Li
@ 2013-12-03 21:03 ` Ben Myers
  2013-12-03 21:18 ` Dave Chinner
  1 sibling, 0 replies; 3+ messages in thread
From: Ben Myers @ 2013-12-03 21:03 UTC (permalink / raw)
  To: 杨苏立 Yang Su Li; +Cc: xfs

Hi,

On Tue, Dec 03, 2013 at 02:55:23PM -0600, 杨苏立 Yang Su Li wrote:
> I am trying to understand XFS a little bit better, especially its journal
> process. Unfortunately, I am having trouble find documentation in this
> regard.
> 
> The general XFS documentation (
> http://xfs.org/docs/xfsdocs-xml-dev/XFS_Filesystem_Structure//tmp/en-US/html/index.html)
> has been quite helpful, but it doesn't describe the journal part of XFS. I
> also found some kernel documentation ablout XFS's delayed logging (
> https://www.kernel.org/doc/Documentation/filesystems/xfs-delayed-logging-design.txt),
> which talks about the journal process a bit. But it seems to assume a lot
> of prior knowledge of how the original XFS logging works to completely
> understand what the author is talking about; and the term it uses (like
> checkpoint) seem to have complete different meaning from, say, ext4.
> 
> So I am wondering, is there some kind of (any kind of ) documentation on
> XFS journaling? Ideally it will cover the major data structure and major
> code flow, but even a very high level, incomplete overview would be better
> than what I have now, which is essentially nothing. And if so, where can I
> find it?

The original design docs are posted here:
http://oss.sgi.com/projects/xfs/design_docs/xfsdocs93_pdf/

log_mgr.pdf might be what you need.

Regards,
	Ben

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: XFS journal documentation?
  2013-12-03 20:55 XFS journal documentation? 杨苏立 Yang Su Li
  2013-12-03 21:03 ` Ben Myers
@ 2013-12-03 21:18 ` Dave Chinner
  1 sibling, 0 replies; 3+ messages in thread
From: Dave Chinner @ 2013-12-03 21:18 UTC (permalink / raw)
  To: 杨苏立 Yang Su Li; +Cc: xfs

On Tue, Dec 03, 2013 at 02:55:23PM -0600, 杨苏立 Yang Su Li wrote:
> Hi,
> 
> I am trying to understand XFS a little bit better, especially its journal
> process. Unfortunately, I am having trouble find documentation in this
> regard.
> 
> The general XFS documentation (
> http://xfs.org/docs/xfsdocs-xml-dev/XFS_Filesystem_Structure//tmp/en-US/html/index.html)
> has been quite helpful, but it doesn't describe the journal part of XFS. I
> also found some kernel documentation ablout XFS's delayed logging (
> https://www.kernel.org/doc/Documentation/filesystems/xfs-delayed-logging-design.txt),
> which talks about the journal process a bit. But it seems to assume a lot
> of prior knowledge of how the original XFS logging works to completely
> understand what the author is talking about; and the term it uses (like
> checkpoint) seem to have complete different meaning from, say, ext4.

Yes, I assumed that the reader has some familiarity with XFS
journalling - it's documentation for XFS developers, not users...

> So I am wondering, is there some kind of (any kind of ) documentation on
> XFS journaling? Ideally it will cover the major data structure and major
> code flow, but even a very high level, incomplete overview would be better
> than what I have now, which is essentially nothing. And if so, where can I
> find it?

The code is your only really option. go look at
fs/xfs/xfs_log_format.h where all the structures that are formatted
into the log are defined, and xfs_log_recovery.c for how it is all
parsed....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-03 21:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-03 20:55 XFS journal documentation? 杨苏立 Yang Su Li
2013-12-03 21:03 ` Ben Myers
2013-12-03 21:18 ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox