[lxc-devel] [GIT] lxc branch, master, updated. 37c3dfc9c974a6c42716c66e8d3c286f2441da44

Daniel Lezcano git at users.sourceforge.net
Thu Jun 25 09:22:13 UTC 2009


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 "lxc".

The branch, master has been updated
       via  37c3dfc9c974a6c42716c66e8d3c286f2441da44 (commit)
       via  7cbfc4e4411b6effc6a64fd83a8cb37ffc9c7155 (commit)
       via  acc8694126c270f7d3a237f965304ec9f78a6c85 (commit)
       via  2b4e286d251f0add75a23c57ba361c326d945c10 (commit)
       via  47ad75f88da3a68347a709f5474289311d6c0ff9 (commit)
       via  4f3f0d4b015af0b1021e22dd3b6a5f2fffbff0d2 (commit)
      from  1ea6db2923761b45b4400c32810b17f58785057a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 37c3dfc9c974a6c42716c66e8d3c286f2441da44
Author: Michel Normand <normand at fr.ibm.com>
Date:   Thu Jun 25 11:21:56 2009 +0200

    lxc-execute to return exit code of its child not others
    
    lxc-execute has to return the exit code of it's child not others
    as today's code would return the exit code of the last child.
    We need to track the first process we launched and store its
    exit status when it exits. In order to avoid to detect the exit
    of this pid several time if the pids number wrap, we put an extra
    flag saying the process group is orhpan.
    
    Signed-off-by: Michel Normand <normand at fr.ibm.com>
    Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>

commit 7cbfc4e4411b6effc6a64fd83a8cb37ffc9c7155
Author: Michel Normand <normand at fr.ibm.com>
Date:   Thu Jun 25 11:10:40 2009 +0200

    replace the lxc-ps bash script by a perl script
    
    Implement the lxc-ps script with perl script.
    
    Signed-off-by: Michel Normand <normand at fr.ibm.com>
    Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>

commit acc8694126c270f7d3a237f965304ec9f78a6c85
Author: Michel Normand <normand at fr.ibm.com>
Date:   Thu Jun 25 11:10:40 2009 +0200

    another place where readlink to be null terminated
    
    I did this one change by reading the code
    but did not tried to run it.
    
    Signed-off-by: Michel Normand <normand at fr.ibm.com>
    Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>

commit 2b4e286d251f0add75a23c57ba361c326d945c10
Author: Michel Normand <normand at fr.ibm.com>
Date:   Thu Jun 25 11:10:40 2009 +0200

    the lxc_unlink_nsgroup may fail on ppc. V2
    
    the lxc_unlink_nsgroup may fail on ppc
    where the stack is not zeroed by default
    and because the readlink function do not add trailing null character.
    
    Signed-off-by: Michel Normand <normand at fr.ibm.com>
    Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>

commit 47ad75f88da3a68347a709f5474289311d6c0ff9
Author: Michel Normand <normand at fr.ibm.com>
Date:   Thu Jun 25 11:10:39 2009 +0200

    update the help of lxc-checkpoint and lxc-restart
    
    Update the checkpoint and restart regarding the statefile parameter.
    
    Signed-off-by: Michel Normand <normand at fr.ibm.com>
    Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>

commit 4f3f0d4b015af0b1021e22dd3b6a5f2fffbff0d2
Author: Matty <matty91 at gmail.com>
Date:   Wed Jun 24 13:13:18 2009 +0200

    lxc-fedora fixes
    
    Howdy,
    
    I was playing around with LXC containers this past weekend, and
    noticed a couple of issues with the lxc-fedora script:
    
    #1: Line 96 should be ${ROOTFS}/etc/sysconfig/network instead of
    ${ROOTFS}/sysconfig/network
    
    #2 Line 249 contains a reference to $PKG, which isn't used in the
    program. I adjusted the variable to point to the correct package, and
    use this in the calls to yumdownloader:
    
        PKG="${DISTRO}-release.noarch.rpm"
                       .....
        yumdownloader --destdir="${CACHE}/partial" "${PKG}"
    
    #3 The $CACHE/partial path is escaped unnecessarily:
    
       RPM="rpm --root \"${CACHE}/partial\""
    
    #4 The program assumes yumdownloader will work, which isn't always the
    case. I added an if statement to check the return code:
    
    
       echo "Downloading distribution release file ${PKG}"
       yumdownloader --destdir="${CACHE}/partial" "${PKG}"
       RESULT=$?
    
       if [ "${RESULT}" != "0" ]; then
           echo "Enable to download the distribution release file"
           exit 1
       fi
    
    #5 The package name passed to yumdownloader is incorrect:
    
       yumdownloader --destdir="${CACHE}/partial" "${DISTRO}-release.noarch.rpm"
    
       On Fedora 10 and 11, this evaluates to:
    
       fedora-release.noarch.rpm
    
       When we need it to evaluate to:
    
       fedora-{RELEASE_VER}.release.noarch
    
       This is fixed in the PKG variable listed above.
    
    A patch that addresses these issues is attached.
    
    Thanks,
    - Ryan
    
    Signed-off-by: Matty <matty91 at gmail.com>
    Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>

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

Summary of changes:
 scripts/lxc-fedora.in    |   21 +++--
 src/lxc/cgroup.c         |    6 +-
 src/lxc/lxc-ps.in        |  226 ++++++++++++++++++++++++++++++++++++++--------
 src/lxc/lxc_checkpoint.c |    6 +-
 src/lxc/lxc_init.c       |   13 +++-
 src/lxc/lxc_restart.c    |   25 ++++--
 src/lxc/start.c          |    7 ++-
 7 files changed, 246 insertions(+), 58 deletions(-)


hooks/post-receive
-- 
lxc




More information about the lxc-devel mailing list