public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* xfs_check and xfs_repair internal working details
@ 2008-04-21 19:57 Fong Vang
  2008-04-21 22:02 ` David Chinner
  0 siblings, 1 reply; 2+ messages in thread
From: Fong Vang @ 2008-04-21 19:57 UTC (permalink / raw)
  To: xfs

I would like to find how how xfs_check and xfs_repair do their work
internally.  I need to find answers to the following questions:

a) assuming the amount of data is the same for file systems, does it take
longer for xfs_check and xfs_repair to check/repair a file system with a lot
more files than one that has fewer?  Assuming two file systems are 1TB each
completely filled.  One of the file systems is filled with very large files
while the other one is filled with very small files, does it take longer to
check and repair the latter?

b) does xfs_check and repair check only the used blocks or does it check
everything?  I think there's a free list as well so I'm assuming it checks
that list as well.

If anyone can provide more insight into xfs_check and repair, it would be
greatly appreciated.

Thank you.


[[HTML alternate version deleted]]

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

* Re: xfs_check and xfs_repair internal working details
  2008-04-21 19:57 xfs_check and xfs_repair internal working details Fong Vang
@ 2008-04-21 22:02 ` David Chinner
  0 siblings, 0 replies; 2+ messages in thread
From: David Chinner @ 2008-04-21 22:02 UTC (permalink / raw)
  To: Fong Vang; +Cc: xfs

On Mon, Apr 21, 2008 at 12:57:22PM -0700, Fong Vang wrote:
> I would like to find how how xfs_check and xfs_repair do their work
> internally.  I need to find answers to the following questions:

Read the source code - the answers are all there.

> a) assuming the amount of data is the same for file systems, does it take
> longer for xfs_check and xfs_repair to check/repair a file system with a lot
> more files than one that has fewer?  Assuming two file systems are 1TB each
> completely filled.  One of the file systems is filled with very large files
> while the other one is filled with very small files, does it take longer to
> check and repair the latter?

The obvious thing here is to try it and measure it. Or perhaps go download
the slides/video/audio from this talk:

	http://linux.conf.au/programme/detail?TalkID=135

The slides:

	http://mirror.linux.org.au/pub/linux.conf.au/2008/slides/135-fixing_xfs_faster.pdf

And that should answer your question.

> b) does xfs_check and repair check only the used blocks or does it check
> everything?  I think there's a free list as well so I'm assuming it checks
> that list as well.

Pretty much everything is checked and/or repaired. If it is not, then that's
a bug.

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group

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

end of thread, other threads:[~2008-04-21 22:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-21 19:57 xfs_check and xfs_repair internal working details Fong Vang
2008-04-21 22:02 ` David Chinner

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