[Ocfs2-tools-commits] branch, tunefs-cleanup, created. ocfs2-tools-1.4.0-134-gf7d232f
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Tue Jul 22 11:24:14 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 f7d232f01bbac090d39ea643c19ed22968a56ce9 (commit)
- Log -----------------------------------------------------------------
commit f7d232f01bbac090d39ea643c19ed22968a56ce9
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 19779c4c8e97af1090b0b5ed8556b9a8c7cfbf20
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 578052bbd2f31ee0f96781527a6550db8bd754f1
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 2468e4b374402944359c05851a4da9e7047003da
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 1aea71700d7a0281a2297b45d318f22306a974e6
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 ad208c502325b73349a942aeacd21ccfc1310318
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 49e01224bdb19444fa6b108a186f6d1cd1bb466a
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 d7b86aa087de84aa1ad60e905694e281a28f232b
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 141cf627dafadae50c934b124fb9972dea594eae
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 c6e80377894a7d0e0e68e6c2d6ed790803843644
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 707cdfb5658c695a02c7292a23bec776375fdf91
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 f4bdef84d39e6ac28c7506b170aa75067ca039fc
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 f31cfde94c55ba3186846b762414c5631b83458f
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 79a0f2280ee35362eb7681e829d9ae1f4279dff9
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 b7ac420403e1cd553e692f30a13ff3360f23ae61
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 568fa056e2f741e8c0852308da66145d965b22bd
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 dfe23276a191c88ba7f36dad0d2578e7324d05fd
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 4fd59cef6c5ee027b6389741ebdfbbc44faf66a4
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 cfd12f025652b10b404b13c8ee937ef6892a9123
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 4f1d371c06443584c8dba1170d06c34ba979bfe1
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 ace3fa3810978860eed923e243ab132c221c0956
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 b95fae916cdd367d84eb793b5a858eab5bfb079e
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 2eac2d208323d1bbf61e59932727159f54294f58
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 d3b111ba18f55a19dd03a8b392c2f8d1f6549f7b
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 6749ac9fb055c2917199bc661543493033760bbe
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 1d779cd351ca842c21b13e931dba49015d5dbf39
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 96fa4b10ad0fb9a38b36ddb1d90293239d3175f7
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 299ad53988d86fc14802f19e04149e96a4d132f8
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 79a3d5c02c8797ee6bfe3d83d035717dd8d199a0
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 54c47394e2cfbc1eb9e1454503803c8dc9d78f72
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 d2df57976b2aec80b2fde2cff711fc6a1482cfb9
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 0657c4da892eb6c3ab4a4732893eae3420c70d72
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 2ae91c46cfa6aa003cbd0c715aeec073cb9ca5a6
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 c0377863f3679802b702ae6e15d39789c0bc04ed
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 d62fb3fdf025a02f4cbfa90130d87c35cba4b755
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 bff2f475a3661fc19394551fbf82021277f8d488
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 716ddead960c2a27cd750def05a49ffbea4462d2
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 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