[Ocfs2-tools-commits] branch, master, updated. ocfs2-tools-1.4.0-358-g2986ad7
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Fri Jul 31 14:28:53 PDT 2009
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Tools to manage the ocfs2 filesystem.".
The branch, master has been updated
via 2986ad79686a605fa37bbfe27bd5fb6e4fd11fdf (commit)
via 5d9dc560461a2d10018a1999dfe5843a4dcfb9b5 (commit)
via b0c848aaabe5bfa6d13013f25c8a82ae01ea20b8 (commit)
via 5528632224c23b99d30357210cb42aa08b06631b (commit)
via 36a83447584539634ab2c3e327755b12eefb4abf (commit)
via b16a6115e51b67ffc51f1d55fad9c66094a99361 (commit)
via 0dd24d79b062a2582c55df48d5c4321875584079 (commit)
via 012ea45954bc292d7a423add1a611a2e78d9f87a (commit)
via cda9b716434417d2b416daeef7157ec5749b94e1 (commit)
from c9c737fb7a9cda87d718a3d61223c8937acf3659 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2986ad79686a605fa37bbfe27bd5fb6e4fd11fdf
Author: Joel Becker <joel.becker at oracle.com>
Date: Sun Jul 19 01:20:18 2009 -0700
fsck.ocfs2: Implement Pass 1D resolution of multiply-claimed clusters.
Inodes that share multiply-claimed clusters can be duplicated or cloned.
By copying the inode data off to other clusters, this removes the
multiple claims on the original clusters. We then remove the cloned
inode, which points to the originally shared clusters. We use
ocfs2_truncate_full() to make sure we don't free our multiply-claimed
clusters until they're really unused.
We also implement deleting inodes that share multiply claimed clusters,
because it can use the same ocfs2_truncate_full() code. Here we also
mark the inode as unused. Pass 2 will let the user remove the directory
entry (behavior copied from e2fsck).
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Tao Ma <tao.ma at oracle.com>
commit 5d9dc560461a2d10018a1999dfe5843a4dcfb9b5
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 22 17:15:50 2009 -0700
libocfs2: Allow callers to specify the free_clusters routine in ocfs2_truncate
o2fsck wants to call ocfs2_truncate but handle freeing the clusters
itself. Rather than reimplementing the truncate code in fsck, we create
ocfs2_truncate_full() that can take a free_clusters() routine.
ocfs2_truncate() just calls ocfs2_truncate_full() with a NULL routine
pointer.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Tao Ma <tao.ma at oracle.com>
commit b0c848aaabe5bfa6d13013f25c8a82ae01ea20b8
Author: Joel Becker <joel.becker at oracle.com>
Date: Sat Jun 13 19:34:47 2009 -0700
fsck.ocfs2: Implement Pass 1D's prompt for dup fixes.
For each inode claiming shared clusters, ask about cloning or deleting
them.
Chain allocators are skipped, as they are not safe to clone or delete.
They are very location specific. If they are sharing with another chain
allocator, pass0 should have handled it. If they are sharing with a
regular inode, that inode can be cloned or deleted.
The other system files can be cloned but not deleted.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Tao Ma <tao.ma at oracle.com>
commit 5528632224c23b99d30357210cb42aa08b06631b
Author: Joel Becker <joel.becker at oracle.com>
Date: Sat Jun 13 17:04:54 2009 -0700
fsck.ocfs2: Implement the reporting portion of pass 1D.
If a cluster has more than one owner, print out the files that own
it. This is information prior to correction of the problem.
How can a cluster we determined to be multiply-claimed have only one
owner? If reconciling a different cluster pass has removed another
owner, this one may be left with only one.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Tao Ma <tao.ma at oracle.com>
commit 36a83447584539634ab2c3e327755b12eefb4abf
Author: Joel Becker <joel.becker at oracle.com>
Date: Thu Jun 11 21:22:56 2009 -0700
fsck.ocfs2: Implement Pass 1C, scanning for inode names.
Pass 1C scans the directory tree to provide names for any inode owning
multiply-claimed clusters. This allows Pass 1D to print readable names
when asking questions.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Tao Ma <tao.ma at oracle.com>
commit b16a6115e51b67ffc51f1d55fad9c66094a99361
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jun 9 15:02:56 2009 -0700
fsck.ocfs2: Implement Pass 1B to find multiply-claimed clusters.
Pass 1B builds up data structures describing every cluster claimed by
multiple objects. It knows what objects own the cluster, and it knows
what objects have multiply claimed clusters. This can include data,
chain groups, and extended attributes.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Tao Ma <tao.ma at oracle.com>
commit 0dd24d79b062a2582c55df48d5c4321875584079
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jun 9 10:18:13 2009 -0700
fsck.ocfs2: Add o2fsck_abort()
When a void function wants to exit o2fsck, it can't just exit(1). o2fsck
may have cluster state and locks that need cleaning. o2fsck_abort()
will send SIGTERM to fsck, thus triggering a clean abort.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Tao Ma <tao.ma at oracle.com>
commit 012ea45954bc292d7a423add1a611a2e78d9f87a
Author: Joel Becker <joel.becker at oracle.com>
Date: Mon Jun 8 16:55:03 2009 -0700
fsck.ocfs2: Allocate and use duplicate clusters bitmap.
This bitmap keeps track of any clusters claimed by multiple filesystem
objects. We will correct the multiply-claimed clusters in latter
changes.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Tao Ma <tao.ma at oracle.com>
commit cda9b716434417d2b416daeef7157ec5749b94e1
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jun 9 11:21:59 2009 -0700
fsck.ocfs2: Remove the unused ost_bad_inodes bitmap.
We allocate a bitmap of bad inodes. We test it in pass 2. But we
never, ever set a bit in it.
It looks to be cloned from e2fsck. In e2fsck, they don't fix invalid
inode fields in pass 1. They just mark the inode in the bad map.
Later, in pass2, they test the bad map and fix the fields there. The
advantage is that they can print a pathname.
That's a major rework for o2fsck, so we're just going to remove the
unused bad map for now. If someone wants to add it back later, they
can.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Tao Ma <tao.ma at oracle.com>
-----------------------------------------------------------------------
Summary of changes:
fsck.ocfs2/Makefile | 2 +
fsck.ocfs2/fsck.c | 15 +-
fsck.ocfs2/fsck.ocfs2.checks.8.in | 24 +
fsck.ocfs2/include/fsck.h | 6 +-
.../journal.h => fsck.ocfs2/include/pass1b.h | 19 +-
fsck.ocfs2/include/util.h | 3 +
fsck.ocfs2/pass1.c | 8 +
fsck.ocfs2/pass1b.c | 1409 ++++++++++++++++++++
fsck.ocfs2/pass2.c | 8 -
fsck.ocfs2/util.c | 56 +-
include/ocfs2/ocfs2.h | 7 +
libocfs2/truncate.c | 112 +-
12 files changed, 1585 insertions(+), 84 deletions(-)
copy fswreck/include/journal.h => fsck.ocfs2/include/pass1b.h (60%)
create mode 100644 fsck.ocfs2/pass1b.c
hooks/post-receive
--
Tools to manage the ocfs2 filesystem.
More information about the Ocfs2-tools-commits
mailing list