[Ocfs2-tools-commits] branch, tunefs-cleanup, created. ocfs2-tools-1.4.0-166-gca88a83

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Fri Jul 25 17:05:18 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  ca88a83bf74fcfc14d86a63175e329e62555a561 (commit)

- Log -----------------------------------------------------------------
commit ca88a83bf74fcfc14d86a63175e329e62555a561
Author: Joel Becker <joel.becker at oracle.com>
Date:   Fri Jul 25 17:04:52 2008 -0700

    ocfs2ne: Use fs->uuid_str instead of uuid_unparse().
    
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit c744b1c48d650df2e2ad780925f0dd39324f4bbe
Author: Joel Becker <joel.becker at oracle.com>
Date:   Fri Jul 25 16:51:04 2008 -0700

    ocfs2ne: Check the bitmap after we muck with it.
    
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit eac10551396e1a6b08ed9de4e8ca19866322c566
Author: Joel Becker <joel.becker at oracle.com>
Date:   Fri Jul 25 15:57:14 2008 -0700

    ocfs2ne: Rework the locking code to lock down the cluster in all cases.
    
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit f7439a5d7d9f2c86f095e46dc18ef6e739dd98cb
Author: Joel Becker <joel.becker at oracle.com>
Date:   Fri Jul 25 14:31:01 2008 -0700

    ocfs2ne: Add tunefs_dlm_[un]lock()
    
    Because we have a master ocfs2_filesys object that access the dlm, but
    sub-objects that are passed to the operations, we need to have online
    operations access teh master object when locking the cluster.
    
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit e376dadcc137ae2fabe9d485f7c6b4d3e9f83057
Author: Joel Becker <joel.becker at oracle.com>
Date:   Fri Jul 25 14:29:29 2008 -0700

    ocfs2ne: Actually use the query option.
    
    Add the query option to the main program.
    
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit fb1c7f778c3d6bd610d7cfd1fc9047d75a3c43a9
Author: Joel Becker <joel.becker at oracle.com>
Date:   Fri Jul 25 14:21:27 2008 -0700

    ocfs2ne: Create a shared filesystem state object.
    
    The first caller to tunefs_open() will allocate a state object to
    describe what tunefs has for the filesystem.  This includes the online
    ioctl(2) fd and any local mount O_EXCL fds.  Later, we'll add cluster
    locking info.
    
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit 0f05d6038cb25a640573bea8458317151084f3ab
Author: Joel Becker <joel.becker at oracle.com>
Date:   Fri Jul 25 14:14:49 2008 -0700

    ocfs2ne: Whoops, clear the allowed errors from tunefs_open()
    
    tunefs_open() has a couple special error codes to tell us we need to
    behave a certain way (eg, PERFORM_ONLINE).  Once we've handled that
    behavior, we need to clear the error so later code doesn't think
    something broke.
    
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit 884425c473f8c2387887d090898317a56fab25bc
Author: Joel Becker <joel.becker at oracle.com>
Date:   Fri Jul 25 12:40:05 2008 -0700

    ocfs2ne: Make recursive calls to tunefs_[un]block_signals() safe.
    
    We can get into block/unblock recursively due to signals.  Let's make
    sure we only unblock on the outermost call to tunefs_unblock_signals().
    
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit 6ed57bbd7e27eb12b379dc592f5fcd80626a409c
Author: Joel Becker <joel.becker at oracle.com>
Date:   Fri Jul 25 00:00:44 2008 -0700

    ocfs2ne: Update API doc
    Signed-off-by: Joel Becker <joel.becker at oracle.com>

commit 180a8002f0332cf670718e0aaaf8c4836a345af2
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 cabff31d091b63d818fbc70222cd8c9c3cd4c09c
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 4a816ef18c64510e1589f3605f92a25c4269e7b3
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 7102a14bbe0928e02fd115b4c6e61648f1f7ed16
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 efc4931f02eff5282fc48f82a724ea6959e9984b
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 8e7ac1145c468ed9ae962b5f030b5ccc05b06477
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 61996257d16ab7b064414315a4826c17e2f6f519
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 8f95b48b53ae969def7818781a28a61a86ff2b21
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 40cdd2e6eb4415a0c2090cfbac072fa18486c812
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 d36efdcb707f1dcb5134a512332ffb1dcf753844
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 a6e4458eb28828a76aaee05c911290fb39e15845
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 0e652b90fc00486763a13f6caf46f9762ea84805
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 ee5bc08257071ec0b693478fde1d9fcb0cf8ea9c
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 b9217a9bde2a55639e6b672070c476933d4fe754
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 0a89dea49950c390b8c8a318cbcdf75899e2b475
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 28e68cdaa1b0f111e698ce0668ed338b5746690b
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 dbc988279946a18c7f416d23d21895292b17cf84
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 eb1c42ff4f1e07f2e740f95f5a551536b3ae07fc
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 42bed23d8920d37478ecaf0a6da6a6f3af58dad3
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 fba7e968abddcf5530aa4324b3c4a4b3a419caf5
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 aedb7f9fbd50d4ea6e74532f4718a0a6c3f82a3a
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 6cd98232ff4fdb9ca5013880b13a0b166a8e2b4a
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 631f42e71eff0c90d5e7bd84ef8d15ac25278cc2
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 0edd7fb8d114ad097dfcabf99c46fad22452fc30
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 99dd760b009e5389ef998afbb752b118990bf4c0
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 a3f22d7f86e1c1c189e61c4ef803d8d306a63f67
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 2e1f68c11d9720e9ebc052b21e248ff550970df4
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 71fa3e37f09c60d15a14f47f3e51a8421c838097
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 7c6a3c0f8f99b6bcca3f348778c2c23238ca8a65
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 a335d9bb38c525806bf5fef24776a1f0db4754ab
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 fc9fd7d1334b729553f3ef24d1942c5d53c5407f
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 3aa178ba066187cdde4e1c3810d8bbcfd0106fb8
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 af79b4784ec5b303e4491a2b40c7e8aee8e134c3
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 514ebe5d7ba5f1f2dcf4df1efbed6082b349837d
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 9c3cde0947e37f94fadcf70719ef5f20794b4f44
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 a62120fe6a1ed43d5ed6cedfa2c2645a1f75051f
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 89f3d6bcc60b6f85c509984d1b09b114b214fd50
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 94814dfd11697caf23a11786730d7474c73a6688
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 79a3ff33656e1707c14fb8368ad531d1297e95ab
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 edd7662fa0751233b30b7adc0ae2f2b082733499
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 5608d1fd36202b6a6ee8696b212289e4c334fa0b
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 fe017b4dfc55bad3091def4ec4698202f5ff9ab6
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 d4e415fa08d54b8fdb32a2170ab436bc0d7b7556
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 232282ebee74e2882ffeec15714ae95ba4c3db71
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 53b8b061b9e89b44d3e4d2c34d99582723c2e39e
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 6f190d255e1f6f1fb009797e129bf1b2d9e2b6b8
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 e668cdf1978ebd989e065db1bc180511145e8343
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 f96f9caa770084c3edc45becc42c7668dc513dcf
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 63534b4d7fb72e65a0ae0038e266675f5a9a6f3d
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 1e6584aabb7df0d5383fc045ecf065b0404c15a8
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 3c7081d34a7b74658944615aa26c2a385a3f7209
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 8bf403efe01b8bd3b6776efe61dae6638d2377e2
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