[Ocfs2-tools-commits] branch, tunefs-cleanup, created. ocfs2-tools-1.4.0-127-g04dff26

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Fri Jul 25 20:47:16 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  04dff260cd17e4c25210103e6ecfb348b0ba5d67 (commit)

- Log -----------------------------------------------------------------
commit 04dff260cd17e4c25210103e6ecfb348b0ba5d67
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>

commit 54bd33f0b5874d27c99cfddae18d965b01b1a915
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>

commit b061a13a7823b3843830200e21d8c258feff5dc3
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 186e9feb7b4565b4235ba71a4ef7f3c52fdceb24
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 0129c849c09c60fa7f562fc046e65f3392e06694
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 68184a030e0cb7954f6f9ccef2e6cadae4ebd4d8
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 486d2926dd32e3869ba7cf18264d6c2f7ef76db7
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>

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

commit 13c4ba17d01b1f57abb4040190fd449e60807cfc
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>

commit 88d4d1aad3b91d5694535de5b031ae4ab4d8d9ff
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 6f70ca564e8371d59a6bd6588fa94f64652284e2
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 c9d9a163f1928176e658b799eb4f7415e49a2cea
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>

commit 000ce506e087288c44b3b5eb5f8b345880880cef
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>

commit 5900d80a357a5755924699d189b7acb97e2bade6
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>

commit 17b725e6cd6a13179f7fd9c544108dfc49aab81c
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>

commit 8baae2ab0658077df5e27a115f259493936938ee
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>

commit 4295006501bc076f97a941bc0a8de610237741b9
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>

commit 10ebdb2d9d456e00e2dcc34cd7a62b07c2e618f8
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>

commit c0ffc3b6c79e7cdbd4260d381035850794c1a805
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 701af23ee0a5459efa2516edfb1336c7288194e0
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 5f4e16f6c997325c899b65888b2a4cfdd82afe99
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 50e5660ea3e18857077be8a89004022f736dd50c
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