[Ocfs2-tools-commits] branch, tunefs-cleanup, created. ocfs2-tools-1.4.0-146-g455a5c7

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Aug 14 16:10:00 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  455a5c757d15ddc81a9f03ceea5f07af2ddec2bf (commit)

- Log -----------------------------------------------------------------
commit 455a5c757d15ddc81a9f03ceea5f07af2ddec2bf
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>

commit a115266cd6752f4ea40a96f81bd043aa24f2ed3f
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 13a50b074ed90ac2457ee36f493b818b62e767d4
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 6f7d011c02fe958025148b06093fa353c21ea332
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 39c97815193b9dc84f0f4a705c474107ba9cc67e
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 0968fa28ffb6e5a69d1a5cbdf86209724318ffc4
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 6068cb55c9efb0784b9f766fd382a05499974de8
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 34f9b6485bb23f3a451c216f50231ddd11d77625
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 de4c2e7fc79b0e28474606e832847112a0b39d30
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 448be7df6f0b7a33d978ed44b5181eb0b24aaca0
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 da1931d76839d56c95cb9d3478bc1af81712fac7
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 3936a52df5b5bb90aeabf74c2f970b94294e100b
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 c1cabea36e07a9cc666a51f28292b6cb7c29a71e
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 eaac31cd475fe6a19a8699a9a02f00f1a53a4b33
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 51a1bd4255d8fe4071340925cd388ccc26898172
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 237a6d68badf580d3746b857de9c538055849ed6
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 ba599b43e0babf136481add5cd23c7327c319551
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 800e59834ad7576d103c0e644f41c307e8bb3642
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 2ea394f1836ff7b751a65e64fefa6bf0d7766309
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 1d02a8c57f430ae53997d8410218107d85ea1022
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 4de9c8e1a1aac7e6ea2eac55e0cc99a7f622fd2b
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 f64621a1f84039641f85c3ea82a9bf7e60420577
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 1367c17ebd573296420752287bb4fed67d74830b
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 5064a0f0a74a8d04282e6b011d0951fe021012dc
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 4f44a6608b3a6973f920f75f0b7e44264d5981cc
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>

-----------------------------------------------------------------------


hooks/post-receive
-- 
Tools to manage the ocfs2 filesystem.



More information about the Ocfs2-tools-commits mailing list