[Ocfs2-tools-commits] branch, tunefs-cleanup, created. ocfs2-tools-1.4.0-145-gfcaa495

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed Aug 13 15:54:30 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  fcaa495ebd88cd4ab20d8647a389ca5e3aaa8839 (commit)

- Log -----------------------------------------------------------------
commit fcaa495ebd88cd4ab20d8647a389ca5e3aaa8839
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 db4f1157f31588fadc83689296e68079e27571b6
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 41dc65adcad9c0cd9801803258b8f4beb524e695
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>

commit eadcaf00d30544f3295a2642e593ff18934f5083
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>

commit 32cf3785f38f8519d9965fcd9f3e0a6aebfcf284
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: Joel Becker <joel.becker at oracle.com>

commit 675be69faa76da867166f63fd570e0e98759bea4
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>

commit 756c4aa3dade32b6c8aa385f5ee878216cddc79f
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>

commit c2c42511c3cced584519535f74cc83f36e991d76
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 8f6313730f2225dbf2d21dee2528c0fa6085641e
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 80bafc52dba3410efe535511b36b76e9ebb83922
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 f432e0b7f13c3fabc965e59b552d17819045a715
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>

commit 4c41b0cbfc0caa1e9dfd5144c1f0fb8fab72a0f5
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>

commit 40b5e644a83cb333aea9650e96d4ebe1273bd184
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 6fc405b19d95ca8332dce9d823f7332c5018c089
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 e4d3d6b6ae0002aa4ffb883c445dc7ac470dc215
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 44165b60f6710df6b69cdfdf921c6fa00972347f
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 01ab40b66fa520e570e6d73d7832ee78026ab4d2
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 b9c2b14517d1da023032f9968cca562239f3606b
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 c7e2e640755ff197ec7d03129935d0928f8ae0e8
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 61697fc40d1d00934be9719b2e23f7a55bea6b6b
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>

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