This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cluster/gfs2/edit hexedit.c hexedit.h savemeta.c


CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	rpeterso@sourceware.org	2007-10-18 19:56:41

Modified files:
	gfs2/edit      : hexedit.c hexedit.h savemeta.c 

Log message:
	While working on bz #291551, I discovered that gfs2_edit savemeta
	only saved true metadata, but we need more than that.  There are
	lots of blocks that are considered "data" (not metadata) by the
	RG bitmaps that we still need to save.  These include:
	1. All the system journals (which may contain both metadata and
	user data, disguised as data blocks within the journal).  We
	need to pick out the parts that do not contain user data.
	2. The system files, such as statfs, inum, quota file, etc.
	These may be helpful in debugging user problems.
	3. Indirect block pointers, which may be counted as data for
	accounting purposes, even though it's metadata.
	4. Directory leaf blocks.
	
	This change allows gfs2_edit to save and restore these blocks properly,
	and also to print out a breakdown of a saved metadata file:
	gfs2_edit printsavedmeta /tmp/gfsmeta
	
	It also improves on the information given when a journal is dumped.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/edit/hexedit.c.diff?cvsroot=cluster&r1=1.21&r2=1.22
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/edit/hexedit.h.diff?cvsroot=cluster&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/edit/savemeta.c.diff?cvsroot=cluster&r1=1.3&r2=1.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]