[Ocfs2-tools-commits] branch, tunefs-cleanup, created. ocfs2-tools-1.4.0-147-g295841d
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Jul 24 16:27:58 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, tunefs-cleanup has been created
at 295841dfed28d1728e9a338e465a8e12953aa499 (commit)
- Log -----------------------------------------------------------------
commit 295841dfed28d1728e9a338e465a8e12953aa499
Author: Joel Becker <joel.becker at oracle.com>
Date: Thu Jul 24 16:26:59 2008 -0700
ocfs2ne: Move the query option over to ocfs2ne.
Add ocfs2ne_query.c, and add the option to ocfs2ne.c
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 557c0b50770386b81e325a8bf288b799ca07497e
Author: Joel Becker <joel.becker at oracle.com>
Date: Thu Jul 24 12:27:57 2008 -0700
ocfs2ne: Document the APIs in libocfs2ne.h
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit c6d094b75a1642c7d703523d724e7d4bc255c4a6
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 23 23:32:29 2008 -0700
ocfs2ne: Run the operations!
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 9249e7693edbd85e757277c1af93f18aa6126fbb
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 23 22:45:31 2008 -0700
ocfs2ne: Push resize to the front.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit c80f3dd8c5411b1f6f4706a4c35220fefd140b3d
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 23 22:37:17 2008 -0700
ocfs2ne: Create tunefs_op_run()
tunefs_feature_run() grows to handle opening the ocfs2_filesys for the
feature change. tunefs_op_run() appears to do the same for operations.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 3700a03a1e5926591d7694096c080baf6380d203
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 23 16:55:38 2008 -0700
ocfs2ne: move about an option, clean up a malloc
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit a89395cf36d514d9bb1ad52e00040bff43afa244
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 23 16:40:47 2008 -0700
ocfs2ne: add journal options.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 07ea19acd602730a038b0a722838dcf08464e0a8
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 23 16:08:15 2008 -0700
ocfs2ne: Connect up resize units.
ocfs2ne_resize_volume can now handle a new size in blocks, clusters, or
bytes. This is accomplished by prefixing the size with the unit.
ocfs2ne uses the argument argument of -S to determine this.
The default behavior is, as before, blocks for ocfs2ne.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 90f44ab14000b5049462e9b4382f4d4f8cad3156
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 23 15:07:48 2008 -0700
ocfs2ne: Change to_user_data to to_private.
The callbacks for tunefs_operations are now passed a pointer to the
operation itself. They don't need user_data arguments anymore, and the
operation structure turns that into a private pointer.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 37ee12a3ee25efe2690725467ca93571039d31d7
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 23 14:10:00 2008 -0700
ocfs2ne: Add handling of the resize optoin.
Take the -S option and massage it before passing to resize_volume_op.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit c87651f9c1c3140ae70a1c2c08555da656d43aa5
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jul 22 17:52:33 2008 -0700
tunefs.ocfs2: working state of ocfs2ne.c
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit cf6bc3309f7b2a142c4c06d8c32a87dc1c7236a0
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jul 22 11:44:58 2008 -0700
tunefs.ocfs2: Change tunefs_main() to tunefs_op_main()
In the end, tunefs_op_main() will be a debugging call - it only runs one
operation. So name it as such, instead of 'tunefs_main()'.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit feecb50e868b13e085fdc0d2d97be513fcebd81c
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jul 22 11:23:18 2008 -0700
tunefs.ocfs2: Move ocfs2ne_set_mount_type to ocfs2ne_feature_local
Local mounts are a feature bit. Let's handle them in the feature
operation like we should.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 03fbe16b9a8f40b6831c417d351f8348dd31ea93
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jul 22 10:52:36 2008 -0700
tunefs.ocfs2: Rename libtunefs to libocfs2ne.
It matches the other names, and keeps it cleanly separate from the old
tunefs code.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 7330adc5bb634b47a80e3748a37a6c5fd6e69f64
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jul 22 01:30:33 2008 -0700
tunefs.ocfs2: Create the ocfs2_features method
ocfs2_features is a tunefs_operation that takes a feature string as an
option and runs through the supported features as specified. This
changes all ocfs2ne_feature_*.o objects to link into this program. They
only run by themselves as DEBUG_EXE now.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 97e00e542316fd1abff9eb171f8748d9f7f2c141
Author: Joel Becker <joel.becker at oracle.com>
Date: Mon Jul 21 21:10:04 2008 -0700
tunefs.ocfs2: Run feature operations via API
The tunefs_feature_run() call is needed by the generic feature code, not
just tunefs_feature_main().
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 1db04271eecb2a2523b062d5fd0dbea2239f711c
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>
commit b60026e93a5f0e430a597e589a2b0e8f3fc7e348
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 16 01:59:01 2008 -0700
tunefs.ocfs2: Add the resize method.
ocfs2ne_resize_volume handles both online and offline resizing. Well,
except for the fact that it doesn't open with ONLINE allowed :-)
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 03472972e7db18d44e92d643dad3fb1cfbd5139f
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jul 15 16:47:30 2008 -0700
tunefs.ocfs2: Add the unwritten extents feature method
This method clears out unwritten extents when disabling. Enabling is
just setting the RO_COMPAT flag.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 4102c14857aa12f0f2fc4701c7debbb28478f38f
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jul 15 16:22:09 2008 -0700
tunefs.ocfs2: Add the sparse file feature method
The sparse file feature method can enable and disable sparse files on
the filesystem. When disabling sparse files, it will fill in any holes
that exist on the filesystem.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 5c04953fabac0c53ac5f2a5b376a81d7f9b68b4f
Author: Joel Becker <joel.becker at oracle.com>
Date: Mon Jul 14 19:16:10 2008 -0700
tunefs.ocfs2: Add tunefs_foreach_inode() to libtunefs.
Add a function to walk the inode scan. This comes from sparse_file.c,
made a little more generic so we can use it in multiple feature methods.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit c64760cb173c139f23f432e601bd9308736c920a
Author: Joel Becker <joel.becker at oracle.com>
Date: Mon Jul 14 09:13:01 2008 -0700
tunefs.ocfs2: Add a method for the extended slotmap feature.
This program enables and disables the extended slotmap feature.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit f2546594362c1e15b1e0f0236569331375a835b5
Author: Joel Becker <joel.becker at oracle.com>
Date: Thu Jul 10 01:33:21 2008 -0700
tunefs.ocfs2: Add a method to enable and disable backup superblocks
This is the first feature method. They'll all follow an enable|disable
paradigm.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 197e2ea6a1143a7942fe4ecb982c25a4e7dd6edc
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jul 8 19:02:59 2008 -0700
tunefs.ocfs2: Method to list sparse files.
Simply move the sparse listing code to a method.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 5729e6da88a3fcef779a69f4c5be194c30b43e49
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jul 8 16:59:01 2008 -0700
tunefs.ocfs2: Add the journal resize method.
This is a very simple method that takes a new size and resizes all the
journals on the volume.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 3a713b89bbb19e1e0870c83b74d1a10bdb5036ef
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jul 8 16:31:15 2008 -0700
tunefs.ocfs2: Provide a parser for suffixed numbers.
That is, 1K == 1024, etc.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 545998c1eaa33670a25d277f7e0e6bf45039d2d4
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jul 8 14:24:32 2008 -0700
tunefs.ocfs2: Add a method for adding and removing slots
A method program for adding and removing node slots.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit b19d756f7b31fb78704934f541e523448128f3dc
Author: Joel Becker <joel.becker at oracle.com>
Date: Mon Jul 7 22:27:13 2008 -0700
tunefs.ocfs2: Add a method for resetting the uuid
ocfs2ne_reset_uuid will reset the volume UUID of an offline filesystem.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 2f5e10f0e2fdac4135c08bec9b1a6a9ba6260fdc
Author: Joel Becker <joel.becker at oracle.com>
Date: Mon Jul 7 17:24:19 2008 -0700
tunefs.ocfs2: Add a method to set the volume label.
Add ocfs2ne_set_label method.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 726d6cb1ee504f857f1a79b1084d98aea07ddb5e
Author: Joel Becker <joel.becker at oracle.com>
Date: Mon Jul 7 16:59:08 2008 -0700
tunefs.ocfs2: Add a method for set_mount_type
Add the ocfs2ne_set_mount_type method to switch between local and
cluster mounts.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 4f4acb7a591872358292283f54da9f54f13b1276
Author: Joel Becker <joel.becker at oracle.com>
Date: Mon Jul 7 16:06:42 2008 -0700
tunefs.ocfs2: Add the update-cluster-stack method.
This is the first ocfs2ne method - a simple program that does the
--update-cluster-stack functionality.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 5402a389bf92e68955179434e10b4324e82fdc8a
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 16 18:50:30 2008 -0700
tunefs.ocfs2: Create tunefs_main() and tunefs_feature_main()
tunefs_main() can be called from a method as the main() function. It
takes a struct tunefs_operation, which provides the callbacks necessary
to perform that operation.
tunefs_feature main() can be called from a feature method as the main()
function. It takes a struct tunefs_feature, which provides the callbacks
necessary to enable and disable a feature.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit aebc3eeec50cddcd50f4b34b8d495ede2afc0321
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 16 14:53:20 2008 -0700
tunefs.ocfs2: Make fs non-global
We intend to give each operation its own ocfs2_filesys, so we can't have
a single global pointer.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 78bfe64af30b64e1c7ac0ca9994f3b12f3b1ed8e
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 16 01:01:57 2008 -0700
tunefs.ocfs2: Open the online operation descriptor.
Online tune operations need to send ioctl(2) calls to a running
filesystem.
Look up the mountpoint for a mounted device and get a file descriptor to
it.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit f36a6b5f60c80cb7dab2a4e47f42bd0678abb1a6
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 16 00:30:28 2008 -0700
tunefs.ocfs2: Lock out local mounts during tunefs operations
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit fa5eb020202e6e6637d7d194ecc22dbd5693ea4c
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 11 02:11:38 2008 -0700
tunefs.ocfs2: Add tunefs_interact_critical() to libtunefs.
Operations that are VERY unsafe may always need to ask the user. Let's
create an interactive function for that particular case.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit d34d495fbcbdd3cfc6d0302f005535ff865cbe1d
Author: Joel Becker <joel.becker at oracle.com>
Date: Fri Jul 11 01:17:23 2008 -0700
tunefs.ocfs2: Use printf attribute for libtunefs output functions.
We really want gcc checking our printf formats.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 0de72478443d4d9895523f78549bd5467c8168de
Author: Joel Becker <joel.becker at oracle.com>
Date: Thu Jul 10 20:04:03 2008 -0700
tunefs.ocfs2: Add an interactive function to libtunefs.
While tunefs methods just perform their operations by default, sometimes
people want to select the operations interactively. The -i option is
added, and the tunefs_interact() function uses it. Methods can now call
tunefs_interact() before they do anything. If it returns true, they
proceed. If it returns false, they exit cleanly.
tunefs_interact() always returns true when in non-interactive mode (-i
was not specified).
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit a9a8659d889c64c95f5ccfd8915385e8e3f53a3b
Author: Joel Becker <joel.becker at oracle.com>
Date: Thu Jul 10 00:38:20 2008 -0700
tunefs.ocfs2: Add global bitmap checking to libtunefs.
In theory, a clean filesystem has a consistent global bitmap. We have
flags like RESIZE_INPROG and TUNEFS_INPROG to force fsck.
The old tunefs.ocfs2 also scans the global bitmap for any operation that
requires operation. It's a reasonably fast extra sanity check. Let's
port that to tunefs_open() with the flag TUNEFS_FLAG_ALLOCATION.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 2adfae45fddeac83e9af2a148dbebfc2efd15b01
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 9 15:32:37 2008 -0700
tunefs.ocfs2: Verbosity in signal handling
Use the errorf() function for errors printed by handle_signal().
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit a7a94395f6f68b34561f47288cfa54908212a247
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 9 15:29:52 2008 -0700
tunefs.ocfs2: Put a little verbosity in tunefs_close()
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 1f3a0f4547f742d1e8d890f1b8474f0caf56e2a5
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 9 17:39:02 2008 -0700
tunefs.ocfs2: Clean up tunefs_set_journal_size() some more.
tunefs_set_journal_size() could use some better verbosef() text. Also,
use ocfs2_sprintf_system_file_name() instead of open-coding it.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit bfeb6f57023818174bae3d129e20864f7341d293
Author: Joel Becker <joel.becker at oracle.com>
Date: Wed Jul 9 13:33:47 2008 -0700
tunefs.ocfs2: Provide generic options via tunefs_init()
libtunefs now takes argc+argv in tunefs_init() and handles the generic
options (verbosity, help, etc). When tunefs_init() returns, argc and
argv are stripped of those options.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit b7f885b62e49569c84dbc5f19962bfbcc137d4b2
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jul 8 14:19:02 2008 -0700
tunefs.ocfs2: Add a function to set journal sizes in libtunefs.
More than one tunefs operation needs to update the size of the journals.
The resize-journal operation is the obvious example. The add-slots
operation needs to add allocation for the new journals it has created.
Put the functionality in libtunefs.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 02aaa0411a4baa5a5394d19d35b25410bab1bb93
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jul 8 16:10:17 2008 -0700
tunefs.ocfs2: Set and clear the in-progress flags via libtunefs
Let's wrap setting and clearing the in-progress flags. This includes
the historically different RESIZE_INPROG.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 1d6254f49a90e06431b2d032cfd319838a14c0f1
Author: Joel Becker <joel.becker at oracle.com>
Date: Tue Jul 8 15:43:17 2008 -0700
tunefs.ocfs2: Check journals before allowing tunefs operations.
tunefs_open() need to check for dirty journals before allowing offline
operations.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 9b065804b1e452a65bcc0b8e1d88d9df29c82fd4
Author: Joel Becker <joel.becker at oracle.com>
Date: Mon Jul 7 23:26:34 2008 -0700
tunefs.ocfs2: Add verbose output
The library gets a simple verbose printf function, as well as functions
to tweak the verbosity level.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit e9c214a86cb3254f2f12880f1c687cbafce16594
Author: Joel Becker <joel.becker at oracle.com>
Date: Mon Jul 7 15:40:42 2008 -0700
Update license info in tunefs.c
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 914dd75dcf700259c602a21e7d4bf7b6a3f05e2f
Author: Joel Becker <joel.becker at oracle.com>
Date: Thu Jul 3 16:19:00 2008 -0700
tunefs.ocfs2: Start the internal libtunefs library.
Let's create a library of common tunefs operations - opening the
filesystem, setting signals, etc.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
commit 26363464d56b6ef3199fbc4a816a6dad074b66f6
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>
commit 1f0148fa32dc9a7a2d3afd0474faf4e14a96749f
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>
commit f84d2da6e37e5dca33e70fa657aec1a77df150f8
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>
-----------------------------------------------------------------------
hooks/post-receive
--
Tools to manage the ocfs2 filesystem.
More information about the Ocfs2-tools-commits
mailing list