[Ocfs2-tools-commits] branch, master, updated. ocfs2-tools-1.4.0-168-g75c0983
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Fri Aug 22 15:21:06 PDT 2008
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 75c09837db64c1ce82708074ecf6eabf976819f9 (commit)
via b6a29a0af6010ace160b3c44c428be956cbec5fa (commit)
via a5f502c84778a666a46143dbcc5e9795f4119f3e (commit)
via 2afaff66e42adf24c943967bb0e7b34683114aff (commit)
via 6b59629b54ca22aa3b1cf20a186c6218ff14b6fe (commit)
via 90db73d85a6d9bb121d1ac7717e396f7716cfda1 (commit)
via 8807154d4e3290e4b759ff0c61dc4f8d2ea89b48 (commit)
via 211a14a6bf651c7d86d451edfda8fb09a605ae9f (commit)
via 1e9817d1308e9312b50eb7b48b6348872e1eb134 (commit)
via 25afc792dc9cd73ede91e0777525ffce91411609 (commit)
via b0af532e65b375dcf2c974f58b96278c5a5d4e3c (commit)
via d017780dd117c98f74539a53a813900e13176ba5 (commit)
via 17ebff26a145f9039efead0c19b78fa06000a8a3 (commit)
via de7a3574ab782c0e1d3a342e8288e5baa4afabe9 (commit)
via 68509af4aa0e65bfe9e6d787570c9220e76aa08e (commit)
via dab9dd9d98754577782bce18f5abd1ab7bc4b639 (commit)
via 249273bd35d6fb1e39ae03f65f174428975b6e5c (commit)
via 9999ad658820e10e1ee0b3f3b26667c4d48853a2 (commit)
via eed466d81079d5c7d27ba385ed1818ef0cbf6467 (commit)
via 909a1286f33670bfb5dea4bd1d79972384bac6e2 (commit)
via 2d61f8e11ea9d29700cd2017a3c1e4565914c957 (commit)
via a293662690d613e6d3846444a24c9ee028b3d8ad (commit)
via 5cd7df8650a8ac519467e74cf7c454513b2de472 (commit)
via 8590a4fbd43f81c166da812ea830fb9500e4beb8 (commit)
via 42337eac874f6bbcddce25bdbc5ff39127a53613 (commit)
via 0e0e834532d7f3c2a2d4d87c6eafbcfd37dbd30a (commit)
via 2025714394ad7842bb64737d3495a868bd18e78b (commit)
from 94b513bf4124dfcfeebe5c98a01507554e051c6e (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 75c09837db64c1ce82708074ecf6eabf976819f9
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Aug 19 09:39:50 2008 -0700
tunefs.ocfs2: Give a nice error when an online operation isn't supported.
In the old code, we would give INTERNAL_FAILURE if an online ioctl(2)
wasn't found. That's not nice, as this version of tunefs should work
against pre-1.4 kernel drivers. Instead, we'll just print "this
operation is not available in this kernel" or something like it (see the
change).
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit b6a29a0af6010ace160b3c44c428be956cbec5fa
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Aug 19 15:05:20 2008 -0700
tunefs.ocfs2: The resize op wasn't allocing resize_specs properly.
This was a simple bug. I wasn't allocing enough space for resize_specs,
and ppc glibc caught me.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit a5f502c84778a666a46143dbcc5e9795f4119f3e
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Aug 13 14:46:19 2008 -0700
tunefs rework: Remove the old sources
This commit removes the old tunefs sources and links the ocfs2ne binary
to the tunefs.ocfs2 name. It will now install the new tunefs.ocfs2.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 2afaff66e42adf24c943967bb0e7b34683114aff
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 18:17:14 2008 -0700
tunefs rework: Link ocfs2ne into the build.
ocfs2ne is now built alongside tunefs.ocfs2. They should do identical
things.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 6b59629b54ca22aa3b1cf20a186c6218ff14b6fe
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 18:14:58 2008 -0700
tunefs rework: Add ocfs2ne.c
This is the master ocfs2ne program which will become tunefs.ocfs2. It
handles processing all arguments and locking down the filesystem before
calling the selected operations in turn.
This is the culmination of a rework of tunefs.ocfs2. There were these
major goals:
1) All operations would be independent. They do not need to know what
else is running. They live in a separate C file and can be tested by
themselves.
2) All operation can run in the same invocation of tunefs. The master
program makes sure the appropriate locks are taken and that each
operation is given a clean filesystem to work with.
3) The actual working code should move over with only small changes.
The code that performs an operation is largely unchanged. Output
functions are different, and a couple common bits of code moved into
libocfs2ne.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 90db73d85a6d9bb121d1ac7717e396f7716cfda1
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 18:13:14 2008 -0700
tunefs rework: Add the libocfs2ne sources.
The libocfs2ne library contains the routines shared by all ocfs2ne
methods and programs. This includes opening and closing the filesystem,
locking the cluster, managing online operations, and interacting with
the user.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 8807154d4e3290e4b759ff0c61dc4f8d2ea89b48
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 18:10:59 2008 -0700
tunefs rework: Add op_features.c
The features operation manages all of the features provided by the
feature_*.c files. It parses the feature string and runs each feature
method in turn.
This is the tunefs option '--fs-features'.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 211a14a6bf651c7d86d451edfda8fb09a605ae9f
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Aug 13 15:49:28 2008 -0700
tunefs rework: Add feature_inline_data.c
Enable and disable the inline data feature.
This is the 'inline-data' key to the tunefs option '--fs-features'.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 1e9817d1308e9312b50eb7b48b6348872e1eb134
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 18:08:25 2008 -0700
tunefs rework: Add feature_sparse_files.c
Enable and disable the sparse file feature.
This is the 'sparse' key to the tunefs option '--fs-features'.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 25afc792dc9cd73ede91e0777525ffce91411609
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 18:07:39 2008 -0700
tunefs rework: Add feature_unwritten_extents.c
Enables and disables the unwritten extents feature.
This is the 'unwritten' key to the tunefs option '--fs-features'.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit b0af532e65b375dcf2c974f58b96278c5a5d4e3c
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 18:05:55 2008 -0700
tunefs rework: Add feature_backup_super.c
Enable and disable the backup superblock feature.
This is the 'backup-super' key to the tunefs option '--fs-features', as
well as the tunefs option '--backup-super'.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit d017780dd117c98f74539a53a813900e13176ba5
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 18:04:24 2008 -0700
tunefs rework: Add feature_local.c
Enables and disables the local filesystem feature. This transfers an
ocfs2 filesystem between a single-node local filesystem and a
cluster-aware one.
This is the 'local' key to the tunefs option '--fs-features', as well as
the tunefs option '-M'.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 17ebff26a145f9039efead0c19b78fa06000a8a3
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 18:03:05 2008 -0700
tunefs rework: Add feature_extended_slotmap.c
Enables and disables the extended slotmap feature.
This is the 'extended-slotmap' key to the tunefs option '--fs-features'.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit de7a3574ab782c0e1d3a342e8288e5baa4afabe9
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 17:59:38 2008 -0700
tunefs rework: Add op_resize_volume.c
The resize_volume operation grows an ocfs2 filesystem. If no size is
specified, it will grow the filesystem to the limits of the LUN. This
operation can be performed online.
This is the tunefs option '-S'.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 68509af4aa0e65bfe9e6d787570c9220e76aa08e
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 17:57:47 2008 -0700
tunefs rework: Add op_set_slot_count.c
The set_slot_count operation changes the number of node slots on an
ocfs2 filesystem. Each slot has a journal and other associated files.
The number of slots is the number of nodes that can share the
filesystem. All filesystems must have at least one slot.
This is the tunefs option '-N'.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit dab9dd9d98754577782bce18f5abd1ab7bc4b639
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 17:56:39 2008 -0700
tunefs rework: Add op_list_sparse_files.c
The list_sparse_files operation traverses all the files in an ocfs2
filesystem, printing information about the files with sparse allocation.
This is the tunefs option '--list-sparse'.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 249273bd35d6fb1e39ae03f65f174428975b6e5c
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 17:54:30 2008 -0700
tunefs rework: Add op_set_journal_size.c
The set_journal_size operation adjusts the size of the journals on the
ocfs2 filesystem. They may grow or shrink as long as they fit and are
greater than or equal to 1024 filesystem blocks.
This is the 'size=' key to the tunefs option '-J'.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 9999ad658820e10e1ee0b3f3b26667c4d48853a2
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 17:53:37 2008 -0700
tunefs rework: Add op_query.c
The query operation allows users to print information about the
ocfs2 filesystem with a printf-style format string.
This is the tunefs operation '-Q'.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit eed466d81079d5c7d27ba385ed1818ef0cbf6467
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 17:52:51 2008 -0700
tunefs rework: Add op_reset_uuid.c
The reset_uuid operation generates a new UUID and writes it to the ocfs2
superblock.
This is the tunefs option '-U'.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 909a1286f33670bfb5dea4bd1d79972384bac6e2
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 17:51:36 2008 -0700
tunefs rework: Add op_update_cluster_stack.c
The update_cluster_stack operation modifies the ocfs2 superblock with
the current clustering configuration.
This is the tunefs option '--update-cluster-stack'.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 2d61f8e11ea9d29700cd2017a3c1e4565914c957
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 17:50:47 2008 -0700
tunefs rework: Add op_set_label.c
The set_label operation changes the volume label on an ocfs2 filesystem.
This is the tunefs option '-L'.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit a293662690d613e6d3846444a24c9ee028b3d8ad
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 25 17:49:51 2008 -0700
tunefs rework: Introduce the internal error codes for libocfs2ne.
Shared code for tunefs methods will live in a library. To make error
reporting consistent, we use an errcode_t for the library. This is the
error table.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 5cd7df8650a8ac519467e74cf7c454513b2de472
Author: Joel Becker <joel.becker at oracle.com>
Date: Thu Aug 7 13:13:46 2008 -0700
libocfs2: Fill out the ocfs2_XXX_to_YYY() conversion APIs.
ocfs2 often needs to convert sizes from clusters to blocks to bytes. We
only provided a few of these functions in ocfs2.h. This adds the
complete set:
ocfs2_clusters_to_blocks()
ocfs2_blocks_to_clusters()
ocfs2_clusters_to_bytes()
ocfs2_bytes_to_clusters()
ocfs2_blocks_to_bytes()
ocfs2_bytes_to_blocks()
ocfs2_clusters_in_blocks()
ocfs2_clusters_in_bytes()
ocfs2_blocks_in_bytes()
The container functions (ocfs2_XXX_in_YYY()) only go one direction; the
other direction is answered correctly by ocfs2_YYY_to_XXX().
While we're here, we standardize the handling of value overflows. Some
of the existing functions would cast an uint64_t to uint32_t without
checking. The caller just gets the lower 32bits, regardless of how they
wrapped. All functions now return UINTxx_MAX on overflow. This is not
a value that can be checked - UINTxx_MAX could have been the exact
answer - but it is a safer return than the lower 32bits. Users of this
function should prevent overflow by checking bounds before calling the
conversion.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 8590a4fbd43f81c166da812ea830fb9500e4beb8
Author: Joel Becker <joel.becker at oracle.com>
Date: Mon Jul 21 20:51:12 2008 -0700
libocfs2: ocfs2_parse_feature() checks for conflicts too.
We don't allow --fs-features options to conflict. That is,
"sparse,nosparse" is illegal, whether explicit or from a dependency.
Rather than have subprograms check this themselves, do it in
feature_string.c
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 42337eac874f6bbcddce25bdbc5ff39127a53613
Author: Joel Becker <joel.becker at oracle.com>
Date: Thu Jul 24 15:39:02 2008 -0700
libocfs2: Move printable feature flags to feature_string.c
We currently have pretty-print strings for each feature flag in
ocfs2/ocfs2.h It's just a bunch of defines, but it was good to have the
strings defined in one place.
However, we weren't even using them correctly. tunefs.ocfs2/query.c
used them, but debugfs.ocfs2/utils.c had its own strings. They didn't
even match.
In the end, we have a place for this sort of thing:
libocfs2/feature_string.c. This patch adds the entire feature<->string
mapping, including tunefs INPROG flags. The functions
ocfs2_snprint_feature_flags() and ocfs2_snprint_tunefs_flags() have the
capability of using the strings to print out a feature set.
The strings are removed from ocfs2/ocfs2.h. tunefs.ocfs2/query.c and
debugfs.ocfs2/utils.c are changed to use the ocfs2_snprint_*_flags()
API.
As a bonus, tunefs.ocfs2 no longer needs glib.
While were there, a bug in tunefs.ocfs2/query.c is fixed. The print
format wasn't properly terminated, so we switch to ocfs2_malloc0() to
ensure this.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Mark Fasheh <mfasheh at suse.com>
commit 0e0e834532d7f3c2a2d4d87c6eafbcfd37dbd30a
Author: Joel Becker <joel.becker at oracle.com>
Date: Mon Jul 21 19:45:46 2008 -0700
libocfs2: Add ocfs2_feature_foreach()
The ocfs2_parse_feature() function will include dependent features when
used. For example, if you ask it to parse "unwritten", it will return a
feature set that includes both unwritten extents and sparse files,
because unwritten extents depends on sparse files. The same is true in
reverse. If you ask it "nosparse", it will return a reverse set that
includes sparse files and every thing that depends on it.
However, the caller has no way of knowing which feature needs to be
added or removed first. A naively ordered program might try to add
unwritten extents before sparse files. That will fail.
We introduce ocfs2_feature_foreach() and
ocfs2_feature_reverse_foreach(). These functions take a feature set and
iterate over it, calling a supplied callback once per feature. The
former function does it in "set" order, the latter obviously in "clear"
or reverse order.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Tao Ma <tao.ma at oracle.com>
commit 2025714394ad7842bb64737d3495a868bd18e78b
Author: Joel Becker <joel.becker at oracle.com>
Date: Mon Jul 21 16:23:07 2008 -0700
libocfs2: Clearing features should clear their dependancies.
The ocfs2_parse_feature() API was not symmetric. If asked to set a
feature, it would set the feature and its dependencies. However, when
asked to clear a feature, it would not clear the other features that
depended on it. Thus, a caller looking at the list of features to clear
would have to know the reverse dependencies as well.
This change modifies ocfs2_parse_feature() to include the reverse
dependencies. In addition, ocfs2_merge_feature_with_level() takes
advantage of the change to become simpler.
Finally, tunefs.ocfs2 now expects the reverse dependencies. Instead of
adding them by hand, it makes sure they exist and behaves appropriately.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
Signed-off-by: Tao Ma <tao.ma at oracle.com>
-----------------------------------------------------------------------
Summary of changes:
debugfs.ocfs2/utils.c | 113 +-
include/ocfs2/ocfs2.h | 119 +-
libocfs2/feature_string.c | 392 ++++-
libocfs2/ocfs2_err.et | 4 +
tunefs.ocfs2/.gitignore | 3 +
tunefs.ocfs2/Makefile | 94 +-
tunefs.ocfs2/feature_backup_super.c | 229 +++
tunefs.ocfs2/feature_extended_slotmap.c | 108 ++
tunefs.ocfs2/feature_inline_data.c | 235 +++
tunefs.ocfs2/feature_local.c | 134 ++
tunefs.ocfs2/feature_sparse_files.c | 508 +++++
tunefs.ocfs2/feature_unwritten_extents.c | 180 ++
tunefs.ocfs2/features.c | 15 +-
tunefs.ocfs2/format_slotmap.c | 60 -
tunefs.ocfs2/inline_data.c | 171 --
tunefs.ocfs2/libocfs2ne.c | 1974 ++++++++++++++++++++
tunefs.ocfs2/libocfs2ne.h | 321 ++++
tunefs.ocfs2/o2ne_err.et | 85 +
tunefs.ocfs2/ocfs2ne.c | 992 ++++++++++
tunefs.ocfs2/op_features.c | 259 +++
tunefs.ocfs2/op_list_sparse_files.c | 460 +++++
tunefs.ocfs2/{query.c => op_query.c} | 214 ++-
tunefs.ocfs2/op_reset_uuid.c | 79 +
tunefs.ocfs2/op_resize_volume.c | 781 ++++++++
tunefs.ocfs2/op_set_journal_size.c | 104 +
tunefs.ocfs2/op_set_label.c | 108 ++
.../{remove_slot.c => op_set_slot_count.c} | 682 +++++--
tunefs.ocfs2/op_update_cluster_stack.c | 93 +
tunefs.ocfs2/resize.c | 582 ------
tunefs.ocfs2/sparse_file.c | 921 ---------
tunefs.ocfs2/tunefs.c | 1569 ----------------
tunefs.ocfs2/tunefs.h | 132 --
32 files changed, 7869 insertions(+), 3852 deletions(-)
create mode 100644 tunefs.ocfs2/feature_backup_super.c
create mode 100644 tunefs.ocfs2/feature_extended_slotmap.c
create mode 100644 tunefs.ocfs2/feature_inline_data.c
create mode 100644 tunefs.ocfs2/feature_local.c
create mode 100644 tunefs.ocfs2/feature_sparse_files.c
create mode 100644 tunefs.ocfs2/feature_unwritten_extents.c
delete mode 100644 tunefs.ocfs2/format_slotmap.c
delete mode 100644 tunefs.ocfs2/inline_data.c
create mode 100644 tunefs.ocfs2/libocfs2ne.c
create mode 100644 tunefs.ocfs2/libocfs2ne.h
create mode 100644 tunefs.ocfs2/o2ne_err.et
create mode 100644 tunefs.ocfs2/ocfs2ne.c
create mode 100644 tunefs.ocfs2/op_features.c
create mode 100644 tunefs.ocfs2/op_list_sparse_files.c
rename tunefs.ocfs2/{query.c => op_query.c} (58%)
create mode 100644 tunefs.ocfs2/op_reset_uuid.c
create mode 100644 tunefs.ocfs2/op_resize_volume.c
create mode 100644 tunefs.ocfs2/op_set_journal_size.c
create mode 100644 tunefs.ocfs2/op_set_label.c
rename tunefs.ocfs2/{remove_slot.c => op_set_slot_count.c} (58%)
create mode 100644 tunefs.ocfs2/op_update_cluster_stack.c
delete mode 100644 tunefs.ocfs2/resize.c
delete mode 100644 tunefs.ocfs2/sparse_file.c
delete mode 100644 tunefs.ocfs2/tunefs.c
delete mode 100644 tunefs.ocfs2/tunefs.h
hooks/post-receive
--
Tools to manage the ocfs2 filesystem.
More information about the Ocfs2-tools-commits
mailing list