[git-users] git send-email with "space" help

2013-01-06 Thread lei yang
 git send-email -2 --to lei.y...@windriver.com
--subject-prefix=meta-networking][PATCH:V2> works

results: subject is : [meta-networking][PATCH:V2 1/2] Removing README
from libvirt and qemu dirs

but I want   [meta-networking][PATCH V2 1/2] Removing README from
libvirt and qemu dirs

 git send-email -2 --to lei.y...@windriver.com
--subject-prefix=meta-networking][PATCH V2  ---> doesn't work with
"space"V2

But I did see someone's patch in the email subject has a "space" how it used ?

Lei

-- 




[git-users] download a directory or file without clone the whole tree

2013-01-06 Thread lei yang
Hi experts

I find my treeA want to have another treeB's dir, I don't want to
clone the whole treeB, I don't know can we do it with git the get
treeB's dir

Lei

-- 




Re: [oe] [meta-networking][PATCHV2] Add netcat-bsd into meta-networking for meta-virutalization libvirt virt-test

2013-01-06 Thread Lei Yang

On 01/07/2013 10:15 AM, Joe MacDonald wrote:

[[meta-networking][PATCHV2] Add netcat-bsd into meta-networking for 
meta-virutalization libvirt virt-test] On 13.01.07 (Mon 09:38) 
lei.y...@windriver.com wrote:


From: Lei Yang

The netcat-openbsd in meta-virtualization layer has bugs.
This update version will fix "nc: Protocol no available." error.
As bruce point, we want to keep netcat in the meta-networking,
which meta-virtualization will depend on,and this patch will let
netcat-openbsd with low priority to install

Okay, I hadn't seen this version yet.  Looks okay, I think.  I'll merge
it anyway soon, unless there's further discussion.  The dependency on
meta-networking from meta-virtualization is probably out of scope.  Ping
me any time if you've got any questions about the relationship between
meta-oe/meta-networking and my github meta-networking.


Actually I only see meta-oe/meta-networking. I don't know you have a 
github meta-networking
Usually, the patch check into which meta-networking first.  I don't know 
the background.


Lei





Thanks, Lei.

-J.


Lei

Signed-off-by: Lei Yang
---
  .../recipes-support/netcat/netcat-openbsd_1.89.bb  |   30 
  meta-networking/recipes-support/netcat/netcat.inc  |5 +++
  .../recipes-support/netcat/netcat_0.7.1.bb |   11 +++
  3 files changed, 40 insertions(+), 6 deletions(-)
  create mode 100644 
meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
  create mode 100644 meta-networking/recipes-support/netcat/netcat.inc

diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb 
b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
new file mode 100644
index 000..f83caee
--- /dev/null
+++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
@@ -0,0 +1,30 @@
+require netcat.inc
+DESCRIPTION = "OpenBSD Netcat"
+HOMEPAGE = "http://ftp.debian.org";
+LICENSE = "BSD-3-Clause"
+PR = "r0"
+
+SRC_URI = 
"${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz;name=netcat
 \
+   
${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz;name=netcat-patch"
+
+SRC_URI[netcat.md5sum] = "7238ce15aae43069e96ba7faf03f153e"
+SRC_URI[netcat.sha256sum] = 
"72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
+SRC_URI[netcat-patch.md5sum] = "00c65aa22243b76998174c733cbb64cc"
+SRC_URI[netcat-patch.sha256sum] = 
"d5b6b2bd9788114bdcfbb71acad0263720b4fdc41529e287adf451b8610f84f1"
+
+S = "${WORKDIR}/${PN}-${PV}.orig"
+
+do_configure[noexec] = "1"
+
+do_compile() {
+   cd ${S}
+while read line; do patch -p1http://netcat.sourceforge.net";
-SECTION = "console/network"
  LICENSE = "GPLv2"
  LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"

-PR = "r0"
+PR = "r1"

  SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2"

  SRC_URI[md5sum] = "0a29eff1736ddb5effd0b1ec1f6fe0ef"
  SRC_URI[sha256sum] = 
"b55af0bbdf5acc02d1eb6ab18da2acd77a400bafd074489003f3df09676332bb"

-inherit autotools update-alternatives gettext
+inherit autotools

  do_install_append() {
-   mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
+install -d ${D}${bindir}
+mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
  }
-
-ALTERNATIVE_${PN} = "nc"
  ALTERNATIVE_PRIORITY = "100"



___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


Re: [meta-virtualization] [meta-networking][PATCHV2] Add netcat-bsd into meta-networking for meta-virutalization libvirt virt-test

2013-01-06 Thread Lei Yang

On 01/07/2013 10:15 AM, Joe MacDonald wrote:

[[meta-networking][PATCHV2] Add netcat-bsd into meta-networking for 
meta-virutalization libvirt virt-test] On 13.01.07 (Mon 09:38) 
lei.y...@windriver.com wrote:


From: Lei Yang

The netcat-openbsd in meta-virtualization layer has bugs.
This update version will fix "nc: Protocol no available." error.
As bruce point, we want to keep netcat in the meta-networking,
which meta-virtualization will depend on,and this patch will let
netcat-openbsd with low priority to install

Okay, I hadn't seen this version yet.  Looks okay, I think.  I'll merge
it anyway soon, unless there's further discussion.  The dependency on
meta-networking from meta-virtualization is probably out of scope.  Ping
me any time if you've got any questions about the relationship between
meta-oe/meta-networking and my github meta-networking.


Actually I only see meta-oe/meta-networking. I don't know you have a 
github meta-networking
Usually, the patch check into which meta-networking first.  I don't know 
the background.


Lei





Thanks, Lei.

-J.


Lei

Signed-off-by: Lei Yang
---
  .../recipes-support/netcat/netcat-openbsd_1.89.bb  |   30 
  meta-networking/recipes-support/netcat/netcat.inc  |5 +++
  .../recipes-support/netcat/netcat_0.7.1.bb |   11 +++
  3 files changed, 40 insertions(+), 6 deletions(-)
  create mode 100644 
meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
  create mode 100644 meta-networking/recipes-support/netcat/netcat.inc

diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb 
b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
new file mode 100644
index 000..f83caee
--- /dev/null
+++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
@@ -0,0 +1,30 @@
+require netcat.inc
+DESCRIPTION = "OpenBSD Netcat"
+HOMEPAGE = "http://ftp.debian.org";
+LICENSE = "BSD-3-Clause"
+PR = "r0"
+
+SRC_URI = 
"${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz;name=netcat
 \
+   
${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz;name=netcat-patch"
+
+SRC_URI[netcat.md5sum] = "7238ce15aae43069e96ba7faf03f153e"
+SRC_URI[netcat.sha256sum] = 
"72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
+SRC_URI[netcat-patch.md5sum] = "00c65aa22243b76998174c733cbb64cc"
+SRC_URI[netcat-patch.sha256sum] = 
"d5b6b2bd9788114bdcfbb71acad0263720b4fdc41529e287adf451b8610f84f1"
+
+S = "${WORKDIR}/${PN}-${PV}.orig"
+
+do_configure[noexec] = "1"
+
+do_compile() {
+   cd ${S}
+while read line; do patch -p1http://netcat.sourceforge.net";
-SECTION = "console/network"
  LICENSE = "GPLv2"
  LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"

-PR = "r0"
+PR = "r1"

  SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2"

  SRC_URI[md5sum] = "0a29eff1736ddb5effd0b1ec1f6fe0ef"
  SRC_URI[sha256sum] = 
"b55af0bbdf5acc02d1eb6ab18da2acd77a400bafd074489003f3df09676332bb"

-inherit autotools update-alternatives gettext
+inherit autotools

  do_install_append() {
-   mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
+install -d ${D}${bindir}
+mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
  }
-
-ALTERNATIVE_${PN} = "nc"
  ALTERNATIVE_PRIORITY = "100"


___
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization


Re: [oe] [meta-virtualization] [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)

2013-01-06 Thread Lei Yang

On 01/07/2013 10:03 AM, Lei Yang wrote:

On 01/07/2013 09:46 AM, Joe MacDonald wrote:
[[meta-networking][PATCH] Add netcat-openbsd for virtualization 
(libvirt virt-test)] On 13.01.06 (Sun 13:17) lei.y...@windriver.com 
wrote:



From: Lei Yang

The netcat-openbsd in meta-virtualization layer has bugs.
This update version will fix "nc: Protocol no available." error.
As bruce point, we want to keep netcat in the meta-networking,
which meta-virtualization will depend on

That's fine with me if that works for him, and having both netcat
versions available is fine, I personally prefer the obsd one.  I'll keep


Do I need send a V2 for update the openbsd's priority ?

Lei


an eye out for your next version with the per-recipe alternative
priorities.

I didn't notice the discussion with Bruce, though, so at the risk of
re-stating what you guys have already agreed upon, this will mean you're
at least going to be cloning meta-oe to use meta-virtualization.
meta-networking isn't a standalone layer for the most part.  I maintain
a read-only subtree project on github that is meta-networking separated
from the rest of meta-oe, but it necessarily trails the meta-networking
in meta-oe.


Wait Bruce's comments

Lei




I'm fine with the new recipe, just wanted to make sure you had all the
information you needed.
-J.


Lei

Signed-off-by: Lei Yang
---
  .../recipes-support/netcat/netcat-openbsd_1.89.bb  |   29 


  meta-networking/recipes-support/netcat/netcat.inc  |6 
  .../recipes-support/netcat/netcat_0.7.1.bb |   11 +++
  3 files changed, 40 insertions(+), 6 deletions(-)
  create mode 100644 
meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb

  create mode 100644 meta-networking/recipes-support/netcat/netcat.inc

diff --git 
a/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb 
b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb

new file mode 100644
index 000..9fe406c
--- /dev/null
+++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
@@ -0,0 +1,29 @@
+require netcat.inc
+DESCRIPTION = "OpenBSD Netcat"
+HOMEPAGE = "http://ftp.debian.org";
+LICENSE = "BSD-3-Clause"
+PR = "r0"
+
+SRC_URI = 
"${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz;name=netcat 
\
+   
${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz;name=netcat-patch"

+
+SRC_URI[netcat.md5sum] = "7238ce15aae43069e96ba7faf03f153e"
+SRC_URI[netcat.sha256sum] = 
"72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"

+SRC_URI[netcat-patch.md5sum] = "00c65aa22243b76998174c733cbb64cc"
+SRC_URI[netcat-patch.sha256sum] = 
"d5b6b2bd9788114bdcfbb71acad0263720b4fdc41529e287adf451b8610f84f1"

+
+S = "${WORKDIR}/${PN}-${PV}.orig"
+
+do_configure[noexec] = "1"
+
+do_compile() {
+cd ${S}
+while read line; do patch -p1done
+pkgrel=4
+oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
+}
+
+do_install() {
+install -d ${D}${bindir}
+install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
+}
diff --git a/meta-networking/recipes-support/netcat/netcat.inc 
b/meta-networking/recipes-support/netcat/netcat.inc

new file mode 100644
index 000..4098668
--- /dev/null
+++ b/meta-networking/recipes-support/netcat/netcat.inc
@@ -0,0 +1,6 @@
+SECTION = "console/network"
+inherit update-alternatives gettext
+
+ALTERNATIVE_${PN} = "nc"
+ALTERNATIVE_PRIORITY = "100"
+
diff --git a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb 
b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb

index c5ab85d..e09202b 100644
--- a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
+++ b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
@@ -1,21 +1,20 @@
+require netcat.inc
  DESCRIPTION = "GNU Netcat"
  HOMEPAGE = "http://netcat.sourceforge.net";
-SECTION = "console/network"
  LICENSE = "GPLv2"
  LIC_FILES_CHKSUM = 
"file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"


-PR = "r0"
+PR = "r1"

  SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2"

  SRC_URI[md5sum] = "0a29eff1736ddb5effd0b1ec1f6fe0ef"
  SRC_URI[sha256sum] = 
"b55af0bbdf5acc02d1eb6ab18da2acd77a400bafd074489003f3df09676332bb"


-inherit autotools update-alternatives gettext
+inherit autotools

  do_install_append() {
-mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
+install -d ${D}${bindir}
+mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
  }

-ALTERNATIVE_${PN} = "nc"
-ALTERNATIVE_PRIORITY = "100"


___
meta-virtualization mailing list
meta-virtualizat...@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization



___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


Re: [meta-virtualization] [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)

2013-01-06 Thread Lei Yang

On 01/07/2013 10:03 AM, Lei Yang wrote:

On 01/07/2013 09:46 AM, Joe MacDonald wrote:
[[meta-networking][PATCH] Add netcat-openbsd for virtualization 
(libvirt virt-test)] On 13.01.06 (Sun 13:17) lei.y...@windriver.com 
wrote:



From: Lei Yang

The netcat-openbsd in meta-virtualization layer has bugs.
This update version will fix "nc: Protocol no available." error.
As bruce point, we want to keep netcat in the meta-networking,
which meta-virtualization will depend on

That's fine with me if that works for him, and having both netcat
versions available is fine, I personally prefer the obsd one.  I'll keep


Do I need send a V2 for update the openbsd's priority ?

Lei


an eye out for your next version with the per-recipe alternative
priorities.

I didn't notice the discussion with Bruce, though, so at the risk of
re-stating what you guys have already agreed upon, this will mean you're
at least going to be cloning meta-oe to use meta-virtualization.
meta-networking isn't a standalone layer for the most part.  I maintain
a read-only subtree project on github that is meta-networking separated
from the rest of meta-oe, but it necessarily trails the meta-networking
in meta-oe.


Wait Bruce's comments

Lei




I'm fine with the new recipe, just wanted to make sure you had all the
information you needed.
-J.


Lei

Signed-off-by: Lei Yang
---
  .../recipes-support/netcat/netcat-openbsd_1.89.bb  |   29 


  meta-networking/recipes-support/netcat/netcat.inc  |6 
  .../recipes-support/netcat/netcat_0.7.1.bb |   11 +++
  3 files changed, 40 insertions(+), 6 deletions(-)
  create mode 100644 
meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb

  create mode 100644 meta-networking/recipes-support/netcat/netcat.inc

diff --git 
a/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb 
b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb

new file mode 100644
index 000..9fe406c
--- /dev/null
+++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
@@ -0,0 +1,29 @@
+require netcat.inc
+DESCRIPTION = "OpenBSD Netcat"
+HOMEPAGE = "http://ftp.debian.org";
+LICENSE = "BSD-3-Clause"
+PR = "r0"
+
+SRC_URI = 
"${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz;name=netcat 
\
+   
${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz;name=netcat-patch"

+
+SRC_URI[netcat.md5sum] = "7238ce15aae43069e96ba7faf03f153e"
+SRC_URI[netcat.sha256sum] = 
"72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"

+SRC_URI[netcat-patch.md5sum] = "00c65aa22243b76998174c733cbb64cc"
+SRC_URI[netcat-patch.sha256sum] = 
"d5b6b2bd9788114bdcfbb71acad0263720b4fdc41529e287adf451b8610f84f1"

+
+S = "${WORKDIR}/${PN}-${PV}.orig"
+
+do_configure[noexec] = "1"
+
+do_compile() {
+cd ${S}
+while read line; do patch -p1done
+pkgrel=4
+oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
+}
+
+do_install() {
+install -d ${D}${bindir}
+install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
+}
diff --git a/meta-networking/recipes-support/netcat/netcat.inc 
b/meta-networking/recipes-support/netcat/netcat.inc

new file mode 100644
index 000..4098668
--- /dev/null
+++ b/meta-networking/recipes-support/netcat/netcat.inc
@@ -0,0 +1,6 @@
+SECTION = "console/network"
+inherit update-alternatives gettext
+
+ALTERNATIVE_${PN} = "nc"
+ALTERNATIVE_PRIORITY = "100"
+
diff --git a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb 
b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb

index c5ab85d..e09202b 100644
--- a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
+++ b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb
@@ -1,21 +1,20 @@
+require netcat.inc
  DESCRIPTION = "GNU Netcat"
  HOMEPAGE = "http://netcat.sourceforge.net";
-SECTION = "console/network"
  LICENSE = "GPLv2"
  LIC_FILES_CHKSUM = 
"file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"


-PR = "r0"
+PR = "r1"

  SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2"

  SRC_URI[md5sum] = "0a29eff1736ddb5effd0b1ec1f6fe0ef"
  SRC_URI[sha256sum] = 
"b55af0bbdf5acc02d1eb6ab18da2acd77a400bafd074489003f3df09676332bb"


-inherit autotools update-alternatives gettext
+inherit autotools

  do_install_append() {
-mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
+install -d ${D}${bindir}
+mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
  }

-ALTERNATIVE_${PN} = "nc"
-ALTERNATIVE_PRIORITY = "100"


___
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization


___
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization


Re: [oe] [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)

2013-01-06 Thread Lei Yang

On 01/07/2013 09:46 AM, Joe MacDonald wrote:

[[meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt 
virt-test)] On 13.01.06 (Sun 13:17) lei.y...@windriver.com wrote:


From: Lei Yang

The netcat-openbsd in meta-virtualization layer has bugs.
This update version will fix "nc: Protocol no available." error.
As bruce point, we want to keep netcat in the meta-networking,
which meta-virtualization will depend on

That's fine with me if that works for him, and having both netcat
versions available is fine, I personally prefer the obsd one.  I'll keep
an eye out for your next version with the per-recipe alternative
priorities.

I didn't notice the discussion with Bruce, though, so at the risk of
re-stating what you guys have already agreed upon, this will mean you're
at least going to be cloning meta-oe to use meta-virtualization.
meta-networking isn't a standalone layer for the most part.  I maintain
a read-only subtree project on github that is meta-networking separated
from the rest of meta-oe, but it necessarily trails the meta-networking
in meta-oe.


Wait Bruce's comments

Lei




I'm fine with the new recipe, just wanted to make sure you had all the
information you needed.
-J.


Lei

Signed-off-by: Lei Yang
---
  .../recipes-support/netcat/netcat-openbsd_1.89.bb  |   29 
  meta-networking/recipes-support/netcat/netcat.inc  |6 
  .../recipes-support/netcat/netcat_0.7.1.bb |   11 +++
  3 files changed, 40 insertions(+), 6 deletions(-)
  create mode 100644 
meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
  create mode 100644 meta-networking/recipes-support/netcat/netcat.inc

diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb 
b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
new file mode 100644
index 000..9fe406c
--- /dev/null
+++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
@@ -0,0 +1,29 @@
+require netcat.inc
+DESCRIPTION = "OpenBSD Netcat"
+HOMEPAGE = "http://ftp.debian.org";
+LICENSE = "BSD-3-Clause"
+PR = "r0"
+
+SRC_URI = 
"${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz;name=netcat
 \
+   
${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz;name=netcat-patch"
+
+SRC_URI[netcat.md5sum] = "7238ce15aae43069e96ba7faf03f153e"
+SRC_URI[netcat.sha256sum] = 
"72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
+SRC_URI[netcat-patch.md5sum] = "00c65aa22243b76998174c733cbb64cc"
+SRC_URI[netcat-patch.sha256sum] = 
"d5b6b2bd9788114bdcfbb71acad0263720b4fdc41529e287adf451b8610f84f1"
+
+S = "${WORKDIR}/${PN}-${PV}.orig"
+
+do_configure[noexec] = "1"
+
+do_compile() {
+   cd ${S}
+while read line; do patch -p1http://netcat.sourceforge.net";
-SECTION = "console/network"
  LICENSE = "GPLv2"
  LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"

-PR = "r0"
+PR = "r1"

  SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2"

  SRC_URI[md5sum] = "0a29eff1736ddb5effd0b1ec1f6fe0ef"
  SRC_URI[sha256sum] = 
"b55af0bbdf5acc02d1eb6ab18da2acd77a400bafd074489003f3df09676332bb"

-inherit autotools update-alternatives gettext
+inherit autotools

  do_install_append() {
-   mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
+install -d ${D}${bindir}
+mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
  }

-ALTERNATIVE_${PN} = "nc"
-ALTERNATIVE_PRIORITY = "100"



___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


Re: [meta-virtualization] [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)

2013-01-06 Thread Lei Yang

On 01/07/2013 09:46 AM, Joe MacDonald wrote:

[[meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt 
virt-test)] On 13.01.06 (Sun 13:17) lei.y...@windriver.com wrote:


From: Lei Yang

The netcat-openbsd in meta-virtualization layer has bugs.
This update version will fix "nc: Protocol no available." error.
As bruce point, we want to keep netcat in the meta-networking,
which meta-virtualization will depend on

That's fine with me if that works for him, and having both netcat
versions available is fine, I personally prefer the obsd one.  I'll keep
an eye out for your next version with the per-recipe alternative
priorities.

I didn't notice the discussion with Bruce, though, so at the risk of
re-stating what you guys have already agreed upon, this will mean you're
at least going to be cloning meta-oe to use meta-virtualization.
meta-networking isn't a standalone layer for the most part.  I maintain
a read-only subtree project on github that is meta-networking separated
from the rest of meta-oe, but it necessarily trails the meta-networking
in meta-oe.


Wait Bruce's comments

Lei




I'm fine with the new recipe, just wanted to make sure you had all the
information you needed.
-J.


Lei

Signed-off-by: Lei Yang
---
  .../recipes-support/netcat/netcat-openbsd_1.89.bb  |   29 
  meta-networking/recipes-support/netcat/netcat.inc  |6 
  .../recipes-support/netcat/netcat_0.7.1.bb |   11 +++
  3 files changed, 40 insertions(+), 6 deletions(-)
  create mode 100644 
meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
  create mode 100644 meta-networking/recipes-support/netcat/netcat.inc

diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb 
b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
new file mode 100644
index 000..9fe406c
--- /dev/null
+++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
@@ -0,0 +1,29 @@
+require netcat.inc
+DESCRIPTION = "OpenBSD Netcat"
+HOMEPAGE = "http://ftp.debian.org";
+LICENSE = "BSD-3-Clause"
+PR = "r0"
+
+SRC_URI = 
"${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz;name=netcat
 \
+   
${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz;name=netcat-patch"
+
+SRC_URI[netcat.md5sum] = "7238ce15aae43069e96ba7faf03f153e"
+SRC_URI[netcat.sha256sum] = 
"72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
+SRC_URI[netcat-patch.md5sum] = "00c65aa22243b76998174c733cbb64cc"
+SRC_URI[netcat-patch.sha256sum] = 
"d5b6b2bd9788114bdcfbb71acad0263720b4fdc41529e287adf451b8610f84f1"
+
+S = "${WORKDIR}/${PN}-${PV}.orig"
+
+do_configure[noexec] = "1"
+
+do_compile() {
+   cd ${S}
+while read line; do patch -p1http://netcat.sourceforge.net";
-SECTION = "console/network"
  LICENSE = "GPLv2"
  LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"

-PR = "r0"
+PR = "r1"

  SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2"

  SRC_URI[md5sum] = "0a29eff1736ddb5effd0b1ec1f6fe0ef"
  SRC_URI[sha256sum] = 
"b55af0bbdf5acc02d1eb6ab18da2acd77a400bafd074489003f3df09676332bb"

-inherit autotools update-alternatives gettext
+inherit autotools

  do_install_append() {
-   mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
+install -d ${D}${bindir}
+mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
  }

-ALTERNATIVE_${PN} = "nc"
-ALTERNATIVE_PRIORITY = "100"


___
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization


Re: [oe] [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)

2013-01-06 Thread lei yang
On Sun, Jan 6, 2013 at 4:06 AM, Martin Jansa  wrote:
> On Sun, Jan 06, 2013 at 12:58:47PM +0100, David Nyström wrote:
>> On 01/06/2013 09:20 AM, lei.y...@windriver.com wrote:
>> > +SECTION = "console/network"
>> > +inherit update-alternatives gettext
>> > +
>> > +ALTERNATIVE_${PN} = "nc"
>> > +ALTERNATIVE_PRIORITY = "100"
>>
>> This means that both versions of netcat have alt. prio 100. what happens
>> when both are installed on the rootfs at the same time. where does the
>> symlink point ?
>
> The one installed later (at least for opkg implementation).
> So it's better to change it to different number.
>

Thanks, I will update this

Lei


> Cheers,
>
> --
> Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com
>
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>

___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


Re: [meta-virtualization] [oe] [meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)

2013-01-06 Thread lei yang
On Sun, Jan 6, 2013 at 4:06 AM, Martin Jansa  wrote:
> On Sun, Jan 06, 2013 at 12:58:47PM +0100, David Nyström wrote:
>> On 01/06/2013 09:20 AM, lei.y...@windriver.com wrote:
>> > +SECTION = "console/network"
>> > +inherit update-alternatives gettext
>> > +
>> > +ALTERNATIVE_${PN} = "nc"
>> > +ALTERNATIVE_PRIORITY = "100"
>>
>> This means that both versions of netcat have alt. prio 100. what happens
>> when both are installed on the rootfs at the same time. where does the
>> symlink point ?
>
> The one installed later (at least for opkg implementation).
> So it's better to change it to different number.
>

Thanks, I will update this

Lei


> Cheers,
>
> --
> Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com
>
> ___
> Openembedded-devel mailing list
> openembedded-de...@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
___
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization


[oe] test again

2013-01-06 Thread Lei Yang



___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


[oe] test again and again

2013-01-06 Thread Lei Yang



___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


Re: [meta-virtualization] [PATCH] Update the netcat with debian patches to fix some error

2013-01-05 Thread Lei Yang

On 01/06/2013 08:53 AM, Bruce Ashfield wrote:




On Sat, Jan 5, 2013 at 7:28 PM, Lei Yang <mailto:yanglei.f...@gmail.com>> wrote:


Hi Bruce

I checked the netcat with my phone in meta-networking ,It's not
the bsd netcat,in libvirt or my vert-test,we need to use bsd
netcat,they are different source.


That was understood, and what I meant by:

"If there are any specific meta-virt requirements for netcat, we 
should either use bbappends (and
depend on meta-networking, or use the combo-layer tools to pull the 
support directly) or better yet

get them merged into meta-networking."

The solution is not to carry a similar netcat in meta-virt, but to 
have a single netcat source, which

is meta-virtualization.



I don't know I catch you or not

solution 1:
===


create a bbappend in meta-virt. there are two issue
a. they have different licence, one is GPLv2 aother is BSD-3-Clause, I 
don't know if we are allowed to overwritte the LICENSE
b. and they have different PV history, one is 0.71, another is 0.89, so 
this can't be append


soulution 2:



seems you want something like this in meta-networing
[lyang0@ala-lpggp2 netcat]$ ls
netcat_0.7.1.bbnetcat-openbsd_1.89.bb netcat.inc

netcat.inc is something like,below other part(DESCRIPTION HOMEPAGE 
license SRC_URI) ...will be in there bb file, seems what they can share 
is little.


inherit autotools update-alternatives gettext

do_install_append() {
mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
}

ALTERNATIVE_${PN} = "nc"
ALTERNATIVE_PRIORITY = "100"


By the way I don't know what is combo-layer tools

Lei





There's no rush to merge this, there's no impending releases, so we 
should take our time and

unify the support, not create a very similar structure in meta-virt.

Cheers,

Bruce


Lei

Sent from my iPhone

On 2013-1-6, at 2:44, Bruce Ashfield mailto:bruce.ashfi...@gmail.com>> wrote:





On Sat, Jan 5, 2013 at 9:46 AM, David Nyström
    mailto:david.nyst...@enea.com>> wrote:



On 01/05/2013 03:26 PM, lei yang wrote:

On Sat, Jan 5, 2013 at 5:55 AM, David Nyström
mailto:david.c.nyst...@gmail.com>> wrote:

On 01/05/2013 02:43 PM, lei.y...@windriver.com
<mailto:lei.y...@windriver.com> wrote:


From: Lei Yang mailto:lei.y...@windriver.com>>

I know we have the patches in debian dir in the
previous version,
but I meet lots of patch error.so I change it to
debian.org <http://debian.org> version

The background I do this change is:
I'm a kvm tester,without patches it will meet
error when I do the migrate
testing with  -incoming "exec:nc -l 5200" it
meets error:
"nc: Protocol no available."

You can reproduce it simplely with "nc -l 5200"
on your board

Lei

Signed-off-by: Lei Yang mailto:lei.y...@windriver.com>>
---



[snip]


+do_compile() {
+   cd ${S}
+while read line; do patch -p1
http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
will be download, and gunzip by bitbake automaticlly,
then it find
.diff (or patch) it will automatically apply(before I
thought only
.patch will be applied, now I find .diff will be applied
) then you
will see the debian/patches dir  created by .dff

logs:
lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ ls
build/netcat-openbsd-1.89-r0/netcat-openbsd-1.89.orig/
atomicio.c  atomicio.o  Makefilenc.1
netcat.c.orig   openbsd-compat/ .pc/socks.o
atomicio.h  debian/ nc  netcat.c
netcat.opatches/socks.c



+   pkgrel=4
+   oe_runmake CFLAGS="$CFLAGS
-DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""



I assume this has been tested with package_rpm as well.



Yes, I'm a tester .welcome any testing work to let me do
freely

lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ cat
build/netcat-openbsd-1.89-r0/deploy-rpms/x86_64/netcat-openbsd-
netcat-openbsd-1.89-r0.x86_64.rpm
netcat-openbsd-dbg-1.89-r0.x86_64.rpm
netcat-openbsd-dev-1.89-r0.x86_64.rpm


Thanks Lei,
I'll merge this a

Re: [meta-virtualization] [PATCH] Update the netcat with debian patches to fix some error

2013-01-05 Thread Lei Yang
Hi Bruce 

I checked the netcat with my phone in meta-networking ,It's not the bsd 
netcat,in libvirt or my vert-test,we need to use bsd netcat,they are different 
source.

Lei

Sent from my iPhone

On 2013-1-6, at 2:44, Bruce Ashfield  wrote:

> 
> 
> 
> On Sat, Jan 5, 2013 at 9:46 AM, David Nyström  wrote:
>> 
>> 
>> On 01/05/2013 03:26 PM, lei yang wrote:
>>> On Sat, Jan 5, 2013 at 5:55 AM, David Nyström  
>>> wrote:
>>>> On 01/05/2013 02:43 PM, lei.y...@windriver.com wrote:
>>>>> 
>>>>> From: Lei Yang 
>>>>> 
>>>>> I know we have the patches in debian dir in the previous version,
>>>>> but I meet lots of patch error.so I change it to debian.org version
>>>>> 
>>>>> The background I do this change is:
>>>>> I'm a kvm tester,without patches it will meet error when I do the migrate
>>>>> testing with  -incoming "exec:nc -l 5200" it meets error:
>>>>> "nc: Protocol no available."
>>>>> 
>>>>> You can reproduce it simplely with "nc -l 5200" on your board
>>>>> 
>>>>> Lei
>>>>> 
>>>>> Signed-off-by: Lei Yang 
>>>>> ---
>>>> 
>>>> 
>>>> [snip]
>>>> 
>>>> 
>>>>> +do_compile() {
>>>>> +   cd ${S}
>>>>> +while read line; do patch -p1 >>>> >>> 
>>>> 
>>>> Is this line really needed ?
>>>> I cant seem to find any file called debian/patches/* in ${S}.
>>> 
>>> Yes it needed, 
>>> http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
>>> will be download, and gunzip by bitbake automaticlly, then it find
>>> .diff (or patch) it will automatically apply(before I thought only
>>> .patch will be applied, now I find .diff will be applied ) then you
>>> will see the debian/patches dir  created by .dff
>>> 
>>> logs:
>>> lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ ls
>>> build/netcat-openbsd-1.89-r0/netcat-openbsd-1.89.orig/
>>> atomicio.c  atomicio.o  Makefilenc.1
>>> netcat.c.orig   openbsd-compat/ .pc/socks.o
>>> atomicio.h  debian/ nc  netcat.c
>>> netcat.opatches/socks.c
>>> 
>>> 
>>>> 
>>>>> +   pkgrel=4
>>>>> +   oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
>>>> 
>>>> 
>>>> I assume this has been tested with package_rpm as well.
>>> 
>>> Yes, I'm a tester .welcome any testing work to let me do freely
>>> 
>>> lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ cat
>>> build/netcat-openbsd-1.89-r0/deploy-rpms/x86_64/netcat-openbsd-
>>> netcat-openbsd-1.89-r0.x86_64.rpm
>>> netcat-openbsd-dbg-1.89-r0.x86_64.rpm
>>> netcat-openbsd-dev-1.89-r0.x86_64.rpm
>> 
>> Thanks Lei,
>> I'll merge this as soon as I can, I seem to be unable to push at the moment. 
>> I'll try to resolv this asap.
> 
> I think we should hold on this merge completely. netcat is already covered by 
> meta-networking, so
> we should be consolidating patches and support there.
> 
> If there are any specific meta-virt requirements for netcat, we should either 
> use bbappends (and
> depend on meta-networking, or use the combo-layer tools to pull the support 
> directly) or better yet
> get them merged into meta-networking.
> 
> Cheers,
> 
> Bruce
>  
>>> 
>>> 
>>> 
>>>>> +}
>>>>> +
>>>>> +do_install() {
>>>>> +   install -d ${D}${bindir}
>>>>> +   install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
>>>>> +}
>>>>> +
>>>>> +ALTERNATIVE_${PN} = "nc"
>>>>> +ALTERNATIVE_PRIORITY = "101"
>>>>> +
>>>>> +BBCLASSEXTEND = "nativesdk"
>>>>> diff --git a/recipes-networking/netcat/openbsd-netcat_1.6.bb
>>>>> b/recipes-networking/netcat/openbsd-netcat_1.6.bb
>>>>> deleted file mode 100644
>>>>> index 1ae3f37..000
>>>>> --- a/recipes-networking/netcat/openbsd-netcat_1.6.bb
>>>>> +++ /dev/null
>>>>> @@ -1,29 +0,0 @@
>>>>> -DESCRIPTION = "OpenBSD N

Re: [meta-virtualization] [PATCH] Update the netcat with debian patches to fix some error

2013-01-05 Thread lei yang
On Sat, Jan 5, 2013 at 5:55 AM, David Nyström  wrote:
> On 01/05/2013 02:43 PM, lei.y...@windriver.com wrote:
>>
>> From: Lei Yang 
>>
>> I know we have the patches in debian dir in the previous version,
>> but I meet lots of patch error.so I change it to debian.org version
>>
>> The background I do this change is:
>> I'm a kvm tester,without patches it will meet error when I do the migrate
>> testing with  -incoming "exec:nc -l 5200" it meets error:
>> "nc: Protocol no available."
>>
>> You can reproduce it simplely with "nc -l 5200" on your board
>>
>> Lei
>>
>> Signed-off-by: Lei Yang 
>> ---
>
>
> [snip]
>
>
>> +do_compile() {
>> +   cd ${S}
>> +while read line; do patch -p1 > 
>
> Is this line really needed ?
> I cant seem to find any file called debian/patches/* in ${S}.
>

Yes it needed, 
http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
will be download, and gunzip by bitbake automaticlly, then it find
.diff (or patch) it will automatically apply(before I thought only
.patch will be applied, now I find .diff will be applied ) then you
will see the debian/patches dir  created by .dff

logs:
lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ ls
build/netcat-openbsd-1.89-r0/netcat-openbsd-1.89.orig/
atomicio.c  atomicio.o  Makefilenc.1
netcat.c.orig   openbsd-compat/ .pc/socks.o
atomicio.h  debian/ nc  netcat.c
netcat.opatches/socks.c


>
>> +   pkgrel=4
>> +   oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
>
>
> I assume this has been tested with package_rpm as well.
>
>

Yes, I'm a tester .welcome any testing work to let me do freely

lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ cat
build/netcat-openbsd-1.89-r0/deploy-rpms/x86_64/netcat-openbsd-
netcat-openbsd-1.89-r0.x86_64.rpm
netcat-openbsd-dbg-1.89-r0.x86_64.rpm
netcat-openbsd-dev-1.89-r0.x86_64.rpm




>> +}
>> +
>> +do_install() {
>> +   install -d ${D}${bindir}
>> +   install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
>> +}
>> +
>> +ALTERNATIVE_${PN} = "nc"
>> +ALTERNATIVE_PRIORITY = "101"
>> +
>> +BBCLASSEXTEND = "nativesdk"
>> diff --git a/recipes-networking/netcat/openbsd-netcat_1.6.bb
>> b/recipes-networking/netcat/openbsd-netcat_1.6.bb
>> deleted file mode 100644
>> index 1ae3f37..000
>> --- a/recipes-networking/netcat/openbsd-netcat_1.6.bb
>> +++ /dev/null
>> @@ -1,29 +0,0 @@
>> -DESCRIPTION = "OpenBSD Netcat"
>> -HOMEPAGE = "http://code.google.com/p/openbsd-netcat/";
>> -SECTION = "console/network"
>> -LICENSE = "BSD-3-Clause"
>> -PR = "r0"
>> -
>> -SRCREV = "5"
>> -
>> -SRC_URI =
>> "svn://openbsd-netcat.googlecode.com/svn;module=trunk;protocol=http"
>> -S = "${WORKDIR}/trunk"
>> -
>> -inherit update-alternatives gettext
>> -
>> -do_configure[noexec] = "1"
>> -
>> -do_compile() {
>> -   cd ${S}
>> -   oe_runmake
>> -}
>> -
>> -do_install() {
>> -   install -d ${D}${bindir}
>> -   install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
>> -}
>> -
>> -ALTERNATIVE_${PN} = "nc"
>> -ALTERNATIVE_PRIORITY = "101"
>> -
>> -BBCLASSEXTEND = "nativesdk"
>>
>
> ___
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
___
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization


Re: [meta-virtualization] [PATCH] Update the netcat with debian patches to fix some error

2013-01-05 Thread lei yang
On Sat, Jan 5, 2013 at 5:14 AM, lei yang  wrote:
> On Sat, Jan 5, 2013 at 3:38 AM, David Nyström  
> wrote:
>>
>> On 01/05/2013 09:45 AM, lei.y...@windriver.com wrote:
>>>
>>> From: Lei Yang 
>>>
>>> I know we have the patches in debian dir in the previous version,
>>> but I meet lots of patch error.so I change it to debian.org version
>>>
>>> The background I do this change is:
>>> I'm a kvm tester,without patches it will meet error when I do the migrate
>>> testing with  -incoming "exec:nc -l 5200" it meets error:
>>> "nc: Protocol no available."
>>>
>>> You can reproduce it simplely with "nc -l 5200" on your board
>>
>>
>> Hi Lei,
>>
>> Thanks for the patch, your .patch file needs an upstream status, if its to
>> be kept in the meta-virt layer.
>>
>> please see:
>> https://wiki.yoctoproject.org/wiki/Best_Known_Methods_(BKMs)_for_Package_Updating#Patch_Upstreaming
>>
>>
>>>
>>> Lei
>>>
>>> Signed-off-by: Lei Yang 
>>> ---
>>>   recipes-extended/libvirt/libvirt_1.0.0.bb  |2 +-
>>>   .../netcat-openbsd/netcat-openbsd_1.89-4.patch | 2793
>>> 
>>>   recipes-networking/netcat/netcat-openbsd_1.89.bb   |   32 +
>>>   recipes-networking/netcat/openbsd-netcat_1.6.bb|   29 -
>>>   4 files changed, 2826 insertions(+), 30 deletions(-)
>>>   create mode 100644
>>> recipes-networking/netcat/netcat-openbsd/netcat-openbsd_1.89-4.patch
>>>   create mode 100644 recipes-networking/netcat/netcat-openbsd_1.89.bb
>>>   delete mode 100644 recipes-networking/netcat/openbsd-netcat_1.6.bb
>>>
>>> diff --git a/recipes-extended/libvirt/libvirt_1.0.0.bb
>>> b/recipes-extended/libvirt/libvirt_1.0.0.bb
>>> index 5374237..90d7dbb 100644
>>> --- a/recipes-extended/libvirt/libvirt_1.0.0.bb
>>> +++ b/recipes-extended/libvirt/libvirt_1.0.0.bb
>>> @@ -11,7 +11,7 @@ DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted
>>> curl libpcap util-linux
>>>   # These might be included by PACKAGECONFIG
>>>   #RRECOMMENDS+= "polkit qemu yajl libnl lxc netcf"
>>>
>>> -RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq
>>> openbsd-netcat"
>>> +RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq
>>> netcat-openbsd"
>>>   RDEPENDS_libvirt-libvirtd_append_x86-64 = " dmidecode"
>>>   RDEPENDS_libvirt-libvirtd_append_x86 = " dmidecode"
>>>
>>
>> [snip]
>>
>>
>>> diff --git a/recipes-networking/netcat/netcat-openbsd_1.89.bb
>>> b/recipes-networking/netcat/netcat-openbsd_1.89.bb
>>> new file mode 100644
>>> index 000..392a3fd
>>> --- /dev/null
>>> +++ b/recipes-networking/netcat/netcat-openbsd_1.89.bb
>>> @@ -0,0 +1,32 @@
>>> +DESCRIPTION = "OpenBSD Netcat"
>>> +HOMEPAGE = "http://ftp.debian.org";
>>> +SECTION = "console/network"
>>> +LICENSE = "BSD-3-Clause"
>>> +PR = "r0"
>>> +
>>> +SRC_URI =
>>> "http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz
>>> \
>>> +   file://netcat-openbsd_1.89-4.patch"
>>
>>
>> Hmm,
>> I suspect there is no difference between above .patch file and upstream:
>> http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
>>
>> Please reference the patch from this location to keep code size in meta-virt
>> low.
>>
>
>
> Yes, the patch comes from
> http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
> I don't know how to put two http location in one bb, do you have an
> examle? or use wget in bb? seems not
>
> and How could I fill the upstream status, should be pending? since
> it's not in openbsd-netcat.googlecode.com now
>
>

Aha, find the example meta/recipes-devtools/squashfs-tools/squashfs-tools_4.2.bb

I will send the patches later


> Lei
>
>
>
>>
>>> +SRC_URI[md5sum] = "7238ce15aae43069e96ba7faf03f153e"
>>> +SRC_URI[sha256sum] =
>>> "72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
>>> +
>>> +S = "${WORKDIR}/${PN}-${PV}.orig"
>>> +inherit update-alternatives gettext
>>> +
>>> +do_configure[noexec

Re: [meta-virtualization] [PATCH] Update the netcat with debian patches to fix some error

2013-01-05 Thread lei yang
On Sat, Jan 5, 2013 at 3:38 AM, David Nyström  wrote:
>
> On 01/05/2013 09:45 AM, lei.y...@windriver.com wrote:
>>
>> From: Lei Yang 
>>
>> I know we have the patches in debian dir in the previous version,
>> but I meet lots of patch error.so I change it to debian.org version
>>
>> The background I do this change is:
>> I'm a kvm tester,without patches it will meet error when I do the migrate
>> testing with  -incoming "exec:nc -l 5200" it meets error:
>> "nc: Protocol no available."
>>
>> You can reproduce it simplely with "nc -l 5200" on your board
>
>
> Hi Lei,
>
> Thanks for the patch, your .patch file needs an upstream status, if its to
> be kept in the meta-virt layer.
>
> please see:
> https://wiki.yoctoproject.org/wiki/Best_Known_Methods_(BKMs)_for_Package_Updating#Patch_Upstreaming
>
>
>>
>> Lei
>>
>> Signed-off-by: Lei Yang 
>> ---
>>   recipes-extended/libvirt/libvirt_1.0.0.bb  |2 +-
>>   .../netcat-openbsd/netcat-openbsd_1.89-4.patch | 2793
>> 
>>   recipes-networking/netcat/netcat-openbsd_1.89.bb   |   32 +
>>   recipes-networking/netcat/openbsd-netcat_1.6.bb|   29 -
>>   4 files changed, 2826 insertions(+), 30 deletions(-)
>>   create mode 100644
>> recipes-networking/netcat/netcat-openbsd/netcat-openbsd_1.89-4.patch
>>   create mode 100644 recipes-networking/netcat/netcat-openbsd_1.89.bb
>>   delete mode 100644 recipes-networking/netcat/openbsd-netcat_1.6.bb
>>
>> diff --git a/recipes-extended/libvirt/libvirt_1.0.0.bb
>> b/recipes-extended/libvirt/libvirt_1.0.0.bb
>> index 5374237..90d7dbb 100644
>> --- a/recipes-extended/libvirt/libvirt_1.0.0.bb
>> +++ b/recipes-extended/libvirt/libvirt_1.0.0.bb
>> @@ -11,7 +11,7 @@ DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted
>> curl libpcap util-linux
>>   # These might be included by PACKAGECONFIG
>>   #RRECOMMENDS+= "polkit qemu yajl libnl lxc netcf"
>>
>> -RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq
>> openbsd-netcat"
>> +RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq
>> netcat-openbsd"
>>   RDEPENDS_libvirt-libvirtd_append_x86-64 = " dmidecode"
>>   RDEPENDS_libvirt-libvirtd_append_x86 = " dmidecode"
>>
>
> [snip]
>
>
>> diff --git a/recipes-networking/netcat/netcat-openbsd_1.89.bb
>> b/recipes-networking/netcat/netcat-openbsd_1.89.bb
>> new file mode 100644
>> index 000..392a3fd
>> --- /dev/null
>> +++ b/recipes-networking/netcat/netcat-openbsd_1.89.bb
>> @@ -0,0 +1,32 @@
>> +DESCRIPTION = "OpenBSD Netcat"
>> +HOMEPAGE = "http://ftp.debian.org";
>> +SECTION = "console/network"
>> +LICENSE = "BSD-3-Clause"
>> +PR = "r0"
>> +
>> +SRC_URI =
>> "http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz
>> \
>> +   file://netcat-openbsd_1.89-4.patch"
>
>
> Hmm,
> I suspect there is no difference between above .patch file and upstream:
> http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
>
> Please reference the patch from this location to keep code size in meta-virt
> low.
>


Yes, the patch comes from
http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
I don't know how to put two http location in one bb, do you have an
examle? or use wget in bb? seems not

and How could I fill the upstream status, should be pending? since
it's not in openbsd-netcat.googlecode.com now


Lei



>
>> +SRC_URI[md5sum] = "7238ce15aae43069e96ba7faf03f153e"
>> +SRC_URI[sha256sum] =
>> "72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
>> +
>> +S = "${WORKDIR}/${PN}-${PV}.orig"
>> +inherit update-alternatives gettext
>> +
>> +do_configure[noexec] = "1"
>> +
>> +do_compile() {
>> +   cd ${S}
>> +   while read line; do patch -p1 > > +   pkgrel=4
>> +   oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
>> +}
>> +
>> +do_install() {
>> +   install -d ${D}${bindir}
>> +   install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
>> +}
>> +
>> +ALTERNATIVE_${PN} = "nc"
>> +ALTERNATIVE_PRIORITY = "101"
>> +
>> +BBCLASSEXTEND = "nativesdk"
>> diff --git a/recipes-networking/netc

Re: [meta-virtualization] [PATCH] Update the netcat with debian patches to fix some error

2013-01-05 Thread lei yang
On Sat, Jan 5, 2013 at 3:38 AM, David Nyström  wrote:
>
> On 01/05/2013 09:45 AM, lei.y...@windriver.com wrote:
>>
>> From: Lei Yang 
>>
>> I know we have the patches in debian dir in the previous version,
>> but I meet lots of patch error.so I change it to debian.org version
>>
>> The background I do this change is:
>> I'm a kvm tester,without patches it will meet error when I do the migrate
>> testing with  -incoming "exec:nc -l 5200" it meets error:
>> "nc: Protocol no available."
>>
>> You can reproduce it simplely with "nc -l 5200" on your board
>
>
> Hi Lei,
>
> Thanks for the patch, your .patch file needs an upstream status, if its to
> be kept in the meta-virt layer.
>
> please see:
> https://wiki.yoctoproject.org/wiki/Best_Known_Methods_(BKMs)_for_Package_Updating#Patch_Upstreaming
>
>
>>
>> Lei
>>
>> Signed-off-by: Lei Yang 
>> ---
>>   recipes-extended/libvirt/libvirt_1.0.0.bb  |2 +-
>>   .../netcat-openbsd/netcat-openbsd_1.89-4.patch | 2793
>> 
>>   recipes-networking/netcat/netcat-openbsd_1.89.bb   |   32 +
>>   recipes-networking/netcat/openbsd-netcat_1.6.bb|   29 -
>>   4 files changed, 2826 insertions(+), 30 deletions(-)
>>   create mode 100644
>> recipes-networking/netcat/netcat-openbsd/netcat-openbsd_1.89-4.patch
>>   create mode 100644 recipes-networking/netcat/netcat-openbsd_1.89.bb
>>   delete mode 100644 recipes-networking/netcat/openbsd-netcat_1.6.bb
>>
>> diff --git a/recipes-extended/libvirt/libvirt_1.0.0.bb
>> b/recipes-extended/libvirt/libvirt_1.0.0.bb
>> index 5374237..90d7dbb 100644
>> --- a/recipes-extended/libvirt/libvirt_1.0.0.bb
>> +++ b/recipes-extended/libvirt/libvirt_1.0.0.bb
>> @@ -11,7 +11,7 @@ DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted
>> curl libpcap util-linux
>>   # These might be included by PACKAGECONFIG
>>   #RRECOMMENDS+= "polkit qemu yajl libnl lxc netcf"
>>
>> -RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq
>> openbsd-netcat"
>> +RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq
>> netcat-openbsd"
>>   RDEPENDS_libvirt-libvirtd_append_x86-64 = " dmidecode"
>>   RDEPENDS_libvirt-libvirtd_append_x86 = " dmidecode"
>>
>
> [snip]
>
>
>> diff --git a/recipes-networking/netcat/netcat-openbsd_1.89.bb
>> b/recipes-networking/netcat/netcat-openbsd_1.89.bb
>> new file mode 100644
>> index 000..392a3fd
>> --- /dev/null
>> +++ b/recipes-networking/netcat/netcat-openbsd_1.89.bb
>> @@ -0,0 +1,32 @@
>> +DESCRIPTION = "OpenBSD Netcat"
>> +HOMEPAGE = "http://ftp.debian.org";
>> +SECTION = "console/network"
>> +LICENSE = "BSD-3-Clause"
>> +PR = "r0"
>> +
>> +SRC_URI =
>> "http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz
>> \
>> +   file://netcat-openbsd_1.89-4.patch"
>
>
> Hmm,
> I suspect there is no difference between above .patch file and upstream:
> http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
>
> Please reference the patch from this location to keep code size in meta-virt
> low.
>


Yes, the patch comes from
http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
I don't know how to put two http location in one bb

and How could I fill the upstream s


>
>> +SRC_URI[md5sum] = "7238ce15aae43069e96ba7faf03f153e"
>> +SRC_URI[sha256sum] =
>> "72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
>> +
>> +S = "${WORKDIR}/${PN}-${PV}.orig"
>> +inherit update-alternatives gettext
>> +
>> +do_configure[noexec] = "1"
>> +
>> +do_compile() {
>> +   cd ${S}
>> +   while read line; do patch -p1 > > +   pkgrel=4
>> +   oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
>> +}
>> +
>> +do_install() {
>> +   install -d ${D}${bindir}
>> +   install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
>> +}
>> +
>> +ALTERNATIVE_${PN} = "nc"
>> +ALTERNATIVE_PRIORITY = "101"
>> +
>> +BBCLASSEXTEND = "nativesdk"
>> diff --git a/recipes-networking/netcat/openbsd-netcat_1.6.bb
>> b/recipes-networking/netcat/openbsd-netcat_1.6.bb
>> deleted file mode 100644
>> index 1ae3f37

[meta-virtualization] test again

2013-01-05 Thread Lei Yang


___
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization


[meta-virtualization] It seems my patch review doesn't deliver to this mail list

2013-01-05 Thread lei yang
Hi list,

 I send a patch, it seems blocked because I use my another mail which
doesn't subscribe this list, do I need to resend with this mail
account?

Lei
___
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization


[meta-virtualization] test

2013-01-05 Thread lei yang

___
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization


[Tutor] help about to how many times the function called

2013-01-04 Thread lei yang
Hi experts

I have a function will print PASS status



def print_pass(t_elapsed):
"""
Print PASS to stdout with PASS (green) color.
"""
print_stdout(bcolors.PASS + "PASS" + bcolors.ENDC + " (%.2f s)" % t_elapsed)

I want to calculate the pass number, so I want to get " how many times
this function called"

any help?

Lei
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [libvirt-users] can someone explain why the domain, function bus, slot function is used in this xml

2013-01-03 Thread lei yang
On Wed, Jan 2, 2013 at 8:51 AM, Eric Blake  wrote:
> On 01/02/2013 09:43 AM, lei yang wrote:
>
>>
>> 1)I'm using guest as guest,I don't assgin address(disk or nic) to
>> guest,but it works well, any risk here?
>
> No - libvirt intentionally allows you to omit address assignment when
> first defining the guest, at which point libvirt will then fill in the
> information for you, so that future uses of the guest will have an
> assigned address.
>
>>
>> 2)I don't know how to set the address for guest, or just set a host
>> unused address to guest
>
> The easiest way is to omit the guest assignment from your XML, and let
> libvirt manage it.  The guest view is completely independent from the
> host view, so you don't need to worry about address collisions with the
> host.
>

Thanks, I always see some explain assgin them to guest. and use linux as guest.
I'm wondering why they don't leave it to libvirt manage it. if they
want to assgin it by
themselves,Is there a rule to this assginment

Lei


> --
> Eric Blake   eblake redhat com+1-919-301-3266
> Libvirt virtualization library http://libvirt.org
>

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users


Re: question: vim copy to another place, eg:doc

2013-01-02 Thread lei yang
On 1/3/13, Phil Dobbin  wrote:
> On 01/03/2013 02:15 AM, lei yang wrote:
>
>> Hi experts,
>>
>> I know in one text,we can use "yy"  to copy something to another place
>> in text, if I can't to copy something to another place, eg: from a
>> text,and copy  something using vim, and paste( we don't need to use
>> vim) something  to another place, how could I do? the real question is
>> how chould I put something to the vim chipboard. and it can paste to
>> another place( doc, terminal)
>
> I use these mappings to make copy & paste easier:
>
> '"Yank content in OS's clipboard
> vnoremap yo "*y
> "Paste content from OS's clipboard
> nnoremap po "*p'
>

I tried many times.My  vim is built in +chipboard
question:
1)"  ---> press shift+" ? to get " ?
2)"*y, need press at the same time?
3)how could I select the content I want to copy? can you give me a
whole process about this ?

Thanks
Lei


> For this to work in console Vim, Vim would have to be complied
> +clipboard as has been mentioned. If it has, these would need to be
> appended to your ~/.vimrc.
>
> Cheers,
>
>   Phil...
>
> --
> currently (ab)using
> CentOS 5.8 & 6.3, Debian Squeeze & Wheezy, Fedora Beefy & Spherical,
> Lubuntu 12.10, OS X Snow Leopard & Ubuntu Precise & Quantal
>
>
>
>

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


question: vim copy to another place, eg:doc

2013-01-02 Thread lei yang
Hi experts,

I know in one text,we can use "yy"  to copy something to another place
in text, if I can't to copy something to another place, eg: from a
text,and copy  something using vim, and paste( we don't need to use
vim) something  to another place, how could I do? the real question is
how chould I put something to the vim chipboard. and it can paste to
another place( doc, terminal)

Lei

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Re: [libvirt-users] can someone explain why the domain, function bus, slot function is used in this xml

2013-01-02 Thread lei yang
On 1/2/13, Daniel P. Berrange  wrote:
> On Wed, Jan 02, 2013 at 08:31:59PM +0800, lei yang wrote:
>> I don't understand the domain bus slot fuction in below xml,becase,
>> this is used when deal with management of host devices that can be
>> handed to guests via passthrough as  elements in the domain
>> XML.( from http://libvirt.org/formatnode.html)
>>
>> I don't see it use passthrough feature, why it has "domain" bus" slot"
>> and function here
>
> You're mixing up two different addresses here - host addresses vs guest
> addresses. Every device added to QEMU has a guest address of some kind,
> typically either PCI or USB based. This specifies where the device
> appears to the guest OS. When using host device passthrough, you also
> need to specify the address of the host PCI device to assign.
>
>
>> 
>> 
>> 
>> 
>> > function='0x0'/>
>> 
>>
>> 
>> 
>> 
>> 
>> > function='0x0'/>
>> 
>
> These are both guest addresses.
>
> They are important, because when you start/stop guests, you want the
> devices to always have the same address. If the address changed, then
> some OS like Windows get unhappy and require re-activation.
>

Thanks for pointing me for this
I have two questiones.

1)I'm using guest as guest,I don't assgin address(disk or nic) to
guest,but it works well, any risk here?

2)I don't know how to set the address for guest, or just set a host
unused address to guest

Lei

> Daniel
> --
> |: http://berrange.com  -o-http://www.flickr.com/photos/dberrange/
> :|
> |: http://libvirt.org  -o- http://virt-manager.org
> :|
> |: http://autobuild.org   -o- http://search.cpan.org/~danberr/
> :|
> |: http://entangle-photo.org   -o-   http://live.gnome.org/gtk-vnc
> :|
>

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users


[libvirt-users] can someone explain why the domain, function bus, slot function is used in this xml

2013-01-02 Thread lei yang
I don't understand the domain bus slot fuction in below xml,becase,
this is used when deal with management of host devices that can be
handed to guests via passthrough as  elements in the domain
XML.( from http://libvirt.org/formatnode.html)

I don't see it use passthrough feature, why it has "domain" bus" slot"
and function here
















which originally comes from this blog:
http://blog.allanglesit.com/2011/03/kvm-guests-manipulating-libvirt-xml-for-guest-creation/

Any point?

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users


Re: what's wrong with the openbsd-netcat?

2012-12-31 Thread lei yang
Forget to say, My netcat from
http://code.google.com/p/openbsd-netcat/source/checkout

On 12/31/12, lei yang  wrote:
> Hi experts
>
> On my OS, I run kvm with below comand to do the migrate: it meet below
> error
> 1)
> #qemu-system-x86_64 --enable-kvm -smp 2 -m 512 -net nic,model=e1000
> -net tap,script=/etc/qemu-ifup -hda /boot/guest_img.raw  -kernel
> /boot/bzImage -append "root=/dev/hda rw console=ttyS0,115200 ip=dhcp
> selinux=0" -nographic -incoming "exec:nc -l 5200"
> it print:
> nc: Protocol not available
> load of migration failed
>
> 2)Then I copy the "nc" binary from redhat, then it works well
>
> can you please help me about this issue?
>
> Lei
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


what's wrong with the openbsd-netcat?

2012-12-31 Thread lei yang
Hi experts

On my OS, I run kvm with below comand to do the migrate: it meet below error
1)
#qemu-system-x86_64 --enable-kvm -smp 2 -m 512 -net nic,model=e1000
-net tap,script=/etc/qemu-ifup -hda /boot/guest_img.raw  -kernel
/boot/bzImage -append "root=/dev/hda rw console=ttyS0,115200 ip=dhcp
selinux=0" -nographic -incoming "exec:nc -l 5200"
it print:
nc: Protocol not available
load of migration failed

2)Then I copy the "nc" binary from redhat, then it works well

can you please help me about this issue?

Lei
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: [git-users] git config fetch.recurseSubmodules true && git pull doesn't update the submodule

2012-12-26 Thread lei yang
On Wed, Dec 26, 2012 at 4:57 AM, Konstantin Khomoutov
 wrote:
> On Wed, 26 Dec 2012 12:49:43 +0800
> lei yang  wrote:
>
>> I want others when they "git pull" it also update the submoudles .but
>> below two ways don't work for me
>>
>> 1)
>> git config fetch.recurseSubmodules true && git pull
>>
>> 2)
>> git config alias.pullall '!git pull && git submodule update --init
>> --recursive' > it works with git pullall
>> but I don't know how let it work with "git pull"
>> git config alias.pull '!git pull && git submodule update --init
>> --recursive'  ---> by remove "all" it doesn't work
>
> I don't know for sure, but it seems Git aliases do not override
> built-in commands, and I think this is an obviously right thing.
> I see no problem with using `git pullall` to do what you need instead
> of trying to *override* the default.  If "pullall" is too long-winded
> for you, make it "pa" instead.

Thanks for the reply.Good question

Because I want to put a submodule in tree, but others may NOT know
this, they often do "git pull"  to update.
and don't know it has a submodule there. I don't want to introduce trouble

Lei

-- 




Re: [git-users] git config fetch.recurseSubmodules true && git pull doesn't update the submodule

2012-12-26 Thread lei yang
On Wed, Dec 26, 2012 at 8:57 PM, Konstantin Khomoutov
 wrote:
> On Wed, 26 Dec 2012 12:49:43 +0800
> lei yang  wrote:
>
>> I want others when they "git pull" it also update the submoudles .but
>> below two ways don't work for me
>>
>> 1)
>> git config fetch.recurseSubmodules true && git pull
>>
>> 2)
>> git config alias.pullall '!git pull && git submodule update --init
>> --recursive' > it works with git pullall
>> but I don't know how let it work with "git pull"
>> git config alias.pull '!git pull && git submodule update --init
>> --recursive'  ---> by remove "all" it doesn't work
>
> I don't know for sure, but it seems Git aliases do not override
> built-in commands, and I think this is an obviously right thing.
> I see no problem with using `git pullall` to do what you need instead
> of trying to *override* the default.  If "pullall" is too long-winded
> for you, make it "pa" instead.


Thanks for the reply.Good question

Because I want to put a submodule in tree, but others may NOT know
this, they often do "git pull"  to update.
and don't know it has a submodule there. I don't want to introduce trouble

Lei

-- 




[git-users] git config fetch.recurseSubmodules true && git pull doesn't update the submodule

2012-12-25 Thread lei yang
Hi expert,

I want others when they "git pull" it also update the submoudles .but
below two ways don't work for me

1)
git config fetch.recurseSubmodules true && git pull

2)
git config alias.pullall '!git pull && git submodule update --init
--recursive' > it works with git pullall
but I don't know how let it work with "git pull"
git config alias.pull '!git pull && git submodule update --init
--recursive'  ---> by remove "all" it doesn't work

Thanks
Lei

-- 




Re: [git-users] Re: Is it possible cp some file from one branch to another without switch branch

2012-12-18 Thread lei yang
Thanks very much! it works for me

Lei


On Mon, Dec 17, 2012 at 5:23 AM, Thomas Ferris Nicolaisen
 wrote:
> On Monday, December 17, 2012 1:58:53 PM UTC+1, lei yang wrote:
>>
>> Hi expert,
>>
>> now I'm in the branch A, I want to copy some file from branch B to A
>>
>> any help?
>>
>
> You have to commit changes in the current branch, so you have to switch
> first to the branch where you want to add and commit the file, check out the
> file from the other branch, and then commit it:
>
> #initial check in of the file in branch B:
> git checkout B
> git add some-file.txt
> git commit -m "Added some file"
>
> Now copy the file over to branch A:
>
> git checkout A
> git checkout B some-file.txt
> git status
> # On branch A
> # Changes to be committed:
> #   (use "git reset HEAD ..." to unstage)
> #
> # new file:   some-file.txt
> #
>
> --
>
>

-- 




Re: [git-users] Is it possible cp some file from one branch to another without switch branch

2012-12-17 Thread lei yang
Thanks for the tips, I have another question, If I forget branch B
files' path, how chould I do without switch to B

Lei

On Mon, Dec 17, 2012 at 6:18 AM, Konstantin Khomoutov
 wrote:
> On Mon, 17 Dec 2012 04:58:53 -0800
> lei yang  wrote:
>
>> now I'm in the branch A, I want to copy some file from branch B to A
>>
>> any help?
>
> Note that the already proposed
>
> git checkout $branch -- $filename
> git add $filename
>
> approach does not copy the file's history recorded in  -- you
> only get the file's contents.
> In general, it's impossible to copy a file from one branch to another,
> preserving its history.
>
> Also note that if you want to save the file's contents into a
> differently named file, you should use another approach:
>
> git show $branch:$filename > $newfilename

-- 




[git-users] Is it possible cp some file from one branch to another without switch branch

2012-12-17 Thread lei yang
Hi expert,

now I'm in the branch A, I want to copy some file from branch B to A

any help?

Lei

-- 




[git-users] about add one remote's branch to local branch and keep update

2012-12-14 Thread lei yang
Hi experts,

I use below command to add a remote git's branch  to local branch

git fetch g...@github.com:leiyang/git_testA.git  master:local

The question is: if remote tree's "master" branch update, how could I
update local tree's "local" branch to sync with remote tree's
"master"?

Thanks

Lei

-- 




[git-users] ls it possible to change the commit info

2012-12-10 Thread lei yang
HI experts

my git log is something like
#git log




commit a83052d1f102341bb5931955658266882d7b8953
Author: Lei Yang 
Date:   Tue Dec 11 13:36:45 2012 +0800

add testfileA2.add

commit b8558af3986384e657bfdbc48154830395b340c6
Author: Lei Yang 
Date:   Tue Dec 11 13:30:10 2012 +0800

rm testfileA1.add

commit ad9d46d348542bb4b7d8d09fbe6b4a6548cb68ff
Merge: acaa35d aaa479a
Author: Lei Yang 
Date:   Tue Dec 11 13:37:01 2012 +0800

Merge branch 'master' of github.com:leiyang/git_testA


I find "rm testfileA1.add" is wrong, I want to change it to "add
testfileA1.add", and DON'T leave "rm testfileA1.add" info in the
commit log
Is it possible?

Lei

-- 




Re: [git-users] Digest for git-users@googlegroups.com - 4 Messages in 1 Topic

2012-12-10 Thread lei yang
On Tue, Dec 11, 2012 at 11:00 AM, lei yang  wrote:
> On Tue, Dec 11, 2012 at 10:02 AM, King Jin  wrote:
>> git submodule might be the one you are looking for.
>>
>> $git clone git://github.com/lei/B.git B
>> $cd B
>> $git submodule add git://github.com/lei/A.git kvm
>> $git submodule update
>>
>
> Thanks it works for me, and if I do a 'git push', and then clone it to local
> and git pull, does it update the kvm part if kvm part has update?

I just did a try, it doesn't update the kvm dir,how can I Do a git
pull in B an then it can update
kvm dir in B

Lei


>
> Lei
>
>> anyone else cloned your repo B, just run `git submodule update` (exclude `)
>> will get the commit history of repo A by changing current working directory
>> to kvm and run git log.
>>
>> On Tue, Dec 11, 2012 at 8:49 AM,  wrote:
>>>
>>>   Today's Topic Summary
>>>
>>> Group: http://groups.google.com/group/git-users/topics
>>>
>>> git help about git merge to a specific dir and keep the commit log [4
>>> Updates]
>>>
>>>  git help about git merge to a specific dir and keep the commit log
>>>
>>> lei yang  Dec 10 04:35PM +0800
>>>
>>> Hi experts,
>>>
>>> I have two tree A and B,
>>> A: git://github.com/lei/A.git
>>> B: git://github.com/lei/B.git
>>>
>>> B is like
>>> [lyang0@ubuntu B]$ ls
>>> benchmark box-opening kvm
>>>
>>> I want merge A tree to B,
>>> 1) put A's content to the "kvm" directory of B
>>> 2)I want to keep all the A's commit log(history) into B's tree
>>>
>>> can you give me some instruction? Thanks
>>>
>>> Lei
>>>
>>>
>>>
>>> John McKown  Dec 10 06:42AM -0800
>>>
>>> I think this is similar to what I gave to a post a couple of days ago. You
>>> might try the following on your local machine. I will show the commands
>>> that I would enter in a Linux BASH shell. I don't do Windows or MacOSX,
>>> but
>>> you seem to be on Ubuntu.. First, I would clone the B repository into a
>>> local working directory. I would then clone A into a different local
>>> working directory. Of course, double check the results of all the commands
>>> after doing them and stop if something goes wrong. I have not redone them
>>> myself to remind myself exactly what to do. It's why I'm showing doing
>>> this
>>> into new subdirectories. Make sure the new B working directory is good
>>> before pushing to github!
>>>
>>> cd ~/some-subdir #go someplace to make the new A and B working directories
>>> git clone git://github.com/lei/A.git
>>> git clone git://github.com/lei/B.git
>>> cd A
>>> git checkout -b kvm #make a new branch in A
>>> mkdir kvm #make a kvm directory for A
>>> git mv * kvm #move everything into it
>>> git commit -m 'move to kvm subdirectory for copy to B' #Needed???
>>> cd ../B #go to the B subdirectory
>>> git remote add temp ../A/.git #make A's .git directory a remote here
>>> git merge --no-commit temp kvm #merge in A's kvm branch
>>> git commit -m 'Copy all of kvm from project A'
>>> git remote rm temp #remove that temp repository
>>> git push #update github.
>>>
>>> I think that is fairly close to what you may need. Perhaps one of the true
>>> "old, wise ones" (I'm an "old, not-so-wise one") will also give you some
>>> pointers.
>>>
>>> On Monday, December 10, 2012 2:35:58 AM UTC-6, lei yang wrote:
>>>
>>>
>>>
>>> John McKown  Dec 10 08:12AM -0800
>>>
>>> possible mini bug, instead of:
>>>
>>> git mv * kvm
>>>
>>> use
>>>
>>> git mv \* kvm
>>>
>>> The \ in front of the * tells git to expand the file names instead of
>>> having the shell do it. My mistake.
>>>
>>> On Monday, December 10, 2012 2:35:58 AM UTC-6, lei yang wrote:
>>>
>>>
>>>
>>> Konstantin Khomoutov  Dec 10 08:30PM +0400
>>>
>>> On Mon, 10 Dec 2012 16:35:58 +0800
>>> > 1) put A's content to the "kvm" directory of B
>>> > 2)I want to keep all the A's commit log(history) into B's tree
>>>
>>> > can you give me some instruction? Thanks
>>>
>>> This is what the "add" commmand of git-subtree [1] does.
>>> Note that since 1.7.11, this script is included in Git, in its
>>> "contrib" directory, so it's callable from there.
>>>
>>> 1. https://github.com/apenwarr/git-subtree
>>>
>>>
>>>
>>> You received this message because you are subscribed to the Google Group
>>> git-users.
>>> You can post via email.
>>> To unsubscribe from this group, send an empty message.
>>> For more options, visit this group.
>>>
>>> --
>>>
>>>
>>
>>
>> --
>>
>>

-- 




Re: [git-users] Re: git help about git merge to a specific dir and keep the commit log

2012-12-10 Thread lei yang
Thanks it works for me, It maybe mv "kvm: itself to "kvm" dir, anyway
you instruction perform well for me
thanks again and I will try git mv \* kvm

Lei


On Tue, Dec 11, 2012 at 12:12 AM, John McKown
 wrote:
> possible mini bug, instead of:
>
> git mv * kvm
>
> use
>
> git mv \* kvm
>
> The \ in front of the * tells git to expand the file names instead of having
> the shell do it. My mistake.
>
>
> On Monday, December 10, 2012 2:35:58 AM UTC-6, lei yang wrote:
>>
>> Hi experts,
>>
>> I have two tree A and B,
>> A: git://github.com/lei/A.git
>> B: git://github.com/lei/B.git
>>
>> B is like
>> [lyang0@ubuntu B]$ ls
>> benchmark  box-opening  kvm
>>
>> I want merge A tree to B,
>> 1) put A's content to the "kvm" directory of B
>> 2)I want to keep all the A's commit log(history) into B's tree
>>
>> can you give me some instruction?  Thanks
>>
>> Lei
>
> --
>
>

-- 




Re: [git-users] Digest for git-users@googlegroups.com - 4 Messages in 1 Topic

2012-12-10 Thread lei yang
On Tue, Dec 11, 2012 at 10:02 AM, King Jin  wrote:
> git submodule might be the one you are looking for.
>
> $git clone git://github.com/lei/B.git B
> $cd B
> $git submodule add git://github.com/lei/A.git kvm
> $git submodule update
>

Thanks it works for me, and if I do a 'git push', and then clone it to local
and git pull, does it update the kvm part if kvm part has update?

Lei

> anyone else cloned your repo B, just run `git submodule update` (exclude `)
> will get the commit history of repo A by changing current working directory
> to kvm and run git log.
>
> On Tue, Dec 11, 2012 at 8:49 AM,  wrote:
>>
>>   Today's Topic Summary
>>
>> Group: http://groups.google.com/group/git-users/topics
>>
>> git help about git merge to a specific dir and keep the commit log [4
>> Updates]
>>
>>  git help about git merge to a specific dir and keep the commit log
>>
>> lei yang  Dec 10 04:35PM +0800
>>
>> Hi experts,
>>
>> I have two tree A and B,
>> A: git://github.com/lei/A.git
>> B: git://github.com/lei/B.git
>>
>> B is like
>> [lyang0@ubuntu B]$ ls
>> benchmark box-opening kvm
>>
>> I want merge A tree to B,
>> 1) put A's content to the "kvm" directory of B
>> 2)I want to keep all the A's commit log(history) into B's tree
>>
>> can you give me some instruction? Thanks
>>
>> Lei
>>
>>
>>
>> John McKown  Dec 10 06:42AM -0800
>>
>> I think this is similar to what I gave to a post a couple of days ago. You
>> might try the following on your local machine. I will show the commands
>> that I would enter in a Linux BASH shell. I don't do Windows or MacOSX,
>> but
>> you seem to be on Ubuntu.. First, I would clone the B repository into a
>> local working directory. I would then clone A into a different local
>> working directory. Of course, double check the results of all the commands
>> after doing them and stop if something goes wrong. I have not redone them
>> myself to remind myself exactly what to do. It's why I'm showing doing
>> this
>> into new subdirectories. Make sure the new B working directory is good
>> before pushing to github!
>>
>> cd ~/some-subdir #go someplace to make the new A and B working directories
>> git clone git://github.com/lei/A.git
>> git clone git://github.com/lei/B.git
>> cd A
>> git checkout -b kvm #make a new branch in A
>> mkdir kvm #make a kvm directory for A
>> git mv * kvm #move everything into it
>> git commit -m 'move to kvm subdirectory for copy to B' #Needed???
>> cd ../B #go to the B subdirectory
>> git remote add temp ../A/.git #make A's .git directory a remote here
>> git merge --no-commit temp kvm #merge in A's kvm branch
>> git commit -m 'Copy all of kvm from project A'
>> git remote rm temp #remove that temp repository
>> git push #update github.
>>
>> I think that is fairly close to what you may need. Perhaps one of the true
>> "old, wise ones" (I'm an "old, not-so-wise one") will also give you some
>> pointers.
>>
>> On Monday, December 10, 2012 2:35:58 AM UTC-6, lei yang wrote:
>>
>>
>>
>> John McKown  Dec 10 08:12AM -0800
>>
>> possible mini bug, instead of:
>>
>> git mv * kvm
>>
>> use
>>
>> git mv \* kvm
>>
>> The \ in front of the * tells git to expand the file names instead of
>> having the shell do it. My mistake.
>>
>> On Monday, December 10, 2012 2:35:58 AM UTC-6, lei yang wrote:
>>
>>
>>
>> Konstantin Khomoutov  Dec 10 08:30PM +0400
>>
>> On Mon, 10 Dec 2012 16:35:58 +0800
>> > 1) put A's content to the "kvm" directory of B
>> > 2)I want to keep all the A's commit log(history) into B's tree
>>
>> > can you give me some instruction? Thanks
>>
>> This is what the "add" commmand of git-subtree [1] does.
>> Note that since 1.7.11, this script is included in Git, in its
>> "contrib" directory, so it's callable from there.
>>
>> 1. https://github.com/apenwarr/git-subtree
>>
>>
>>
>> You received this message because you are subscribed to the Google Group
>> git-users.
>> You can post via email.
>> To unsubscribe from this group, send an empty message.
>> For more options, visit this group.
>>
>> --
>>
>>
>
>
> --
>
>

-- 




[git-users] git help about git merge to a specific dir and keep the commit log

2012-12-10 Thread lei yang
Hi experts,

I have two tree A and B,
A: git://github.com/lei/A.git
B: git://github.com/lei/B.git

B is like
[lyang0@ubuntu B]$ ls
benchmark  box-opening  kvm

I want merge A tree to B,
1) put A's content to the "kvm" directory of B
2)I want to keep all the A's commit log(history) into B's tree

can you give me some instruction?  Thanks

Lei

-- 




[git-users] about git commit -m add the more than two lines log

2012-10-11 Thread lei yang
I know git commit -m "somethingsomething" will give the git info in the git log

but I don't know how to write some thing with more than two line some
thing like

something something
something something
something something

in the git log

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: help about boot with initrd

2012-08-25 Thread lei yang
On Sat, Aug 25, 2012 at 2:47 PM, Stefan Hajnoczi  wrote:
> On Sat, Aug 25, 2012 at 2:34 AM, lei yang  wrote:
>> I used the redhat RHEL6 boot with initrd but it failed, can sb help me
>> ( I have tried /dev/ram /dev/ram0 and
>> initrd-2.6.32-279.el6.x86_64kdump.img)
>>
>> [root@localhost boot]# /usr/libexec/qemu-kvm --enable-kvm -smp 8 -m
>> 1024 -net nic,model=virtio -net tap,script=/etc/qemu-ifup -initrd
>> /boot/initramfs-2.6.32-279.el6.x86_64.img  -kernel
>> /boot/vmlinuz-2.6.32-279.el6.x86_64 -append "root=/dev/ram rw
>> console=ttyS0,115200 " -nographic
>
> What are you trying to do?
>
> A kernel and initramfs have been specified.  The boot is working up
> until the point where the initramfs wants to mount the root file

Is there a way to see the contents from initramfs? and it seems
initrmafs contains
the kernel modules not contain the rootfs

For redhat, how chould I get a rootfs for guest use?

Lei

> system.  Where is the root file system, you haven't attached any disks
> to the guest?
>
> If you want to test booting just into the initramfs then you probably
> need to pass a distro-specific debugging option to stop the initramfs
> before it switches to the root file system.  Sorry, I don't know
> dracut.
>
> Stefan
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


help about boot with initrd

2012-08-24 Thread lei yang
hi experts

I used the redhat RHEL6 boot with initrd but it failed, can sb help me
( I have tried /dev/ram /dev/ram0 and
initrd-2.6.32-279.el6.x86_64kdump.img)

[root@localhost boot]# /usr/libexec/qemu-kvm --enable-kvm -smp 8 -m
1024 -net nic,model=virtio -net tap,script=/etc/qemu-ifup -initrd
/boot/initramfs-2.6.32-279.el6.x86_64.img  -kernel
/boot/vmlinuz-2.6.32-279.el6.x86_64 -append "root=/dev/ram rw
console=ttyS0,115200 " -nographic

Google, Inc.
Serial Graphics Adapter 07/26/11
SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $
(mockbu...@hs20-bc2-3.build.redhat.com) Tue Jul 26 15:05:08 UTC 2011
4 0


SeaBIOS (version seabios-0.6.1.2-19.el6)



gPXE (http://etherboot.org) - 00:03.0 CA00 PCI2.10 PnP BBS PMM3FE0@10 CA00


Probing EDD (edd=off to disable)... ok
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-279.el6.x86_64
(mockbu...@x86-008.build.bos.redhat.com) (gcc version 4.4.6 20120305
(Red Hat 4.4.6-4) (GCC) ) #1 SMP Wed Jun 13 18:24:36 EDT 2012
Command line: root=/dev/ram rw console=ttyS0,115200
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
Disabled fast string operations
BIOS-provided physical RAM map:
 BIOS-e820:  - 0009f000 (usable)
 BIOS-e820: 0009f000 - 000a (reserved)
 BIOS-e820: 000f - 0010 (reserved)
 BIOS-e820: 0010 - 3fffd000 (usable)
 BIOS-e820: 3fffd000 - 4000 (reserved)
 BIOS-e820: fffbc000 - 0001 (reserved)
DMI 2.4 present.
SMBIOS version 2.4 @ 0xFD9D0
last_pfn = 0x3fffd max_arch_pfn = 0x4
PAT not supported by CPU.
init_memory_mapping: -3fffd000
RAMDISK: 3f0d - 3ffef305
ACPI: RSDP 000fd9a0 00014 (v00 BOCHS )
ACPI: RSDT 3fffd320 00030 (v01 BOCHS  BXPCRSDT 0001 BXPC 0001)
ACPI: FACP 3d10 00074 (v01 BOCHS  BXPCFACP 0001 BXPC 0001)
ACPI: DSDT 3fffd7c0 024FD (v01   BXPC   BXDSDT 0001 INTL 20090123)
ACPI: FACS 3cc0 00040
ACPI: SSDT 3fffd470 00345 (v01 BOCHS  BXPCSSDT 0001 BXPC 0001)
ACPI: APIC 3fffd350 000B0 (v01 BOCHS  BXPCAPIC 0001 BXPC 0001)
No NUMA configuration found
Faking a node at -3fffd000
Bootmem setup node 0 -3fffd000
  NODE_DATA [9000 - 0003cfff]
  bootmap [0003d000 -  00044fff] pages 8
(7 early reservations) ==> bootmem [00 - 003fffd000]
  #0 [00 - 001000]   BIOS data page ==> [00 - 001000]
  #1 [006000 - 008000]   TRAMPOLINE ==> [006000 - 008000]
  #2 [000100 - 0002012024]TEXT DATA BSS ==> [000100 - 0002012024]
  #3 [003f0d - 003ffef305]  RAMDISK ==> [003f0d - 003ffef305]
  #4 [09f000 - 10]BIOS reserved ==> [09f000 - 10]
  #5 [0002013000 - 0002013059]  BRK ==> [0002013000 - 0002013059]
  #6 [008000 - 009000]  PGTABLE ==> [008000 - 009000]
found SMP MP-table at [880fd9f0] fd9f0
kvm-clock: Using msrs 4b564d01 and 4b564d00
kvm-clock: cpu 0, msr 0:1c1f601, boot clock
Zone PFN ranges:
  DMA  0x0001 -> 0x1000
  DMA320x1000 -> 0x0010
  Normal   0x0010 -> 0x0010
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
0: 0x0001 -> 0x009f
0: 0x0100 -> 0x0003fffd
ACPI: PM-Timer IO Port: 0xb008
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] enabled)
ACPI: LAPIC (acpi_id[0x04] lapic_id[0x04] enabled)
ACPI: LAPIC (acpi_id[0x05] lapic_id[0x05] enabled)
ACPI: LAPIC (acpi_id[0x06] lapic_id[0x06] enabled)
ACPI: LAPIC (acpi_id[0x07] lapic_id[0x07] enabled)
ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
ACPI: IOAPIC (id[0x08] address[0xfec0] gsi_base[0])
IOAPIC[0]: apic_id 8, version 17, address 0xfec0, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
Using ACPI (MADT) for SMP configuration information
SMP: Allowing 8 CPUs, 0 hotplug CPUs
PM: Registered nosave memory: 0009f000 - 000a
PM: Registered nosave memory: 000a - 000f
PM: Registered nosave memory: 000f - 0010
Allocating PCI resources starting at 4000 (gap: 4000:bffbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:8 nr_cpu_ids:8 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @88000220 s94424 r8192 d24360 u262144
pcpu-alloc: s94424 r8192 d24360 u262144 alloc=1*2097152
pcpu-alloc: [0] 0

Re: [git-users] how to git format patch without swith to that branch

2012-07-24 Thread lei yang
On Tue, Jul 24, 2012 at 7:53 PM, Thomas Ferris Nicolaisen
 wrote:
> On Tuesday, July 24, 2012 7:05:14 AM UTC+2, lei yang wrote:
>>
>> how to?
>>
>
> If you want to format-patch for example the last two commits on branch B,
> this should do it:
>
> git format-patch B~2..B
>


Yes I know this, but I don't know how to fromat it with commit without
switching to B

eg: git format-patch commit1..commit2,

but How could I could I format branch B's?


> The dot-dot (..) notation specifies a range from B-minus-two to B-head.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/git-users/-/T-UD6NjibKEJ.
> To post to this group, send email to git-users@googlegroups.com.
> To unsubscribe from this group, send email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/git-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: help about free bsp version netcat to work it on ubuntu

2012-07-24 Thread lei yang
On Tue, Jul 24, 2012 at 12:03 AM, Carl Johnson  wrote:
> lei yang  writes:
>
>> On Mon, Jul 23, 2012 at 12:25 AM, Polytropon  wrote:
>>> On Sun, 22 Jul 2012 22:41:57 +0800, lei yang wrote:
>>>> Hi,
>>>>
>>>> I want to build a "netcat" on my local pc (ubuntu) with gcc, is it
>>>> possible? I'm new to free bsd
>>>
>>
>>
>> it has no "-U" flag, can you point me where I get this version
>>
> Have you checked the other version of netcat already available?  A quick
> check shows these four versions for Ubuntu:
>
> netcat: TCP/IP swiss army knife -- transitional package
> netcat-openbsd: TCP/IP swiss army knife
> netcat-traditional: TCP/IP swiss army knife
> netcat6: TCP/IP swiss army knife with IPv6 support
>

how did you get the list?

To be clear, haha, I just want to know how to build a fress bsd netcat
on a no-fressbsd platform

Lei




> --
> Carl Johnsonca...@peak.org
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: help about free bsp version netcat to work it on ubuntu

2012-07-24 Thread lei yang
On Mon, Jul 23, 2012 at 11:52 PM, Alejandro Imass  wrote:
> On Mon, Jul 23, 2012 at 11:29 AM, lei yang  wrote:
>> On Mon, Jul 23, 2012 at 10:36 PM, Polytropon  wrote:
>>> On Mon, 23 Jul 2012 12:59:55 +0800, lei yang wrote:
>>>> On Mon, Jul 23, 2012 at 12:25 AM, Polytropon  wrote:
>>>> > On Sun, 22 Jul 2012 22:41:57 +0800, lei yang wrote:
>>>> >> Hi,
>
> [...]
>
>>
>> I don't know where to find the source code in Red Hat.
>>
>
> Why don't you just toss RedHat and use FreeBSD ? Most everything you
> run on Linux will run on FreeBSD and there are also Desktop-friendly
> distros of FreeBSD such as PC-BSD which, in Linux terms, is to FreeBSD
> somewhat akin to what Ubuntu is to Debian.
>

Aha,I just want to learn want to know how to build the netcat for
freebsd version on a no-freebsd platform

Lei

> Anyway, give PC-BSD a try and you won't regret it:
>
> http://www.pcbsd.org/
>
>
> Cheers,
>
> --
> Alejandro Imass
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: help about free bsp version netcat to work it on ubuntu

2012-07-24 Thread lei yang
On Tue, Jul 24, 2012 at 12:47 AM, Polytropon  wrote:
> On Mon, 23 Jul 2012 23:29:38 +0800, lei yang wrote:
>> Yes, the second version I post is using the source from you supplied,
>> then I compiled it, but it has no
>> "-U" flag like what I post, it seems a version different casued this.
>
> Yes. The version distributed by the ports collection is different
> from that one supplied with the base system of FreeBSD.
>
> To try _that_ version, you can download the source tarball and
> extract it; in the directory
>
> # wget ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/9.0-RELEASE/src.txz
> # tar xvf src.txz

Thanks for the help,

tar xvf src.txz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Read 4896 bytes from src.txz
tar: Error exit delayed from previous errors
[lyang0@ala-lpggp2 lyang0]$ tar xvf src.txz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Read 4896 bytes from src.txz
tar: Error exit delayed from previous errors



> # cd cusr/src/ontrib/netcat/
> # ls
> FREEBSD-XlistFREEBSD-vendor   atomicio.h   netcat.c
> FREEBSD-upgrade  atomicio.c   nc.1 socks.c
> #
> 
>

Suppose gcc -o netcat netcat.c atomicio.c socks.c should work

Lei



> You can check the FTP server for other versions of the OS
> (e. g. different branch and architecture, starting at
> ftp://ftp.freebsd.org/pub/FreeBSD/releases/, then selecting
> architecture and finally the OS version). There are also
> different ways of obtaining the sources, but the solution
> shown here should be sufficient.
>
> (You can use "tar xvf src.txz usr/src/contrib/netcat" to
> only extract the files for netcat instead of everything,
> but it _might_ be possible that the build process needs
> some files from other locations.)
>
> If you don't have wget installed, stock "ftp "
> command should also work for downloading.
>
>
>
>
>> I don't know where to find the source code in Red Hat.
>
> Me neither, but check "man hier" on a RH system to get
> the documentation about the file system hierarchy which
> should have detailed information on what is stored where.
>
>
>
>
> --
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


[libvirt-users] help about libvirt console

2012-07-24 Thread lei yang
Hi list,

My xml is like below, it works well with "virsh console qemu1"



  qemu1
  1024000
  512000
  1
  
hvm

/boot/bzImage
console=ttyS0 root=/dev/hda rw
  
  

  
  


  

  



I want to use virtio console, so I change


  

then
I do
#virsh define newvm.xml
#virsh start qemu1
#virsh console qemu1

it show nothing

any help for the virtio console seting?

Lei

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users


Re: [git-users] how to git format patch without swith to that branch

2012-07-23 Thread lei yang
how to?

Lei

On Tue, Jul 24, 2012 at 12:18 AM, Konstantin Khomoutov
 wrote:
> On Mon, 23 Jul 2012 23:43:50 +0800
> lei yang  wrote:
>
>> I want to format patch from branch A, but current branch is B, is it
>> possible to format patch without switching to B?
> Yes.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] how to git format patch without swith to that branch

2012-07-23 Thread lei yang
Hi

I want to format patch from branch A, but current branch is B, is it
possible to format patch without switching to B?

Lei

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: help about free bsp version netcat to work it on ubuntu

2012-07-23 Thread lei yang
On Mon, Jul 23, 2012 at 10:36 PM, Polytropon  wrote:
> On Mon, 23 Jul 2012 12:59:55 +0800, lei yang wrote:
>> On Mon, Jul 23, 2012 at 12:25 AM, Polytropon  wrote:
>> > On Sun, 22 Jul 2012 22:41:57 +0800, lei yang wrote:
>> >> Hi,
>> >>
>> >> I want to build a "netcat" on my local pc (ubuntu) with gcc, is it
>> >> possible? I'm new to free bsd
>> >
>> > I hope I don't misunderstand your intention: You are trying to
>> > build a Linux executable of netcat from FreeBSD's sources?
>> >
>> > You _do_ know that FreeBSD and Linux (here: Ubuntu) are two
>> > totally different operating systems. I'm not sure code is
>> > compatible at this level (but it maybe _could_ be, you'd
>> > have to try it).
>> >
>> > The netcat program (nc) is part of the FreeBSD operating
>> > system for some time now. There's also a port of netcat
>> > in /usr/ports/net/netcat (which can also be used). That
>> > port's Makefile lists some sources:
>> >
>> > ftp://coast.cs.purdue.edu/pub/tools/unix/netutils/netcat/
>> >
>> > ftp://ftp.cuhk.edu.hk/pub/packages/security/purdue/netutils/netcat/
>> >
>> > http://www.planetmirror.com/pub/lprng/TOOLS/
>> >
>> > You could try to use that source distribution as well.
>> >
>> >
>>
>>
>> Thanks for the great help, I have built it successfully on my ubuntu.
>> I find it's not the version I want
>> I want use the version on Rehat,which has a "-U" flag( yes, I want to
>> use this flag) but the above version has no this flag
>>
>> on redhat:
>>
>> usage: nc [-46DdhklnrStUuvzC] [-i interval] [-p source_port]
>> [-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_version]
>> [-x proxy_address[:port]] [hostname] [port[s]]
>>   Command Summary:
>>   -4  Use IPv4
>>   -6  Use IPv6
>>   -D  Enable the debug socket option
>>   -d  Detach from stdin
>>   -h  This help text
>>   -i secs Delay interval for lines sent, ports scanned
>>   -k  Keep inbound sockets open for multiple connects
>>   -l  Listen mode, for inbound connects
>>   -n  Suppress name/port resolutions
>>   -p port Specify local port for remote connects
>>   -r  Randomize remote ports
>>   -s addr Local source address
>>   -T ToS  Set IP Type of Service
>>   -C  Send CRLF as line-ending
>>   -t  Answer TELNET negotiation
>>   -U  Use UNIX domain socket
>>   -u  UDP mode
>>   -v  Verbose
>>   -w secs Timeout for connects and final net reads
>>   -X protoProxy protocol: "4", "5" (SOCKS) or "connect"
>>   -x addr[:port]  Specify proxy address and port
>>   -z  Zero-I/O mode [used for scanning]
>>   Port numbers can be individual or ranges: lo-hi [inclusive]
>>
>> --
>> with the above you list:
>>
>> lyang0@lyang0-OptiPlex-755:~/tmp/nc110$ ./nc -help
>> [v1.10]
>> connect to somewhere: nc [-options] hostname port[s] [ports] ...
>> listen for inbound:   nc -l -p port [-options] [hostname] [port]
>> options:
>>   -g gateway  source-routing hop point[s], up to 8
>>   -G num  source-routing pointer: 4, 8, 12, ...
>>   -h  this cruft
>>   -i secs delay interval for lines sent, ports scanned
>>   -l  listen mode, for inbound connects
>>   -n  numeric-only IP addresses, no DNS
>>   -o file hex dump of traffic
>>   -p port local port number
>>   -r  randomize local and remote ports
>>   -s addr local source address
>>   -u  UDP mode
>>   -v  verbose [use twice to be more verbose]
>>   -w secs timeout for connects and final net reads
>>   -z

Re: help about free bsp version netcat to work it on ubuntu

2012-07-22 Thread lei yang
On Mon, Jul 23, 2012 at 12:25 AM, Polytropon  wrote:
> On Sun, 22 Jul 2012 22:41:57 +0800, lei yang wrote:
>> Hi,
>>
>> I want to build a "netcat" on my local pc (ubuntu) with gcc, is it
>> possible? I'm new to free bsd
>
> I hope I don't misunderstand your intention: You are trying to
> build a Linux executable of netcat from FreeBSD's sources?
>
> You _do_ know that FreeBSD and Linux (here: Ubuntu) are two
> totally different operating systems. I'm not sure code is
> compatible at this level (but it maybe _could_ be, you'd
> have to try it).
>
> The netcat program (nc) is part of the FreeBSD operating
> system for some time now. There's also a port of netcat
> in /usr/ports/net/netcat (which can also be used). That
> port's Makefile lists some sources:
>
> ftp://coast.cs.purdue.edu/pub/tools/unix/netutils/netcat/
>
> ftp://ftp.cuhk.edu.hk/pub/packages/security/purdue/netutils/netcat/
>
> http://www.planetmirror.com/pub/lprng/TOOLS/
>
> You could try to use that source distribution as well.
>
>


Thanks for the great help, I have built it successfully on my ubuntu.
I find it's not the version I want
I want use the version on Rehat,which has a "-U" flag( yes, I want to
use this flag) but the above version has no this flag

on redhat:

usage: nc [-46DdhklnrStUuvzC] [-i interval] [-p source_port]
  [-s source_ip_address] [-T ToS] [-w timeout] [-X proxy_version]
  [-x proxy_address[:port]] [hostname] [port[s]]
Command Summary:
-4  Use IPv4
-6  Use IPv6
-D  Enable the debug socket option
-d  Detach from stdin
-h  This help text
-i secs Delay interval for lines sent, ports scanned
-k  Keep inbound sockets open for multiple connects
-l  Listen mode, for inbound connects
-n  Suppress name/port resolutions
-p port Specify local port for remote connects
-r  Randomize remote ports
-s addr Local source address
-T ToS  Set IP Type of Service
-C  Send CRLF as line-ending
-t  Answer TELNET negotiation
-U  Use UNIX domain socket
-u  UDP mode
-v  Verbose
-w secs Timeout for connects and final net reads
-X protoProxy protocol: "4", "5" (SOCKS) or "connect"
-x addr[:port]  Specify proxy address and port
-z  Zero-I/O mode [used for scanning]
Port numbers can be individual or ranges: lo-hi [inclusive]

--
with the above you list:

lyang0@lyang0-OptiPlex-755:~/tmp/nc110$ ./nc -help
[v1.10]
connect to somewhere:   nc [-options] hostname port[s] [ports] ...
listen for inbound: nc -l -p port [-options] [hostname] [port]
options:
-g gateway  source-routing hop point[s], up to 8
-G num  source-routing pointer: 4, 8, 12, ...
-h  this cruft
-i secs delay interval for lines sent, ports scanned
-l  listen mode, for inbound connects
-n  numeric-only IP addresses, no DNS
-o file hex dump of traffic
-p port local port number
-r  randomize local and remote ports
-s addr local source address
-u  UDP mode
-v  verbose [use twice to be more verbose]
-w secs timeout for connects and final net reads
-z  zero-I/O mode [used for scanning]
port numbers can be individual or ranges: lo-hi [inclusive]


it has no "-U" flag, can you point me where I get this version

Lei





>
>> I have to quesion:
>> 1)where to download it's source it for "netcat"
>
> They can be found in /usr/src/contrib/netcat/ once you have
> extracted the source distribution of FreeBSD. Depending on
> which version of the OS (branch, revision, platform) you
> need, you have to select the corresponding archive from
> one of the download mirrors.
>
> Visit http://www.freebsd.org/ to find out where and how
> to obtain FreeBSD (or components of it). I would suggest
> using one of the FTP servers that are accessible for you
> at a good speed.
>
>
>
>&

help about free bsp version netcat to work it on ubuntu

2012-07-22 Thread lei yang
Hi,

I want to build a "netcat" on my local pc (ubuntu) with gcc, is it
possible? I'm new to free bsd

I have to quesion:
1)where to download it's source it for "netcat"
2)how to build it on ubuntu with gcc? only make?

Thanks
Lei
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: [Autotest] Biweekly upstream qemu-kvm test report (using autotest + manual) - Week 28

2012-07-20 Thread lei yang
On Fri, Jul 20, 2012 at 11:18 PM, Qingtang Zhou  wrote:
> * On 2012-07-20 22:52:21 +0800, lei yang (yanglei.f...@gmail.com) wrote:
>> Hi
>>
>> seems there is no virtio_console testing.which I have no one pass
>> and why some of the below cases is mannual, and they are not in the
> Because we have no guest agent test case in autotest now. though I'm
> working on it. lol

The guest agent testcase you metioned, is it the manual cases in this thead?
It seems we it select some cases not all the case to do the "Biweekly
upstream test",
is there some stratigies to select which cases to run



>> defalut tests.cfg
>>
>> Lei
>>
>>
>> On Fri, Jul 20, 2012 at 8:20 PM, Prem Karat
>>  wrote:
>> > Folks,
>> > Please find the result of upstream testing. This time we got a kernel panic
>> > error while compiling mainline kernel (3.5.rc7). Hence we could verify only
>> > mainline qemu-kvm.
>> >
>> > We are analysing the failures and we will raise the bugs with the 
>> > appropriate
>> > community.
>> >
>> > Host Kernel: Kernel: 3.1.0-7.fc16.x86_64
>> > KVM Version:  1.1.50 (qemu-kvm-devel)
>> > Date: Thu Jul 19 17:51:29 2012
>> > Stat: 59 tests executed - 40 have passed 19 Failed
>> > Number of Bugs raised: 2
>> > https://bugzilla.kernel.org/show_bug.cgi?id=44901
>> > https://github.com/autotest/autotest/issues/467
>> >
>> >
>> > Tests Failed:
>> >
>> > ..
>> >  Test Name 
>> >  ResultRun time
>> > ..
>> >
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.ffsb   
>> >  FAIL   29
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.disktest   
>> >  FAIL   24
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.hackbench  
>> >  FAIL   22
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.cpu_hotplug
>> >  FAIL   57
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.block_stream
>> >  FAIL  159
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.linux_s3
>> >  FAIL  303
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.boot_guest.qemu_boot_cpu_model
>> >   FAIL 2280
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.boot_guest.qemu_boot_cpu_model_and_flags
>> > FAIL 2483
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.stress_guest.qemu_test_boot_guest_and_try_flags_under_load
>> >   FAIL 2859
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.stress_guest.qemu_test_online_offline_guest_CPUs
>> > FAIL 2619
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.stress_guest.qemu_test_migration_with_additional_flags
>> >   FAIL 2665
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.blkio_throttle   
>> >  FAIL2
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.blkio_throttle_multi
>> >   FAIL  344
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.cpu_share
>> >  FAIL1
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.cpuset_cpus  
>> >  FAIL1
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.freezer  
>> >  FAIL2
>> > -
>> >
>

Re: [Autotest] Biweekly upstream qemu-kvm test report (using autotest + manual) - Week 28

2012-07-20 Thread lei yang
On Fri, Jul 20, 2012 at 11:18 PM, Qingtang Zhou  wrote:
> * On 2012-07-20 22:52:21 +0800, lei yang (yanglei.f...@gmail.com) wrote:
>> Hi
>>
>> seems there is no virtio_console testing.which I have no one pass
>> and why some of the below cases is mannual, and they are not in the
> Because we have no guest agent test case in autotest now. though I'm
> working on it. lol

The guest agent testcase you metioned, is it the manual cases in this thead?
It seems we it select some cases not all the case to do the "Biweekly
upstream test",
is there some stratigies to select which cases to run



>> defalut tests.cfg
>>
>> Lei
>>
>>
>> On Fri, Jul 20, 2012 at 8:20 PM, Prem Karat
>>  wrote:
>> > Folks,
>> > Please find the result of upstream testing. This time we got a kernel panic
>> > error while compiling mainline kernel (3.5.rc7). Hence we could verify only
>> > mainline qemu-kvm.
>> >
>> > We are analysing the failures and we will raise the bugs with the 
>> > appropriate
>> > community.
>> >
>> > Host Kernel: Kernel: 3.1.0-7.fc16.x86_64
>> > KVM Version:  1.1.50 (qemu-kvm-devel)
>> > Date: Thu Jul 19 17:51:29 2012
>> > Stat: 59 tests executed - 40 have passed 19 Failed
>> > Number of Bugs raised: 2
>> > https://bugzilla.kernel.org/show_bug.cgi?id=44901
>> > https://github.com/autotest/autotest/issues/467
>> >
>> >
>> > Tests Failed:
>> >
>> > ..
>> >  Test Name 
>> >  ResultRun time
>> > ..
>> >
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.ffsb   
>> >  FAIL   29
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.disktest   
>> >  FAIL   24
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.hackbench  
>> >  FAIL   22
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.cpu_hotplug
>> >  FAIL   57
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.block_stream
>> >  FAIL  159
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.linux_s3
>> >  FAIL  303
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.boot_guest.qemu_boot_cpu_model
>> >   FAIL 2280
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.boot_guest.qemu_boot_cpu_model_and_flags
>> > FAIL 2483
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.stress_guest.qemu_test_boot_guest_and_try_flags_under_load
>> >   FAIL 2859
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.stress_guest.qemu_test_online_offline_guest_CPUs
>> > FAIL 2619
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.stress_guest.qemu_test_migration_with_additional_flags
>> >   FAIL 2665
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.blkio_throttle   
>> >  FAIL2
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.blkio_throttle_multi
>> >   FAIL  344
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.cpu_share
>> >  FAIL1
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.cpuset_cpus  
>> >  FAIL1
>> > kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.freezer  
>> >  FAIL2
>> > -
>> >
>

Re: [Autotest] Biweekly upstream qemu-kvm test report (using autotest + manual) - Week 28

2012-07-20 Thread lei yang
Hi

seems there is no virtio_console testing.which I have no one pass
and why some of the below cases is mannual, and they are not in the
defalut tests.cfg

Lei


On Fri, Jul 20, 2012 at 8:20 PM, Prem Karat
 wrote:
> Folks,
> Please find the result of upstream testing. This time we got a kernel panic
> error while compiling mainline kernel (3.5.rc7). Hence we could verify only
> mainline qemu-kvm.
>
> We are analysing the failures and we will raise the bugs with the appropriate
> community.
>
> Host Kernel: Kernel: 3.1.0-7.fc16.x86_64
> KVM Version:  1.1.50 (qemu-kvm-devel)
> Date: Thu Jul 19 17:51:29 2012
> Stat: 59 tests executed - 40 have passed 19 Failed
> Number of Bugs raised: 2
> https://bugzilla.kernel.org/show_bug.cgi?id=44901
> https://github.com/autotest/autotest/issues/467
>
>
> Tests Failed:
>
> ..
>  Test Name
>   ResultRun time
> ..
>
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.ffsb  
>   FAIL   29
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.disktest  
>   FAIL   24
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.hackbench 
>   FAIL   22
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.cpu_hotplug   
>   FAIL   57
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.block_stream   
>   FAIL  159
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.linux_s3   
>   FAIL  303
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.boot_guest.qemu_boot_cpu_model
>   FAIL 2280
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.boot_guest.qemu_boot_cpu_model_and_flags
> FAIL 2483
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.stress_guest.qemu_test_boot_guest_and_try_flags_under_load
>   FAIL 2859
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.stress_guest.qemu_test_online_offline_guest_CPUs
> FAIL 2619
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.stress_guest.qemu_test_migration_with_additional_flags
>   FAIL 2665
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.blkio_throttle  
>   FAIL2
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.blkio_throttle_multi
>   FAIL  344
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.cpu_share   
>   FAIL1
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.cpuset_cpus 
>   FAIL1
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.freezer 
>   FAIL2
> -
>
>
> Tests Passed:
>
> ...
>  Test Name
>   ResultRun time
> ...
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.dbench
>   PASS  131
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.ebizzy
>   PASS   22
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.stress
>   PASS   88
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.sleeptest 
>   PASS   55
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.iozone
>   PASS  540
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.jumbo  
>   PASS  537
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.blkio_bandwidth 
>   PASS  28
> kvm.qed.virtio_bl

Re: [Autotest] Biweekly upstream qemu-kvm test report (using autotest + manual) - Week 28

2012-07-20 Thread lei yang
Hi

seems there is no virtio_console testing.which I have no one pass
and why some of the below cases is mannual, and they are not in the
defalut tests.cfg

Lei


On Fri, Jul 20, 2012 at 8:20 PM, Prem Karat
 wrote:
> Folks,
> Please find the result of upstream testing. This time we got a kernel panic
> error while compiling mainline kernel (3.5.rc7). Hence we could verify only
> mainline qemu-kvm.
>
> We are analysing the failures and we will raise the bugs with the appropriate
> community.
>
> Host Kernel: Kernel: 3.1.0-7.fc16.x86_64
> KVM Version:  1.1.50 (qemu-kvm-devel)
> Date: Thu Jul 19 17:51:29 2012
> Stat: 59 tests executed - 40 have passed 19 Failed
> Number of Bugs raised: 2
> https://bugzilla.kernel.org/show_bug.cgi?id=44901
> https://github.com/autotest/autotest/issues/467
>
>
> Tests Failed:
>
> ..
>  Test Name
>   ResultRun time
> ..
>
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.ffsb  
>   FAIL   29
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.disktest  
>   FAIL   24
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.hackbench 
>   FAIL   22
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.cpu_hotplug   
>   FAIL   57
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.block_stream   
>   FAIL  159
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.linux_s3   
>   FAIL  303
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.boot_guest.qemu_boot_cpu_model
>   FAIL 2280
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.boot_guest.qemu_boot_cpu_model_and_flags
> FAIL 2483
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.stress_guest.qemu_test_boot_guest_and_try_flags_under_load
>   FAIL 2859
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.stress_guest.qemu_test_online_offline_guest_CPUs
> FAIL 2619
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cpuflags.stress_guest.qemu_test_migration_with_additional_flags
>   FAIL 2665
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.blkio_throttle  
>   FAIL2
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.blkio_throttle_multi
>   FAIL  344
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.cpu_share   
>   FAIL1
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.cpuset_cpus 
>   FAIL1
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.freezer 
>   FAIL2
> -
>
>
> Tests Passed:
>
> ...
>  Test Name
>   ResultRun time
> ...
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.dbench
>   PASS  131
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.ebizzy
>   PASS   22
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.stress
>   PASS   88
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.sleeptest 
>   PASS   55
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.autotest.iozone
>   PASS  540
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.jumbo  
>   PASS  537
> kvm.qed.virtio_blk.smp2.virtio_net.RHEL.6.2.x86_64.cgroup.blkio_bandwidth 
>   PASS  28
> kvm.qed.virtio_bl

Re: [Autotest] anyone passed virtio_console.basic testing

2012-07-18 Thread lei yang
On Thu, Jul 19, 2012 at 12:15 PM, Pradeep Kumar Surisetty
 wrote:
> * lei yang  [2012-07-19 11:13:30]:
>
>> Hi experts,
>>
>> I just try, there is no testcases related virito_console passed
>>
>> Below is the virtio_console.basic testing, any points?
>
> just now verified on xKVM. it works fine.
> you might want to check test case if any arch specific code is there.
>

what is xKVM here.
I'm using x86 arch. do you have any special config for this testing, I
only enable CONFIG_VIRTIO_CONSOLE=y

Lei



>>
>>
>> 07/19 10:50:20 INFO |virt_test_utils.py: wait_for_login: 92|
>> Logged into guest vm1 using serial connection
>> 07/19 10:50:20 DEBUG| virt_vm.py:get_address:467|
>> Found/Verified IP 128.224.165.248 for VM vm1 NIC 0
>> 07/19 10:50:20 DEBUG| virt_remote.py: remote_scp:328| Trying
>> to SCP with command 'scp -v -o UserKnownHostsFile=/dev/null -o
>> PreferredAuthentications=password -r  -P 22
>> /autotest/client/virt/scripts/virtio_console_guest.py
>> root@128.224.165.248:/tmp', timeout 3600s
>> 07/19 10:50:20 DEBUG| virt_remote.py:_remote_scp:270| Got 'Are
>> you sure...', sending 'yes'
>> 07/19 10:50:21 DEBUG| virt_remote.py:_remote_scp:276| Got
>> password prompt, sending 'root'
>> 07/19 10:50:21 DEBUG| virt_remote.py:_remote_scp:303| SCP
>> process terminated with status 0
>> 07/19 10:50:21 DEBUG|virtio_console.py:_init_guest:551|
>> compile virtio_console_guest.py on guest vm1
>> 07/19 10:50:21 DEBUG|virtio_console.py:  _on_guest:630|
>> Executing 'python -OO /tmp/virtio_console_guest.py -c&& echo -n 'PASS:
>> Compile virtio_guest finished' ||echo -n 'FAIL: Compile virtio_guest
>> failed'' on virtio_console_guest.py loop, vm: vm1, timeout: 10
>> 07/19 10:50:21 DEBUG|virtio_console.py:_init_guest:563|
>> Starting virtio_console_guest.py on guest vm1
>> 07/19 10:50:21 DEBUG|virtio_console.py:  _on_guest:630|
>> Executing 'python /tmp/virtio_console_guest.pyo &&echo -n 'PASS:
>> virtio_guest finished' ||echo -n 'FAIL: virtio_guest failed'' on
>> virtio_console_guest.py loop, vm: vm1, timeout: 10
>> 07/19 10:50:23 DEBUG|virtio_console.py:  _on_guest:630|
>> Executing 'virt.init([['console-0', 'yes'], ['console-1', 'yes'],
>> ['serialport-2', 'no'], ['serialport-3', 'no']])' on
>> virtio_console_guest.py loop, vm: vm1, timeout: 10
>> 07/19 10:50:31 DEBUG|virt_env_process.py:_update_address_cache:
>> 509| (address cache) DHCP lease OK: 00:15:17:bb:5e:88 -->
>> 128.224.165.205
>> 07/19 10:50:33 INFO |virtio_console.py:run_virtio_console:   2164|
>> Summary: 0 tests passed  0 test failed :
>>
>> 07/19 10:50:33 ERROR|   virt_test.py:   run_once:104| Test
>> failed: TestFail: Failed to execute 'virt.init([['console-0', 'yes'],
>> ['console-1', 'yes'], ['serialport-2', 'no'], ['serialport-3',
>> 'no']])' on virtio_console_guest.py, vm: vm1, output:
>> Cmd process timeout. Data in console: PASS: compile
>> PASS: Compile virtio_guest finishedroot@x86-64-kvm-guest:~#
>> root@x86-64-kvm-guest:~# python /tmp/virtio_console_guest.pyo &&echo
>> -n 'PASS> virtio_guest finished' |> finished' ||echo -n 'FAIL: virtio_gue> 'FAIL: virtio_guest failed'
>> Traceback (most recent call last):
>>   File "/var/volatile/tmp/virtio_console_guest.py", line 929, in 
>> main()
>>   File "/var/volatile/tmp/virtio_console_guest.py", line 906, in main
>> daemon.is_file_open(stdout))[0][0]
>> IndexError: list index out of range
>> FAIL: virtio_guest failedroot@x86-64-kvm-guest:~#
>> virt.init([['console-0', 'yes'], ['console-1',
>> 'yes'> ['serialport-2', 'no'],> 'no'], ['serialport-3', 'no']])
>> -sh: syntax error near unexpected token `[['console-0','
>> root@x86-64-kvm-guest:~#
>> 07/19 10:50:33 DEBUG|virt_env_process.py:postprocess:414|
>> Param 'convert_ppm_files_to_png' specified, converting PPM files to
>> PNG format
>> 07/19 10:50:33 DEBUG|virt_env_process.py:postprocess:427|
>> Param 'keep_ppm_files' not specified, removing all PPM files from
>> debug dir
>> 07/19 10:50:33 DEBUG|vi

[Autotest] anyone passed virtio_console.basic testing

2012-07-18 Thread lei yang
Hi experts,

I just try, there is no testcases related virito_console passed

Below is the virtio_console.basic testing, any points?


07/19 10:50:20 INFO |virt_test_utils.py: wait_for_login: 92|
Logged into guest vm1 using serial connection
07/19 10:50:20 DEBUG| virt_vm.py:get_address:467|
Found/Verified IP 128.224.165.248 for VM vm1 NIC 0
07/19 10:50:20 DEBUG| virt_remote.py: remote_scp:328| Trying
to SCP with command 'scp -v -o UserKnownHostsFile=/dev/null -o
PreferredAuthentications=password -r  -P 22
/autotest/client/virt/scripts/virtio_console_guest.py
root@128.224.165.248:/tmp', timeout 3600s
07/19 10:50:20 DEBUG| virt_remote.py:_remote_scp:270| Got 'Are
you sure...', sending 'yes'
07/19 10:50:21 DEBUG| virt_remote.py:_remote_scp:276| Got
password prompt, sending 'root'
07/19 10:50:21 DEBUG| virt_remote.py:_remote_scp:303| SCP
process terminated with status 0
07/19 10:50:21 DEBUG|virtio_console.py:_init_guest:551|
compile virtio_console_guest.py on guest vm1
07/19 10:50:21 DEBUG|virtio_console.py:  _on_guest:630|
Executing 'python -OO /tmp/virtio_console_guest.py -c&& echo -n 'PASS:
Compile virtio_guest finished' ||echo -n 'FAIL: Compile virtio_guest
failed'' on virtio_console_guest.py loop, vm: vm1, timeout: 10
07/19 10:50:21 DEBUG|virtio_console.py:_init_guest:563|
Starting virtio_console_guest.py on guest vm1
07/19 10:50:21 DEBUG|virtio_console.py:  _on_guest:630|
Executing 'python /tmp/virtio_console_guest.pyo &&echo -n 'PASS:
virtio_guest finished' ||echo -n 'FAIL: virtio_guest failed'' on
virtio_console_guest.py loop, vm: vm1, timeout: 10
07/19 10:50:23 DEBUG|virtio_console.py:  _on_guest:630|
Executing 'virt.init([['console-0', 'yes'], ['console-1', 'yes'],
['serialport-2', 'no'], ['serialport-3', 'no']])' on
virtio_console_guest.py loop, vm: vm1, timeout: 10
07/19 10:50:31 DEBUG|virt_env_process.py:_update_address_cache:
509| (address cache) DHCP lease OK: 00:15:17:bb:5e:88 -->
128.224.165.205
07/19 10:50:33 INFO |virtio_console.py:run_virtio_console:   2164|
Summary: 0 tests passed  0 test failed :

07/19 10:50:33 ERROR|   virt_test.py:   run_once:104| Test
failed: TestFail: Failed to execute 'virt.init([['console-0', 'yes'],
['console-1', 'yes'], ['serialport-2', 'no'], ['serialport-3',
'no']])' on virtio_console_guest.py, vm: vm1, output:
Cmd process timeout. Data in console: PASS: compile
PASS: Compile virtio_guest finishedroot@x86-64-kvm-guest:~#
root@x86-64-kvm-guest:~# python /tmp/virtio_console_guest.pyo &&echo
-n 'PASS
main()
  File "/var/volatile/tmp/virtio_console_guest.py", line 906, in main
daemon.is_file_open(stdout))[0][0]
IndexError: list index out of range
FAIL: virtio_guest failedroot@x86-64-kvm-guest:~#
virt.init([['console-0', 'yes'], ['console-1',
'yes'
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30| l =
lambda : test.runtest(self, url, tag, args, dargs)
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|   File
"/autotest/client/test.py", line 115, in runtest
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|
job.sysinfo.log_after_each_iteration)
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|   File
"/autotest/client/shared/test.py", line 927, in runtest
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|
mytest._exec(args, dargs)
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|   File
"/autotest/client/shared/test.py", line 420, in _exec
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|
_call_test_function(self.execute, *p_args, **p_dargs)
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|   File
"/autotest/client/shared/test.py", line 835, in _call_test_function
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|
return func(*args, **dargs)
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|   File
"/autotest/client/shared/test.py", line 293, in execute
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|
postprocess_profiled_run, args, dargs)
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|   File
"/autotest/client/shared/test.py", line 210, in _call_run_once
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|
*args, **dargs)
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|   File
"/autotest/client/shared/test.py", line 316, in run_once_profiling
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|
self.run_once(*args, **dargs)
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|   File
"/autotest/client/virt/virt_test.py", line 97, in run_once
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|
run_func(self, params, env)
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|   File
"/autotest/client/tests/kvm/tests/virtio_console.py", line 2149, in
run_virtio_console
07/19 10:50:35 DEBUG|parallel.py: fork_start: 30|
init_guest(vm, consoles)
07/19 10:50:35

[git-users] from the commit titles to get the commit ids

2012-07-07 Thread lei yang
Hi experts

I have a file which comtains commit title

#cat file
Revert "eglibc: fix perl path in target scripts on fedora 17
eglibc: fix perl path in target scripts on fedora 17 alpha  
eglibc: fix re-execution of task

how could I change the title to the commit id lists?

Thanks
Lei

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Re: the issue I met when I want to back port some thing from one directory

2012-07-07 Thread lei yang
The goal is back port the patches to denzil branch from master

1)git://git.openembedded.org/openembedded-core
2)git checkout -b denizl origin/denizl
3)get the commit list in branch master but not in the denzil (to
format patches then apply to denzil branch_
[lyang0@ala-lpggp2 openembedded-core]$ git rev-list ^denzil master
meta/recipes-devtools/binutils
81ecc9d468c36b36c4b2ccc4ab5f366611a8fa46
f4ed063e32f064e996a4c29760fa4ac49f1ed73c
7b1caeca8e5c0dd066bb940fe6d2dff4d22bf816
f0ad3c8ce298ca492938e4ded2263c54213786f6
29916bfbbea3bb785e8e4d332848b19ebc0a3ea9
99f859612e16d636702f9bb11825259d90e468f2
447d77b9e33a68f748c96a152eae19148e43ed7c

and then I can format above commit id with "git format-patch" to get patches

but when I patch with the patches I find it patch failed due to commit
"447d77b9e33a68f748c96a152eae19148e43ed7c" content
has been in the denizl branch even denzil has no
commit"447d77b9e33a68f748c96a152eae19148e43ed7c" ,I find the root
casues is
denizl has the commit "15c8ea4d35edbcaf03c94aba06ded85851679157" which
is the same as "447d77b9e33a68f748c96a152eae19148e43ed7c" in
master branch

My quesion is how could I get the commit list that has not the
duplicated content

Thanks
Lei

On 7/7/12, Thomas Ferris Nicolaisen  wrote:
> On Saturday, July 7, 2012 3:52:05 PM UTC+2, lei yang wrote:
>>
>> Hi expert,
>>
>> I often get the commit in the branch "upmaster" but not in the
>> "local_branch" for one dir named meta/recipes-core/eglibc with below
>> cmd
>>
>> git rev-list ^local_branch upmaster meta/recipes-core/eglibc
>>
>> and then get the commit list. and then format the commit with patches
>> and then patch to "local_branch"
>>
>> But, today I find some commit even in the branch "upmaster" not in
>> then "local_branch"  but with this commit formated patches patch to
>> "local_branch" failed
>>
>> eg:
>> in the "upmaster" it has the commit
>> 447d77b9e33a68f748c96a152eae19148e43ed7c
>> not in the branch "local_branch" (this get from above cmd)
>>
>> upmaster's branch:
>> commit 447d77b9e33a68f748c96a152eae19148e43ed7c
>> Author: Saul Wold 
>> Date:   Thu Apr 19 11:01:15 2012 -0700
>>
>> binutils: add embedspu for ppc builds
>>
>> WARNING: For recipe binutils, the following files/directories were
>> installed but not shipped in any package:
>> WARNING:   /usr/bin/embedspu
>> Signed-off-by: Saul Wold 
>>
>> how ever when I format this commit with patches it pacth failed to
>> local_branch, the reson is local branch has patched with this commit's
>> changes but with another commit id
>>
>> loca_branch:
>> commit 15c8ea4d35edbcaf03c94aba06ded85851679157
>> Author: Saul Wold 
>> Date:   Thu Apr 19 11:01:15 2012 -0700
>>
>> binutils: add embedspu for ppc builds
>>
>> WARNING: For recipe binutils, the following files/directories were
>> installed but not shipped in any package:
>> WARNING:   /usr/bin/embedspu
>> Signed-off-by: Saul Wold 
>>
>> they have the same content but different commit id
>>
>> how chould I avoid this duplicate patches ( to get a list not duplicate)
>>
>> Lei
>>
>
> Hi,
>
> I'm afraid I still don't understand your problem.
>
> Please explain, at a higher/abstract level what you are trying to achieve
> here. Perhaps someone has ideas for an approach that would be better.
>
> Then tell us exactly which git commands you are using, what output they
> produce, what you were expecting and if possible an example repository
> where we can recreate the problem. If not, describe the repositories, the
> branches and their configuration as clearly as possible.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/git-users/-/sDS57UffeRMJ.
> To post to this group, send email to git-users@googlegroups.com.
> To unsubscribe from this group, send email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/git-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] the issue I met when I want to back port some thing from one directory

2012-07-07 Thread lei yang
Hi expert,

I often get the commit in the branch "upmaster" but not in the
"local_branch" for one dir named meta/recipes-core/eglibc with below
cmd

git rev-list ^local_branch upmaster meta/recipes-core/eglibc

and then get the commit list. and then format the commit with patches
and then patch to "local_branch"

But, today I find some commit even in the branch "upmaster" not in
then "local_branch"  but with this commit formated patches patch to
"local_branch" failed

eg:
in the "upmaster" it has the commit 447d77b9e33a68f748c96a152eae19148e43ed7c
not in the branch "local_branch" (this get from above cmd)

upmaster's branch:
commit 447d77b9e33a68f748c96a152eae19148e43ed7c
Author: Saul Wold 
Date:   Thu Apr 19 11:01:15 2012 -0700

binutils: add embedspu for ppc builds

WARNING: For recipe binutils, the following files/directories were
installed but not shipped in any package:
WARNING:   /usr/bin/embedspu
Signed-off-by: Saul Wold 

how ever when I format this commit with patches it pacth failed to
local_branch, the reson is local branch has patched with this commit's
changes but with another commit id

loca_branch:
commit 15c8ea4d35edbcaf03c94aba06ded85851679157
Author: Saul Wold 
Date:   Thu Apr 19 11:01:15 2012 -0700

binutils: add embedspu for ppc builds

WARNING: For recipe binutils, the following files/directories were
installed but not shipped in any package:
WARNING:   /usr/bin/embedspu
Signed-off-by: Saul Wold 

they have the same content but different commit id

how chould I avoid this duplicate patches ( to get a list not duplicate)

Lei

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Re: The commit share

2012-07-07 Thread lei yang
I think I should reprase my question in another thread, the quesion is
more complicated now

Lei


On 7/6/12, Thomas Ferris Nicolaisen  wrote:
> Hi,
>
> Could you explain what you mean with "*the shared commit id since the
> commitid1 for the two branch*"? Perhaps provide an example?
>
> On Friday, July 6, 2012 2:39:44 PM UTC+2, lei yang wrote:
>>
>>  Hi expert,
>>
>> With git merge-base I get the commitid1 for the merge base . How could I
>> get the shared commit id since the commitid1 for the two branch?
>>
>> Thanks
>> Lei
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/git-users/-/ZxRa-Ga7v_cJ.
> To post to this group, send email to git-users@googlegroups.com.
> To unsubscribe from this group, send email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/git-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] how to know which file changed since one commit?

2012-07-06 Thread lei yang
Hi Experts,

I want to know which file is changed sine one commit, how could I do?

Thanks
Lei

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] Re: The commit share

2012-07-06 Thread lei yang
I'm on the train with my phone,tomrrow I would give you example.

On Friday, July 6, 2012, Thomas Ferris Nicolaisen wrote:

> Hi,
>
> Could you explain what you mean with "*the shared commit id since the
> commitid1 for the two branch*"? Perhaps provide an example?
>
> On Friday, July 6, 2012 2:39:44 PM UTC+2, lei yang wrote:
>>
>>  Hi expert,
>>
>> With git merge-base I get the commitid1 for the merge base . How could I
>> get the shared commit id since the commitid1 for the two branch?
>>
>> Thanks
>> Lei
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/git-users/-/ZxRa-Ga7v_cJ.
> To post to this group, send email to 
> git-users@googlegroups.com 'git-users@googlegroups.com');>
> .
> To unsubscribe from this group, send email to
> git-users+unsubscr...@googlegroups.com  'git-users%2bunsubscr...@googlegroups.com');>.
> For more options, visit this group at
> http://groups.google.com/group/git-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] Re: How to add the branch from another tree to my local branch

2012-07-06 Thread lei yang
On Friday, July 6, 2012, Konstantin Khomoutov wrote:

> On Fri, 6 Jul 2012 20:34:34 +0800
> lei yang > wrote:
>
> > As the title, thanks in advance
> Please try to rephrase as it appears you're using wrong terminology.
>
> A tree is a collection of files.  For instance, each commit refers to a
> tree which captures the state of files that commit refers to.
> Hence the statement "a branch from another tree" has no sence: trees do
> not have branches, repositories do.
> So did you mean branch instead?
>
> Next, what do you mean by using the "add ... branch .. to ... branch"
> statement?  You can't "add" two branches, this has no sense.
> Did you mean merging?  Or what?
>
> I can try to guess you wanted one of these:
> 1) Make a certain branch from a certain (remote) repository to appear in
>your local repository.


Yes this one,make the branch from remote to be as my local branch



> 2) Merge a certain branch from a certain (remote) repository with one
>of the branches in your local repository?
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] The commit share

2012-07-06 Thread lei yang
 Hi expert,

With git merge-base I get the commitid1 for the merge base . How could I
get the shared commit id since the commitid1 for the two branch?

Thanks
Lei

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] How to add the branch from another tree to my local branch

2012-07-06 Thread lei yang
As the title, thanks in advance

Lei

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [Autotest] any one met this issue. more like a python issue

2012-07-05 Thread lei yang
On Fri, Jul 6, 2012 at 12:33 AM, Qingtang Zhou  wrote:
> * On 2012-07-06 00:12:43 +0800, lei yang (yanglei.f...@gmail.com) wrote:
>>Hi list,
>>
>> some of my tests met below issue,seems a python2.7 issue,
>>
>>File "/autotest/client/virt/kvm_vm.py", line 2133, in migrate
>>   self.send_fd(fd_src, mig_fd_name)
>> File "/autotest/client/shared/error.py", line 138, in new_fn
>>   return fn(*args, **kwargs)
>> File "/autotest/client/virt/kvm_vm.py", line 2046, in send_fd
>>   self.monitor.cmd("getfd %s" % (fd_name), fd=fd)
>> File "/autotest/client/virt/kvm_monitor.py", line 324, in cmd
>>   self._passfd = virt_passfd_setup.import_passfd()
>> File "/autotest/client/virt/virt_passfd_setup.py", line 41, in 
>> import_passfd
>>   passfd_setup()
>> File "/autotest/client/virt/virt_passfd_setup.py", line 28, in 
>> passfd_setup
>>   objects = c.compile(SOURCES, include_dirs=[PYTHON_HEADERS],
>> extra_postargs=['-fPIC'])
>> File "/usr/lib64/python2.7/distutils/ccompiler.py", line 624, in compile
>>   self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
>> File "/usr/lib64/python2.7/distutils/unixccompiler.py", line 180,
>> in _compile
>>   raise CompileError, msg
>>   CompileError: command 'cc' failed with exit status 1
>>
>> you can reproduce it with "migrate.with_blkdebug.fd" test cases
>> how could I handle this, any workaround?
> Hi, Lei,
> Could you paste the whole error log file here?
>
> I doubt you don't have python devel package installed on host.
> If you're using fedora, you can install python-devel package to
> resolve this problem.
>


I checked
root@x86-64:/root# rpm -qa |grep python-dev
python-dev-2.7.2-r2.17.x86_64

The wohle error log would be

07/06 00:09:07 DEBUG|  kvm_vm.py:destroy:   1623| VM is down
07/06 00:09:07 DEBUG|virt_env_process.py:postprocess:414|
Param 'convert_ppm_files_to_png' specified, converting PPM files to
PNG format
07/06 00:09:07 DEBUG|virt_env_process.py:postprocess:427|
Param 'keep_ppm_files' not specified, removing all PPM files from
debug dir
07/06 00:09:07 DEBUG|virt_env_process.py:postprocess:450|
Param 'kill_unresponsive_vms' specified, killing all VMs that fail to
respond to a remote login request
07/06 00:09:07 ERROR|parallel.py: fork_start: 26| child
process failed
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30|
Traceback (most recent call last):
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30|   File
"/autotest/client/parallel.py", line 18, in fork_start
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30| l()
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30|   File
"/autotest/client/job.py", line 526, in 
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30| l =
lambda : test.runtest(self, url, tag, args, dargs)
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30|   File
"/autotest/client/test.py", line 115, in runtest
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30|
job.sysinfo.log_after_each_iteration)
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30|   File
"/autotest/client/shared/test.py", line 935, in runtest
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30|
mytest._exec(args, dargs)
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30|   File
"/autotest/client/shared/test.py", line 428, in _exec
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30|
_call_test_function(self.execute, *p_args, **p_dargs)
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30|   File
"/autotest/client/shared/test.py", line 850, in _call_test_function
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30|
raise error.UnhandledTestFail(e)
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30|
UnhandledTestFail: Unhandled CompileError: command 'cc' failed with
exit status 1[context: migrating 'vm1' --> Send fd 22 like
migfd_22_1341504543 to VM vm1]
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30|
Traceback (most recent call last):
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30|   File
"/autotest/client/shared/test.py", line 843, in _call_test_function
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30|
return func(*args, **dargs)
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30|   File
"/autotest/client/shared/test.py", line 301, in execute
07/06 00:09:07 DEBUG|parallel.py: fork_start: 30|
postprocess

[Autotest] any one met this issue. more like a python issue

2012-07-05 Thread lei yang
   Hi list,

some of my tests met below issue,seems a python2.7 issue,

   File "/autotest/client/virt/kvm_vm.py", line 2133, in migrate
  self.send_fd(fd_src, mig_fd_name)
File "/autotest/client/shared/error.py", line 138, in new_fn
  return fn(*args, **kwargs)
File "/autotest/client/virt/kvm_vm.py", line 2046, in send_fd
  self.monitor.cmd("getfd %s" % (fd_name), fd=fd)
File "/autotest/client/virt/kvm_monitor.py", line 324, in cmd
  self._passfd = virt_passfd_setup.import_passfd()
File "/autotest/client/virt/virt_passfd_setup.py", line 41, in import_passfd
  passfd_setup()
File "/autotest/client/virt/virt_passfd_setup.py", line 28, in passfd_setup
  objects = c.compile(SOURCES, include_dirs=[PYTHON_HEADERS],
extra_postargs=['-fPIC'])
File "/usr/lib64/python2.7/distutils/ccompiler.py", line 624, in compile
  self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib64/python2.7/distutils/unixccompiler.py", line 180,
in _compile
  raise CompileError, msg
  CompileError: command 'cc' failed with exit status 1

you can reproduce it with "migrate.with_blkdebug.fd" test cases
how could I handle this, any workaround?

Lei
___
Autotest mailing list
Autotest@test.kernel.org
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest


Re: [libvirt-users] qemu-kvm fails on RHEL6

2012-07-02 Thread lei yang
have you resolve this isse I met the same issue as you

qemu-system-x86_64: -netdev tap,id=idafPmQW,fd=21: TUNGETIFF ioctl()
failed: Inappropriate ioctl for device

Thanks
Lei


On Fri, Apr 6, 2012 at 4:36 PM, sumit sengupta  wrote:
> Hi,
>
> When I'm trying to run qemu-kvm command on RHEL6(linux kernel 2.6.32) then I
> get following errors which I think related to tap devices in my setup. Any
> idea why is that?
>
>
> bash$ LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none
> /usr/libexec/qemu-kvm -S -M rhel6.2.0 -enable-kvm -m 512 -smp
> 1,sockets=1,cores=1,threads=1 -name instance-0027 -uuid
> a93aeed9-15f7-4ded-b6b3-34c8d2c101a8 -nodefconfig -nodefaults -chardev
> socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-0027.monitor,server,nowait
> -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown
> -kernel /home/sumitsen/openstack/nova/instances/instance-0027/kernel
> -initrd /home/sumitsen/openstack/nova/instances/instance-0027/ramdisk
> -append root=/dev/vda console=ttyS0 -drive
> file=/home/sumitsen/openstack/nova/instances/instance-0027/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none
> -device
> virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0
> -netdev tap,fd=26,id=hostnet0 -device
> rtl8139,netdev=hostnet0,id=net0,mac=fa:16:3e:15:84:3e,bus=pci.0,addr=0x3
> -chardev
> file,id=charserial0,path=/home/sumitsen/openstack/nova/instances/instance-0027/console.log
> -device isa-serial,chardev=charserial0,id=serial0 -chardev
> pty,id=charserial1 -device isa-serial,chardev=charserial1,id=serial1 -usb
> -device usb-tablet,id=input0 -vnc 127.0.0.1:0 -k en-us -vga cirrus -device
> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
> char device redirected to /dev/pts/1
> qemu-kvm: -netdev tap,fd=26,id=hostnet0: TUNGETIFF ioctl() failed: Bad file
> descriptor
> TUNSETOFFLOAD ioctl() failed: Bad file descriptor
> qemu-kvm: -append root=/dev/vda: could not open disk image console=ttyS0: No
> such file or directory
>
> [sumitsen@sorrygate-dr ~]$ rpm -qa qemu-kvm
> qemu-kvm-0.12.1.2-2.209.el6.x86_64
>
> Let me know if you need any other info.
>
> Thanks,
> Sumit
>
> ___
> libvirt-users mailing list
> libvirt-users@redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users


[Valgrind-users] where is the official git tree for valgrind?

2012-06-25 Thread lei yang
Hi list,

can someone show me where is the official git tree for valgrind?

Lei

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


[git-users] How to see the which file changead between two commit and plus with commit id

2012-06-16 Thread lei yang
Hello

I know below command can get which file changed between the two commit
lyang0@lyang0-OptiPlex-755:~/git/kernel-3.4.x$ git diff --name-only
16d815fd230b81d49d395e91b084f0731ea6e4a2^..3e5f29bd22e597d66d9c1013a0ab190e6b48a8ba
drivers/i2c/busses/i2c-davinci.c
drivers/i2c/busses/i2c-tegra.c

can we show the info with which commit changed the file ?

Thanks
Lei

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Re: how to get the formated patches from the merge id

2012-06-15 Thread lei yang
On Fri, Jun 15, 2012 at 7:59 PM, Vincent van Ravesteijn  wrote:
> Op 15-6-2012 13:46, lei yang schreef:
>
>> Hi
>>
>> I mean,
>>
>> I have a commit like below
>> commit 0e93b4b304ae052ba1bc73f6d34a68556fe93429
>> Merge: b724cc1 51bfd29
>>
>> This commit done this work: merge b724cc1..51bfd29 commit,
>>
>> The question is how could I *onlys* through
>> 0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get the formated patch for
>> the
>> commit(b724cc1..51bfd29)
>
>
> It is still not clear what you want to accomplish.
>
> Your proposal: "git format-patch b724cc1..51bfd29" only gives you the
> commits that were in the branch 51bfd29 that weren't yet in the branch
> b724cc1. This just reflect the commits of one of the branches, but not the
> "work done by the merge commit".
>


but,git format-patch b724cc1..51bfd29 do the same work as what you
said "git format-patch 0e93b4b3^1..0e93b4b3^2"
so this do the same thing, formated patch which merged, can you give a
try to explain it in your workspace. and I don't understand what you
said "branch 51bfd29",51bfd29 is not the branch

Thanks for your help,git format-patch 0e93b4b3^1..0e93b4b3^2 is what I need.

Lei





> If this is really what you want you can do:
>
> $ git format-patch 0e93b4b3^1..0e93b4b3^2
>
> 0e93b4b3^1 means the first parent of 0e93b4b3, which is b724cc1. 0e93b4b3^2
> means the second parent, which is 51bfd29
>
> HTH,
>
> Vincent

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Re: how to get the formated patches from the merge id

2012-06-15 Thread lei yang
Hi

I mean,

I have a commit like below
commit 0e93b4b304ae052ba1bc73f6d34a68556fe93429
Merge: b724cc1 51bfd29

This commit done this work: merge b724cc1..51bfd29 commit,

The question is how could I *onlys* through
0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get the formated patch for
the
commit(b724cc1..51bfd29)

Lei


On Fri, Jun 15, 2012 at 4:02 PM, Thomas Ferris Nicolaisen
 wrote:
> I don't really understand what you're trying to do here. Could you try
> explaining in a little more detail?
>
>
> On Thursday, June 14, 2012 6:25:12 PM UTC+2, lei yang wrote:
>>
>> Hello list:
>>
>> eg:
>>
>> commit 0e93b4b304ae052ba1bc73f6d34a68556fe93429
>> Merge: b724cc1 51bfd29
>>
>> how can I from 0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get the
>> formated patch ?
>> (I know we can do git format-patch b724cc1..51bfd29, but how to from
>> 0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get?)
>>
>> Lei
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/git-users/-/kVcX-TK_VowJ.
> To post to this group, send email to git-users@googlegroups.com.
> To unsubscribe from this group, send email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/git-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] how to diff specifc file for different tags or branch

2012-06-14 Thread lei yang
Hi list
As the title,
if I have two branch A and B, how could I diff the file test.c for A and B

Lei

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] how to get the formated patches from the merge id

2012-06-14 Thread lei yang
Hello list:

eg:

commit 0e93b4b304ae052ba1bc73f6d34a68556fe93429
Merge: b724cc1 51bfd29

how can I from 0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get the
formated patch ?
(I know we can do git format-patch b724cc1..51bfd29, but how to from
0e93b4b304ae052ba1bc73f6d34a68556fe93429 to get?)

Lei

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] how to get the commit id from one file or multi file

2012-06-14 Thread lei yang
On Thu, Jun 14, 2012 at 11:46 PM, Bryce Verdier  wrote:
> On 06/14/2012 08:33 AM, lei yang wrote:
>>
>> Hi List,
>>
>> Can we get the commit id list for one file or multifile?
>>
>> Lei
>>
> What do you mean by commit id?
>

I mean the file in git tree has lots of commit, I want to get the
commit list for this file

Lei



> In trying to save time I'm going to take a guess and then try to answer
> based on that assumption. There is a command called git-blame. You can use
> that to see which person made a change to a particular file.
>
> Hope that helps.
>
> Bryce
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To post to this group, send email to git-users@googlegroups.com.
> To unsubscribe from this group, send email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/git-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] how to get the commit id from one file or multi file

2012-06-14 Thread lei yang
Hi List,

Can we get the commit id list for one file or multifile?

Lei

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] how to change the whole git tree to the patchsets

2012-06-14 Thread lei yang
On Thu, Jun 14, 2012 at 1:52 AM, Konstantin Khomoutov
 wrote:
> On Thu, 14 Jun 2012 01:03:27 +0800
> lei yang  wrote:
>
>> I want to change my whole tree to the patchset? which cmd can be
>> used ?
>
> git format-patch --root
>

Thanks
This works well, I know it can extract the file with patchsets with

git format-patch --root xx.c

how could I change the multi-file to pathsets?
eg: xx.c xx.h yy.c

Lei



> Did you RTFM?

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] how to change the whole git tree to the patchsets

2012-06-13 Thread lei yang
Hi list

I want to change my whole tree to the patchset? which cmd can be used ?

Lei

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] about git format-patch help

2012-06-13 Thread lei yang
On Wed, Jun 13, 2012 at 11:25 PM, Konstantin Khomoutov
 wrote:
> On Wed, 13 Jun 2012 02:32:25 -0700 (PDT)
> lei yang  wrote:
>
>> In my tree from git log I can see the last commit
>>
>> commit 1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6
>> Author: Mathieu Desnoyers 
>> Date:   Fri Sep 3 08:08:18 2010 -0400
>>
>>     LTTng modularization, import of lttng 0.226
>>
>>     Will match kernel tree "lttng 0.227".
>>
>>     Signed-off-by: Mathieu Desnoyers 
>>
>> to get the patch I run
>>
>> lyang0@lyang0-OptiPlex-755:~/git/lttng-modules$ git format-patch
>> 1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6^..1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6
>> fatal: ambiguous argument
>> '1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6^..1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6':
>> unknown revision or path not in the working tree.
>> Use '--' to separate paths from revisions
> [...]
>
> I think you'd better post this to the main Git list
> (git at vger.kernel.org, you can subscribe to it at [1]) as this might
> indicate a bug.
>
> To try to solve the problem at hand: does
>
> git format-patch -1 1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6
>
> work for you?


it did create a patch, but I dump this patch with nothing, git show
1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6 is not null

Lei


> According to the docs, this has to export the changeset of just the
> single indicated commit.
>
> 1. http://vger.kernel.org/vger-lists.html

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] about git format-patch help

2012-06-13 Thread lei yang
In my tree from git log I can see the last commit

commit 1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6
Author: Mathieu Desnoyers 
Date:   Fri Sep 3 08:08:18 2010 -0400

LTTng modularization, import of lttng 0.226

Will match kernel tree "lttng 0.227".

Signed-off-by: Mathieu Desnoyers 

to get the patch I run 

lyang0@lyang0-OptiPlex-755:~/git/lttng-modules$ git format-patch 
1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6^..1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6
fatal: ambiguous argument 
'1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6^..1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6':
 
unknown revision or path not in the working tree.
Use '--' to separate paths from revisions

for other commit it works fine 
lyang0@lyang0-OptiPlex-755:~/git/lttng-modules$ git format-patch 
f277b4c1b33341d2e687a614739778084de370d4^..f277b4c1b33341d2e687a614739778084de370d4
0001-Support-architectures-without-dump-tables.patch


To reproduce it you can run 

git clone git://git.lttng.org/lttng-modules.git
git format-patch 
1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6^..1c8284ebdbd119314b8f01e442e64cf5fd4b9fe6

Thanks 
Lei





-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/k16YWOs_hesJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[lttng-dev] git tree dead?

2012-06-11 Thread lei yang
Hi list,

lyang0@lyang0-OptiPlex-755:~/git$ git clone
git://git.lttng.org/linux-2.6-lttng.git
正克隆到 'linux-2.6-lttng'...
fatal: The remote end hung up unexpectedly

Lei

___
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


Re: [Autotest] [PATCH] Fix dhclient failed in nic_bonding cases V2

2012-03-14 Thread lei yang
On Wed, Mar 14, 2012 at 1:33 PM, Qingtang Zhou  wrote:
> * On 2012-03-14 12:05:47 +0800, yanglei.f...@gmail.com 
> (yanglei.f...@gmail.com) wrote:
>> From: Lei Yang 
>>
>> Before dhclient, we need to check if it has been running,and then kill it
>> Signed-off-by: Lei Yang 
>> ---
>>  client/tests/kvm/tests/nic_bonding.py |    8 
>>  1 files changed, 8 insertions(+), 0 deletions(-)
>>
>> diff --git a/client/tests/kvm/tests/nic_bonding.py 
>> b/client/tests/kvm/tests/nic_bonding.py
>> index 6266058..c976466 100644
>> --- a/client/tests/kvm/tests/nic_bonding.py
>> +++ b/client/tests/kvm/tests/nic_bonding.py
>> @@ -36,6 +36,14 @@ def run_nic_bonding(test, params, env):
>>                 for vlan, nic in enumerate(params.get("nics").split())]
>>      setup_cmd = "ifenslave bond0 " + " ".join(ifnames)
>>      session_serial.cmd(setup_cmd)
>> +    #do a pgrep to check if dhclient has already been running
>> +    pgrep_cmd = "pgrep dhclient"
>> +    cmd_output = session_serial.cmd(pgrep_cmd)
> Hi, Lei,
> I think your idea is checking existing dhclient process before run
> 'dhclient' cmd, right?

Right.

> But this 'session_serial.cmd' will raise an exception called 'ShellCmdError'
> if no dhclient process existed (pgrep returns 1 when no matched process is
> found), this exception would interrupt your test process.
>

Good, I have noticed this before, I will change it, thanks

Lei

> There are 2 way to avoid this problem,
> 1) Change session_serial.cmd to session_serial.cmd_status which
>   doesn't care about the return value of a command.
>   (please refer to virt/aexpect.py file)
> 2) Add a try...except... block here, a example:
>
> try:
>    cmd_output = session_serial.cmd(pgrep_cmd)
> except aexpect.ShellCmdError:
>    pass
> else:
>    #if dhclient is there, killl it
>    logging.info("dhclient already is running,kill it")
>    session_serial.cmd("killall -9 dhclient")
>    time.sleep(1)
>
>> +    #if dhclient is there, killl it
>> +    if cmd_output != '':
>> +            logging.info("dhclient already is running,kill it")
>> +            session_serial.cmd("killall -9 dhclient")
>> +            time.sleep(1)
> Oh, BTW, autotest's recommended indentation is 4 space, same as
> python standard. (See CODING_STYLE file in the top directory of
> autotest)
>
>>      session_serial.cmd("dhclient bond0")
>>
>>      try:
>> --
>> 1.7.5.4
>>
>> ___
>> Autotest mailing list
>> Autotest@test.kernel.org
>> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
___
Autotest mailing list
Autotest@test.kernel.org
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest


Re: [Autotest] [PATCH 3/4] [KVM-autotest] tests.cfg.sample: change import order

2012-03-12 Thread lei yang
On Mon, Mar 12, 2012 at 3:15 PM, Lukáš Doktor  wrote:
> Hi,
>
> it caused problems so I had to modify it a bit. It's already fixed and
> applied in upstream.
>


You mean you want put "include subtests.cfg" on the top or in the end?
from your idea you seems want it to be the end to change some
parameter easily

after I pull the tree,

I got something like (git show 6e4b5cffe999714357116884fcc4eb27fae41260)

include base.cfg
include subtests.cfg
include guest-os.cfg
include guest-hw.cfg
include cdkeys.cfg
include virtio-win.cfg

but I thought you may want to it be like

include base.cfg
include guest-os.cfg
include guest-hw.cfg
include cdkeys.cfg
include virtio-win.cfg
include subtests.cfg

or I'm wrong?




> Regards,
> Lukáš
>
> Dne 12.3.2012 04:34, lei yang napsal(a):
>
>> Howerver, you did the opposite thing or you did it two times
>>
>> commit 6e4b5cffe999714357116884fcc4eb27fae41260
>> Author: Lucas Meneghel Rodrigues
>> Date:   Wed Feb 29 18:47:14 2012 -0300
>>
>>     Revert "tests.cfg.sample: change import order"
>>
>>     This reverts commit e64b17d7a15602db0cd26ec55ccc902010985d0c,
>>     as it's causing problems with the test execution order.
>>
>>     Signed-off-by: Lucas Meneghel Rodrigues
>>
>> diff --git a/client/tests/kvm/tests-shared.cfg.sample
>> b/client/tests/kvm/tests-shared.cfg.sample
>> index bda982d..c6304b3 100644
>> --- a/client/tests/kvm/tests-shared.cfg.sample
>> +++ b/client/tests/kvm/tests-shared.cfg.sample
>> @@ -5,11 +5,11 @@
>>
>>  # Include the base config files.
>>  include base.cfg
>> +include subtests.cfg
>>  include guest-os.cfg
>>  include guest-hw.cfg
>>  include cdkeys.cfg
>>  include virtio-win.cfg
>> -include subtests.cfg
>>
>>  # Virtualization type (kvm or libvirt)
>>  vm_type = kvm
>>
>>
>> Lei
>>
>>
>> On Tue, Feb 28, 2012 at 2:42 AM, Lukas Doktor  wrote:
>>>
>>> Currently subtests.cfg is proceeded and then all other configs. My test
>>> needs to override smp parameter in some variant which is currently
>>> impossible.
>>>
>>> Using words current order means: we define subtests variants, than we
>>> specify base and guest and other details. In the end we limit what
>>> we want to execute.
>>>
>>> My proposed order enables forcing base/guest params in subtest variants.
>>>
>>> By words this means we specify base, guest system, cdkeys, etc. and in
>>> the end we define subtests with various variants. Then we limit what
>>> we actually want to execute but now subtest can force varius base/guest
>>> settings.
>>>
>>> Signed-off-by: Lukas Doktor
>>> ---
>>>  client/tests/kvm/tests-shared.cfg.sample |    2 +-
>>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>>
>>> diff --git a/client/tests/kvm/tests-shared.cfg.sample
>>> b/client/tests/kvm/tests-shared.cfg.sample
>>> index c6304b3..bda982d 100644
>>> --- a/client/tests/kvm/tests-shared.cfg.sample
>>> +++ b/client/tests/kvm/tests-shared.cfg.sample
>>> @@ -5,11 +5,11 @@
>>>
>>>  # Include the base config files.
>>>  include base.cfg
>>> -include subtests.cfg
>>>  include guest-os.cfg
>>>  include guest-hw.cfg
>>>  include cdkeys.cfg
>>>  include virtio-win.cfg
>>> +include subtests.cfg
>>>
>>>  # Virtualization type (kvm or libvirt)
>>>  vm_type = kvm
>>> --
>>> 1.7.7.6
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>>> the body of a message to majord...@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
___
Autotest mailing list
Autotest@test.kernel.org
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest


Re: [PATCH 3/4] [KVM-autotest] tests.cfg.sample: change import order

2012-03-12 Thread lei yang
On Mon, Mar 12, 2012 at 3:15 PM, Lukáš Doktor  wrote:
> Hi,
>
> it caused problems so I had to modify it a bit. It's already fixed and
> applied in upstream.
>


You mean you want put "include subtests.cfg" on the top or in the end?
from your idea you seems want it to be the end to change some
parameter easily

after I pull the tree,

I got something like (git show 6e4b5cffe999714357116884fcc4eb27fae41260)

include base.cfg
include subtests.cfg
include guest-os.cfg
include guest-hw.cfg
include cdkeys.cfg
include virtio-win.cfg

but I thought you may want to it be like

include base.cfg
include guest-os.cfg
include guest-hw.cfg
include cdkeys.cfg
include virtio-win.cfg
include subtests.cfg

or I'm wrong?




> Regards,
> Lukáš
>
> Dne 12.3.2012 04:34, lei yang napsal(a):
>
>> Howerver, you did the opposite thing or you did it two times
>>
>> commit 6e4b5cffe999714357116884fcc4eb27fae41260
>> Author: Lucas Meneghel Rodrigues
>> Date:   Wed Feb 29 18:47:14 2012 -0300
>>
>>     Revert "tests.cfg.sample: change import order"
>>
>>     This reverts commit e64b17d7a15602db0cd26ec55ccc902010985d0c,
>>     as it's causing problems with the test execution order.
>>
>>     Signed-off-by: Lucas Meneghel Rodrigues
>>
>> diff --git a/client/tests/kvm/tests-shared.cfg.sample
>> b/client/tests/kvm/tests-shared.cfg.sample
>> index bda982d..c6304b3 100644
>> --- a/client/tests/kvm/tests-shared.cfg.sample
>> +++ b/client/tests/kvm/tests-shared.cfg.sample
>> @@ -5,11 +5,11 @@
>>
>>  # Include the base config files.
>>  include base.cfg
>> +include subtests.cfg
>>  include guest-os.cfg
>>  include guest-hw.cfg
>>  include cdkeys.cfg
>>  include virtio-win.cfg
>> -include subtests.cfg
>>
>>  # Virtualization type (kvm or libvirt)
>>  vm_type = kvm
>>
>>
>> Lei
>>
>>
>> On Tue, Feb 28, 2012 at 2:42 AM, Lukas Doktor  wrote:
>>>
>>> Currently subtests.cfg is proceeded and then all other configs. My test
>>> needs to override smp parameter in some variant which is currently
>>> impossible.
>>>
>>> Using words current order means: we define subtests variants, than we
>>> specify base and guest and other details. In the end we limit what
>>> we want to execute.
>>>
>>> My proposed order enables forcing base/guest params in subtest variants.
>>>
>>> By words this means we specify base, guest system, cdkeys, etc. and in
>>> the end we define subtests with various variants. Then we limit what
>>> we actually want to execute but now subtest can force varius base/guest
>>> settings.
>>>
>>> Signed-off-by: Lukas Doktor
>>> ---
>>>  client/tests/kvm/tests-shared.cfg.sample |    2 +-
>>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>>
>>> diff --git a/client/tests/kvm/tests-shared.cfg.sample
>>> b/client/tests/kvm/tests-shared.cfg.sample
>>> index c6304b3..bda982d 100644
>>> --- a/client/tests/kvm/tests-shared.cfg.sample
>>> +++ b/client/tests/kvm/tests-shared.cfg.sample
>>> @@ -5,11 +5,11 @@
>>>
>>>  # Include the base config files.
>>>  include base.cfg
>>> -include subtests.cfg
>>>  include guest-os.cfg
>>>  include guest-hw.cfg
>>>  include cdkeys.cfg
>>>  include virtio-win.cfg
>>> +include subtests.cfg
>>>
>>>  # Virtualization type (kvm or libvirt)
>>>  vm_type = kvm
>>> --
>>> 1.7.7.6
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>>> the body of a message to majord...@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 3/4] [KVM-autotest] tests.cfg.sample: change import order

2012-03-11 Thread lei yang
Howerver, you did the opposite thing or you did it two times

commit 6e4b5cffe999714357116884fcc4eb27fae41260
Author: Lucas Meneghel Rodrigues 
Date:   Wed Feb 29 18:47:14 2012 -0300

Revert "tests.cfg.sample: change import order"

This reverts commit e64b17d7a15602db0cd26ec55ccc902010985d0c,
as it's causing problems with the test execution order.

Signed-off-by: Lucas Meneghel Rodrigues

diff --git a/client/tests/kvm/tests-shared.cfg.sample
b/client/tests/kvm/tests-shared.cfg.sample
index bda982d..c6304b3 100644
--- a/client/tests/kvm/tests-shared.cfg.sample
+++ b/client/tests/kvm/tests-shared.cfg.sample
@@ -5,11 +5,11 @@

 # Include the base config files.
 include base.cfg
+include subtests.cfg
 include guest-os.cfg
 include guest-hw.cfg
 include cdkeys.cfg
 include virtio-win.cfg
-include subtests.cfg

 # Virtualization type (kvm or libvirt)
 vm_type = kvm


Lei


On Tue, Feb 28, 2012 at 2:42 AM, Lukas Doktor  wrote:
> Currently subtests.cfg is proceeded and then all other configs. My test
> needs to override smp parameter in some variant which is currently
> impossible.
>
> Using words current order means: we define subtests variants, than we
> specify base and guest and other details. In the end we limit what
> we want to execute.
>
> My proposed order enables forcing base/guest params in subtest variants.
>
> By words this means we specify base, guest system, cdkeys, etc. and in
> the end we define subtests with various variants. Then we limit what
> we actually want to execute but now subtest can force varius base/guest
> settings.
>
> Signed-off-by: Lukas Doktor 
> ---
>  client/tests/kvm/tests-shared.cfg.sample |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/client/tests/kvm/tests-shared.cfg.sample 
> b/client/tests/kvm/tests-shared.cfg.sample
> index c6304b3..bda982d 100644
> --- a/client/tests/kvm/tests-shared.cfg.sample
> +++ b/client/tests/kvm/tests-shared.cfg.sample
> @@ -5,11 +5,11 @@
>
>  # Include the base config files.
>  include base.cfg
> -include subtests.cfg
>  include guest-os.cfg
>  include guest-hw.cfg
>  include cdkeys.cfg
>  include virtio-win.cfg
> +include subtests.cfg
>
>  # Virtualization type (kvm or libvirt)
>  vm_type = kvm
> --
> 1.7.7.6
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[libvirt-users] When IPv6 is disabled, libvirtd cannot start on boot

2012-01-12 Thread Lei Yang
Hi all,

When IPv6 is disabled in modprobed.conf through:

> options ipv6 disable=1

libvirtd cannot start on boot, it produces the following debug message:

> libvirtd: 1545: error : virCommandWait:2192 : internal error Child process 
> (/bin/sh -c IPT=/usr/sbin/ip6tables
> cmd='$IPT -n -L FORWARD'
> eval res=\$\("${cmd} 2>&1"\)
> if [ $? -ne 0 ]; then echo "Failure to execute command '${cmd}' : '${res}'."; 
> exit 1;fi 
> 
> libvirtd: 851: error : virNetSocketNewListenTCP:226 : Unable to create 
> socket: Address family not supported by protocol
> 
> 


However, I can successfuly start libvirtd later on without IPv6 support.  I 
think IPv6 is disabled in the early stage during system boot, so libvirtd 
should not assume the IPv6 is in exist during service start. But I could be 
wrong, please point me out, Thanks.

My OS: Linux 3.1.7-1-ARCH
/etc/rc.conf: DAEMONS=(hwclock dbus syslog-ng network netfs crond sshd libvirtd)

-- 
Lei Yang

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users

Re: [libvirt-users] virt-install Error

2012-01-12 Thread Lei Yang
I executed virt-install which confirmed my guess: virt-install which is used by 
virt-manager cannot detect kvm. Note that I am on Arch Linux so my error 
message is not exactly the same as you

$ virt-install
WARNING  KVM acceleration not available, using 'qemu'
ERROR 
--name is required
--ram amount in MB is required
--disk storage must be specified (override with --nodisks)
An install method must be specified
(--location URL, --cdrom CD/ISO, --pxe, --import, --boot hd|cdrom|…)


$ virt-install --version
0.600.0
$ ls /dev/kvm
/dev/kvm
$ lsmod | grep 'kvm*'
kvm_intel 125294  0  
kvm   339258  1 kvm_intel


--  
Lei Yang


On 2012年1月12日Thursday at 下午11:04, kendennit wrote:

> I did not start any VM. My intention is to check the virt-install command to 
> make sure all packages and tools are in place.
> So basically, I expect the below output
>  
> [root@localhost Packages]# virt-install
> ERROR
> --name is required
> --ram amount in MB is required
> --disk storage must be specified (override with --nodisks)
> An install method must be specified
> (--location URL, --cdrom CD/ISO, --pxe, --import, --boot hd|cdrom|...)
> [root@localhost Packages]#
>  
> Instead I get error, "Host doesn't support any virtualizations options"
>  
> Thx,
> kenden
>  
>  
> On Thu, Jan 12, 2012 at 8:26 PM, Lei Yang  (mailto:clanh...@gmail.com)> wrote:
> > I have a similar issue on Arch Linux.  
> >  
> > After connect to the hypervisor, virt-manager will report there is no 
> > hardware virtualization(i.e. kvm) detected.
> > Howerver, after manually change the xml file from `type=qemu` to `type=kvm` 
> > and start the guest OS, virt-manager will correct display the "kvm 
> > hypervisor".
> >  
> > Since virt-manger use virt-install internally, my problem is similar to you.
> >  
> > On Thu, Jan 12, 2012 at 10:45 PM, Nitin Nikam  > (mailto:kenden...@gmail.com)> wrote:
> > > Hi All,
> > >I'm trying to install a VM on host OS (Redhat 6.1, KVM hypervisor).
> > > I've installed all the required RPMs for KVM and libvirt tools.
> > >  
> > > Here is the list of libvirt RPMs and KVM modules
> > >  
> > > kvm.ko
> > > kvm-intel.ko
> > >  
> > > libvirt-0.8.7-18.el6.x86_64.rpm 
> > > libvirt-java-devel-0.4.7-1.el6.noarch.rpm  
> > > virt-top-1.0.4-3.8.el6.x86_64.rpm
> > > libvirt-client-0.8.7-18.el6.x86_64.rpm  
> > > libvirt-python-0.8.7-18.el6.x86_64.rpm 
> > > virt-viewer-0.2.1-3.el6.x86_64.rpm
> > > libvirt-devel-0.8.7-18.el6.x86_64.rpm   
> > > python-virtinst-0.500.5-3.el6.noarch.rpm   
> > > virt-what-1.3-4.4.el6.x86_64.rpm
> > > libvirt-java-0.4.7-1.el6.noarch.rpm 
> > > virt-manager-0.8.6-4.el6.noarch.rpm
> > >  
> > > qemu-img-0.12.1.2-2.160.el6.x86_64.rpm  
> > > qemu-kvm-0.12.1.2-2.160.el6.x86_64.rpm
> > >  
> > > When I execute virt-install command I see the below error:
> > >  
> > > [root@nsn /]# virt-install
> > >  
> > >  
> > > ERRORHost does not support any virtualization options
> > >  
> > > I've already cross checked the VMX setting in BIOS and it is enabled.
> > > In VMX Feature MSR register , VT bit is set.
> > >  
> > > Following is some info about the platform:
> > > [root@nsn /]# uname -a
> > > Linux rsp3-linux 2.6.32.27 #170 SMP PREEMPT Thu Jan 12 09:03:12 IST 2012 
> > > x86_64 GNU/Linux
> > >  
> > > [root@nsn /]# cat /proc/cpuinfo
> > > processor   : 3
> > > vendor_id   : GenuineIntel
> > > cpu family  : 6
> > > model   : 30
> > > model name  : Intel(R) Xeon(R) CPU   C5528  @ 2.13GHz
> > > stepping: 4
> > > cpu MHz : 2127.723
> > > cache size  : 8192 KB
> > > physical id : 0
> > > siblings: 4
> > > core id : 3
> > > cpu cores   : 4
> > > apicid  : 6
> > > initial apicid  : 6
> > > fpu : yes
> > > fpu_exception   : yes
> > > cpuid level : 11
> > > wp  : yes
> > > flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
> > > mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe 
> > > syscall rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology 
> > > nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 
> > > xtpr pdcm dca sse4_1 s

Re: [libvirt-users] virt-install Error

2012-01-12 Thread Lei Yang
I have a similar issue on Arch Linux. 

After connect to the hypervisor, virt-manager will report there is no hardware 
virtualization(i.e. kvm) detected.
Howerver, after manually change the xml file from `type=qemu` to `type=kvm` and 
start the guest OS, virt-manager will correct display the "kvm hypervisor".

Since virt-manger use virt-install internally, my problem is similar to you.

On Thu, Jan 12, 2012 at 10:45 PM, Nitin Nikam mailto:kenden...@gmail.com)> wrote:
> Hi All,
>I'm trying to install a VM on host OS (Redhat 6.1, KVM hypervisor).
> I've installed all the required RPMs for KVM and libvirt tools.
> 
> Here is the list of libvirt RPMs and KVM modules
> 
> kvm.ko
> kvm-intel.ko
> 
> libvirt-0.8.7-18.el6.x86_64.rpm 
> libvirt-java-devel-0.4.7-1.el6.noarch.rpm  virt-top-1.0.4-3.8.el6.x86_64.rpm
> libvirt-client-0.8.7-18.el6.x86_64.rpm  
> libvirt-python-0.8.7-18.el6.x86_64.rpm virt-viewer-0.2.1-3.el6.x86_64.rpm
> libvirt-devel-0.8.7-18.el6.x86_64.rpm   
> python-virtinst-0.500.5-3.el6.noarch.rpm   virt-what-1.3-4.4.el6.x86_64.rpm
> libvirt-java-0.4.7-1.el6.noarch.rpm virt-manager-0.8.6-4.el6.noarch.rpm
> 
> qemu-img-0.12.1.2-2.160.el6.x86_64.rpm  qemu-kvm-0.12.1.2-2.160.el6.x86_64.rpm
> 
> When I execute virt-install command I see the below error:
> 
> [root@nsn /]# virt-install
> 
> 
> ERRORHost does not support any virtualization options
> 
> I've already cross checked the VMX setting in BIOS and it is enabled.
> In VMX Feature MSR register , VT bit is set.
> 
> Following is some info about the platform:
> [root@nsn /]# uname -a
> Linux rsp3-linux 2.6.32.27 #170 SMP PREEMPT Thu Jan 12 09:03:12 IST 2012 
> x86_64 GNU/Linux
> 
> [root@nsn /]# cat /proc/cpuinfo
> processor   : 3
> vendor_id   : GenuineIntel
> cpu family  : 6
> model   : 30
> model name  : Intel(R) Xeon(R) CPU   C5528  @ 2.13GHz
> stepping: 4
> cpu MHz : 2127.723
> cache size  : 8192 KB
> physical id : 0
> siblings: 4
> core id : 3
> cpu cores   : 4
> apicid  : 6
> initial apicid  : 6
> fpu : yes
> fpu_exception   : yes
> cpuid level : 11
> wp  : yes
> flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall rdtscp 
> lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc 
> aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca 
> sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid
> bogomips: 4259.94
> clflush size: 64
> cache_alignment : 64
> address sizes   : 40 bits physical, 48 bits virtual
> power management:
> 
> [root@nsn /]# lsmod | grep kvm
> kvm_intel 36839 0 - Live 0xa016c000
> kvm 149478 1 kvm_intel, Live 0xa0137000
> 
> has anyone encountered similar issues while using libvirt tools?
> am I missing something w.r.t installation?
> 
> Appreciate your feedback.
> 
> Thanks,
> kenden
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ___
> libvirt-users mailing list
> libvirt-users@redhat.com (mailto:libvirt-users@redhat.com)
> https://www.redhat.com/mailman/listinfo/libvirt-users



-- 
lei yang
___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users

what does mean softfp. gcc related

2011-01-21 Thread lei yang
Hi list,

I confused by arm gcc flags

In gcc user guide:
 -mfloat-abi=name

`softfp' allows the generation of code using hardware floating-point
instructions, but still uses the soft-float calling conventions.
`hard' allows generation of floating-point instructions and uses
FPU-specific calling conventions.


eg:
-mfpu=vfp -mfloat-abi=softfp

what does this mean if arm support vfp instructions.
what's the different between "-mfpu=vfp -mfloat-abi=softfp" and
"-mfpu=vfp -mfloat-abi=hard".
can  someone give me a hand?

Thanks
Lei

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: floating points in kernel space

2011-01-21 Thread lei yang
How can I know arm kernel has suppored hardware float point?
is there a kernel config to be enabled for this supporting?

Lei

On Wed, Jan 5, 2011 at 7:26 AM, julie Sullivan  wrote:
>
>> I think the issue is the kernel is extremely concerned with the
>> efficiency of the syscall path.
>>
>> Very legitimately some benchmarks just measure that one path to see
>> how many thousands of syscalls per second can be made.
>>
>> To accelerate that path as much as possible, the linux kenel chooses
>> not to incur the overhead of preserving the FP registers on every
>> syscall.
>>
>> So kernel code that uses FP must first ensure any registers it uses
>> are preserved.  I don't recall ever writing any FP kernel code, so I
>> don't know what facilities are available to do that.
>>
>> Greg
>
> Greg
>
> I had a vague idea about overhead being incurred due to the mode switch, but
> your clear explanation makes it a lot easier to understand _where_ this
> happens.
> It's very helpful, thank you for your response.
>
> Julie
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: [Tutor] why "ifconfig" is alway running?

2010-12-20 Thread lei yang
On Sun, Dec 19, 2010 at 9:05 PM, Sander Sweers  wrote:
> On 19 December 2010 13:43, lei yang  wrote:
>> Right, it gets stuck at the readline(), is there a function not get
>> stuck to instead of readline().
>
> readline() will keep reading stdout until it received a newline
> character. So if there is nothing to read it will wait forever. The
> solution is to wait with reading until there is actually something to
> read. And it is recommended [1] to use proc.communicate() instead of
> reading directly from stdout.
>
> Also you should use proc.terminate() or proc.kill() to stop the command.
>
> Below is a modified version of your function to show what I mean.
>
> [1] http://docs.python.org/library/subprocess.html#subprocess.Popen.stdin
>
> Greets
> Sander
>
> def host_run(cmd, secs=10):
>    print("running %s" % cmd)
>    timeout = datetime.timedelta(seconds=secs)
>    proc = subprocess.Popen(
>        cmd,
>        stdout=subprocess.PIPE,
>        stderr=subprocess.STDOUT,
>        shell=True)
>    start = datetime.datetime.now()
>    while ( proc.poll() is None and (datetime.datetime.now() - start)
> < timeout): #not timed out
>        print "hello,i'm here"
>        sleep(1)
>    if 0 == proc.poll():
>        stdout, stderr = proc.communicate() #get stdout and stderr
>        print("'%s' is program exited" %cmd)
>        print stdout
>        print stderr
>    else:
>        proc.terminate() #Can use proc.kill() as well

my python verison is 2.5, so has no kill or terminate attribute, so I still use
os.kill(proc.pid, signal.SIGINT) instead

>        stdout, stderr = proc.communicate() #get stdout and stderr


 and I find it will get stuck here

>        print 'Timeout: Process terminated'
>        print stdout
>        print stderr
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] why "ifconfig" is alway running?

2010-12-19 Thread lei yang
On Sun, Dec 19, 2010 at 9:05 PM, Sander Sweers  wrote:
> On 19 December 2010 13:43, lei yang  wrote:
>> Right, it gets stuck at the readline(), is there a function not get
>> stuck to instead of readline().
>
> readline() will keep reading stdout until it received a newline
> character. So if there is nothing to read it will wait forever. The
> solution is to wait with reading until there is actually something to
> read. And it is recommended [1] to use proc.communicate() instead of
> reading directly from stdout.
>
> Also you should use proc.terminate() or proc.kill() to stop the command.
>
> Below is a modified version of your function to show what I mean.
>
> [1] http://docs.python.org/library/subprocess.html#subprocess.Popen.stdin
>

Thanks very much, that's really what I want

Lei

> Greets
> Sander
>
> def host_run(cmd, secs=10):
>    print("running %s" % cmd)
>    timeout = datetime.timedelta(seconds=secs)
>    proc = subprocess.Popen(
>        cmd,
>        stdout=subprocess.PIPE,
>        stderr=subprocess.STDOUT,
>        shell=True)
>    start = datetime.datetime.now()
>    while ( proc.poll() is None and (datetime.datetime.now() - start)
> < timeout): #not timed out
>        print "hello,i'm here"
>        sleep(1)
>    if 0 == proc.poll():
>        stdout, stderr = proc.communicate() #get stdout and stderr
>        print("'%s' is program exited" %cmd)
>        print stdout
>        print stderr
>    else:
>        proc.terminate() #Can use proc.kill() as well
>        stdout, stderr = proc.communicate() #get stdout and stderr
>        print 'Timeout: Process terminated'
>        print stdout
>        print stderr
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] why "ifconfig" is alway running?

2010-12-19 Thread lei yang
On Sun, Dec 19, 2010 at 8:29 PM, Evert Rol  wrote:
>>>>>> #!/usr/bin/env python
>>>>>> import datetime
>>>>>> import subprocess
>>>>>> import sys
>>>>>> import os
>>>>>> import signal
>>>>>> from time import sleep
>>>>>>
>>>>>> def host_run(cmd, secs=10):
>>>>>>    print("running %s" % cmd)
>>>>>>    timeout = datetime.timedelta(seconds=secs)
>>>>>>    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
>>>>>> stderr=subprocess.STDOUT, shell=True)
>>>>>>    start = datetime.datetime.now()
>>>>>>    while ( proc.poll() is None and (datetime.datetime.now() - start)
>>>>>> < timeout): #not timed out
>>>>>>        print proc.stdout.readline() #TODO timestamp?
>>>>>>        print "hello,i'm here"
>>>>>>        sleep(1)
>>>>>>    if 0 == proc.poll():
>>>>>>        print("'%s' is program exited" %cmd)
>>>>>>    else:
>>>>>>        try:
>>>>>>            os.kill(proc.pid, signal.SIGINT)
>>>>>>           print "Process timeout: '%s'" % cmd
>>>>>>        except OSError:
>>>>>>            pass
>>>>>> #cmd="ping 128.114.122.2"
>>>>>> cmd="ssh r...@10.0.0.1"
>>>>>> host_run(cmd,10)
>>>>>>
>>>>>> if cmd="ssh r...@10.0.0.1"
>>>>>> it never print "hello i'm here" , how can i handle this issue, and I
>>>>>> find my script cant process the "timeout" to kill it.
>>>>>> if cmd="ping 128.114.122.2", no this issue.
>>>>>
>>>>> Have you tried running these two commands from the command line?
>>>>> Spot the difference: ssh is waiting for input (a password. And if 
>>>>> passwordless, it may still not produce output to stdout), while ping just 
>>>>> continues to produce output.
>>>>> Then look at the line
>>>>>    print proc.stdout.readline()
>>>>> Will that ever read a full line for the ssh command? Probably not, while 
>>>>> for ping it will.
>>>>>
>>>>
>>>> it's a test, actually, I can't access 10.0.0.1, i just want to kill it
>>>> if *no responding" in 10 second, but it doesn't kill it. I don't know
>>>> why.
>>>> my script is to run a cmd, if more than 10 sec, kill it
>>>> can you show me where is wrong, thanks in advance
>>>
>>> But you never said where the script gets stuck. That would be a very 
>>> important first step for debugging.
>>>
>>> And if I run this script, I get the following:
>>> "
>>> $> python bla.py
>>> running ssh r...@10.0.0.1
>>> ssh: connect to host 10.0.0.1 port 22: Connection refused
>>>
>>> hello,i'm here
>>> "
>>> So seems to work for me.
>>> thus, what is the result of
>>> $> ssh r...@10.0.0.1
>>> for you?
>>>
>>
>> [lya...@pek-lpgbuild13 py]$ ssh r...@10.0.0.1
>> ssh: connect to host 10.0.0.1 port 22: Connection timed out
>>
>> but it will wait for above 30 seconds then print "ssh: connect to host
>> 10.0.0.1 port 22: Connection timed out", but my script is designed to
>> kill it if cmd running more than 10 secs.
>
> So it doesn't produce output for at least 30 secs. Then my guess that it gets 
> stuck at the readline() line still stands.


Right, it gets stuck at the readline(), is there a function not get
stuck to instead of readline().

Lei


> Unfortunately, you still haven't told us where the script gets stuck.
> Also, have you tried to let the script run for, say, 30 seconds at least? Ie, 
> the time it takes for the ssh command to time out by itself.
>
>  Evert
>
>
>>
>>
>> Lei
>>
>>>  Evert
>>>
>>>
>>>>> So my guess is, your script gets stuck at that line.
>>>>> But if you ctrl-C to stop the script, you should see where your program 
>>>>> gets stuck. You didn't say where it got stuck, that would have helped.
>>>>>
>>>>> Good luck,
>>>>>
>>>>>  Evert
>>>

Re: [Tutor] why "ifconfig" is alway running?

2010-12-19 Thread lei yang
On Sun, Dec 19, 2010 at 8:09 PM, Evert Rol  wrote:
>>>> #!/usr/bin/env python
>>>> import datetime
>>>> import subprocess
>>>> import sys
>>>> import os
>>>> import signal
>>>> from time import sleep
>>>>
>>>> def host_run(cmd, secs=10):
>>>>    print("running %s" % cmd)
>>>>    timeout = datetime.timedelta(seconds=secs)
>>>>    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
>>>> stderr=subprocess.STDOUT, shell=True)
>>>>    start = datetime.datetime.now()
>>>>    while ( proc.poll() is None and (datetime.datetime.now() - start)
>>>> < timeout): #not timed out
>>>>        print proc.stdout.readline() #TODO timestamp?
>>>>        print "hello,i'm here"
>>>>        sleep(1)
>>>>    if 0 == proc.poll():
>>>>        print("'%s' is program exited" %cmd)
>>>>    else:
>>>>        try:
>>>>            os.kill(proc.pid, signal.SIGINT)
>>>>           print "Process timeout: '%s'" % cmd
>>>>        except OSError:
>>>>            pass
>>>> #cmd="ping 128.114.122.2"
>>>> cmd="ssh r...@10.0.0.1"
>>>> host_run(cmd,10)
>>>>
>>>> if cmd="ssh r...@10.0.0.1"
>>>> it never print "hello i'm here" , how can i handle this issue, and I
>>>> find my script cant process the "timeout" to kill it.
>>>> if cmd="ping 128.114.122.2", no this issue.
>>>
>>> Have you tried running these two commands from the command line?
>>> Spot the difference: ssh is waiting for input (a password. And if 
>>> passwordless, it may still not produce output to stdout), while ping just 
>>> continues to produce output.
>>> Then look at the line
>>>    print proc.stdout.readline()
>>> Will that ever read a full line for the ssh command? Probably not, while 
>>> for ping it will.
>>>
>>
>> it's a test, actually, I can't access 10.0.0.1, i just want to kill it
>> if *no responding" in 10 second, but it doesn't kill it. I don't know
>> why.
>> my script is to run a cmd, if more than 10 sec, kill it
>> can you show me where is wrong, thanks in advance
>
> But you never said where the script gets stuck. That would be a very 
> important first step for debugging.
>
> And if I run this script, I get the following:
> "
> $> python bla.py
> running ssh r...@10.0.0.1
> ssh: connect to host 10.0.0.1 port 22: Connection refused
>
> hello,i'm here
> "
> So seems to work for me.
> thus, what is the result of
> $> ssh r...@10.0.0.1
> for you?
>

[lya...@pek-lpgbuild13 py]$ ssh r...@10.0.0.1
ssh: connect to host 10.0.0.1 port 22: Connection timed out

but it will wait for above 30 seconds then print "ssh: connect to host
10.0.0.1 port 22: Connection timed out", but my script is designed to
kill it if cmd running more than 10 secs.


Lei

>  Evert
>
>
>>> So my guess is, your script gets stuck at that line.
>>> But if you ctrl-C to stop the script, you should see where your program 
>>> gets stuck. You didn't say where it got stuck, that would have helped.
>>>
>>> Good luck,
>>>
>>>  Evert
>>>
>>>
>>>> On Sun, Dec 19, 2010 at 4:57 PM, Alan Gauld  
>>>> wrote:
>>>>>
>>>>> "lei yang"  wrote
>>>>>
>>>>>
>>>>> def runForAWhile(cmd, secs=10):
>>>>>   print("running %s" % cmd)
>>>>>   timeout = datetime.timedelta(seconds=secs)
>>>>>   print timeout
>>>>>   proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
>>>>> stderr=subprocess.STDOUT, shell=True)
>>>>>   status = proc.poll()
>>>>>
>>>>> You are still only checking status once outside the while loop.
>>>>>
>>>>>   start = datetime.datetime.now()
>>>>>   while (status is None and (datetime.datetime.now() - start) <
>>>>> timeout): #not timed out
>>>>>       print proc.stdout.readline() #TODO timestamp?
>>>>>       #print status
>>>>>       #print datetime.datetime.now() - start
>>>>>
>>>>>
>>>>>> I see that "status" always "!=0“  why  program  is NOT exited
>>>>>
>>>>>
>>>>> --
>>>>> Alan Gauld
>>>>> Author of the Learn to Program web site
>>>>> http://www.alan-g.me.uk/
>>>>>
>>>>>
>>>>> ___
>>>>> Tutor maillist  -  tu...@python.org
>>>>> To unsubscribe or change subscription options:
>>>>> http://mail.python.org/mailman/listinfo/tutor
>>>>>
>>>> ___
>>>> Tutor maillist  -  tu...@python.org
>>>> To unsubscribe or change subscription options:
>>>> http://mail.python.org/mailman/listinfo/tutor
>>>
>>>
>
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] why "ifconfig" is alway running?

2010-12-19 Thread lei yang
On Sun, Dec 19, 2010 at 7:56 PM, Evert Rol  wrote:
>> #!/usr/bin/env python
>> import datetime
>> import subprocess
>> import sys
>> import os
>> import signal
>> from time import sleep
>>
>> def host_run(cmd, secs=10):
>>    print("running %s" % cmd)
>>    timeout = datetime.timedelta(seconds=secs)
>>    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
>> stderr=subprocess.STDOUT, shell=True)
>>    start = datetime.datetime.now()
>>    while ( proc.poll() is None and (datetime.datetime.now() - start)
>> < timeout): #not timed out
>>        print proc.stdout.readline() #TODO timestamp?
>>        print "hello,i'm here"
>>        sleep(1)
>>    if 0 == proc.poll():
>>        print("'%s' is program exited" %cmd)
>>    else:
>>        try:
>>            os.kill(proc.pid, signal.SIGINT)
>>           print "Process timeout: '%s'" % cmd
>>        except OSError:
>>            pass
>> #cmd="ping 128.114.122.2"
>> cmd="ssh r...@10.0.0.1"
>> host_run(cmd,10)
>>
>> if cmd="ssh r...@10.0.0.1"
>> it never print "hello i'm here" , how can i handle this issue, and I
>> find my script cant process the "timeout" to kill it.
>> if cmd="ping 128.114.122.2", no this issue.
>
> Have you tried running these two commands from the command line?
> Spot the difference: ssh is waiting for input (a password. And if 
> passwordless, it may still not produce output to stdout), while ping just 
> continues to produce output.
> Then look at the line
>    print proc.stdout.readline()
> Will that ever read a full line for the ssh command? Probably not, while for 
> ping it will.
>

it's a test, actually, I can't access 10.0.0.1, i just want to kill it
if *no responding" in 10 second, but it doesn't kill it. I don't know
why.
my script is to run a cmd, if more than 10 sec, kill it
can you show me where is wrong, thanks in advance

Lei


> So my guess is, your script gets stuck at that line.
> But if you ctrl-C to stop the script, you should see where your program gets 
> stuck. You didn't say where it got stuck, that would have helped.
>
> Good luck,
>
>  Evert
>
>
>> On Sun, Dec 19, 2010 at 4:57 PM, Alan Gauld  
>> wrote:
>>>
>>> "lei yang"  wrote
>>>
>>>
>>> def runForAWhile(cmd, secs=10):
>>>   print("running %s" % cmd)
>>>   timeout = datetime.timedelta(seconds=secs)
>>>   print timeout
>>>   proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
>>> stderr=subprocess.STDOUT, shell=True)
>>>   status = proc.poll()
>>>
>>> You are still only checking status once outside the while loop.
>>>
>>>   start = datetime.datetime.now()
>>>   while (status is None and (datetime.datetime.now() - start) <
>>> timeout): #not timed out
>>>       print proc.stdout.readline() #TODO timestamp?
>>>       #print status
>>>       #print datetime.datetime.now() - start
>>>
>>>
>>>> I see that "status" always "!=0“  why  program  is NOT exited
>>>
>>>
>>> --
>>> Alan Gauld
>>> Author of the Learn to Program web site
>>> http://www.alan-g.me.uk/
>>>
>>>
>>> ___
>>> Tutor maillist  -  tu...@python.org
>>> To unsubscribe or change subscription options:
>>> http://mail.python.org/mailman/listinfo/tutor
>>>
>> ___
>> Tutor maillist  -  tu...@python.org
>> To unsubscribe or change subscription options:
>> http://mail.python.org/mailman/listinfo/tutor
>
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] why "ifconfig" is alway running?

2010-12-19 Thread lei yang
#!/usr/bin/env python
import datetime
import subprocess
import sys
import os
import signal
from time import sleep

def host_run(cmd, secs=10):
print("running %s" % cmd)
timeout = datetime.timedelta(seconds=secs)
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, shell=True)
start = datetime.datetime.now()
while ( proc.poll() is None and (datetime.datetime.now() - start)
< timeout): #not timed out
print proc.stdout.readline() #TODO timestamp?
print "hello,i'm here"
sleep(1)
if 0 == proc.poll():
print("'%s' is program exited" %cmd)
else:
try:
os.kill(proc.pid, signal.SIGINT)
print "Process timeout: '%s'" % cmd
except OSError:
pass
#cmd="ping 128.114.122.2"
cmd="ssh r...@10.0.0.1"
host_run(cmd,10)

if cmd="ssh r...@10.0.0.1"
it never print "hello i'm here" , how can i handle this issue, and I
find my script cant process the "timeout" to kill it.
if cmd="ping 128.114.122.2", no this issue.

Lei

On Sun, Dec 19, 2010 at 4:57 PM, Alan Gauld  wrote:
>
> "lei yang"  wrote
>
>
> def runForAWhile(cmd, secs=10):
>   print("running %s" % cmd)
>   timeout = datetime.timedelta(seconds=secs)
>   print timeout
>   proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
> stderr=subprocess.STDOUT, shell=True)
>   status = proc.poll()
>
> You are still only checking status once outside the while loop.
>
>   start = datetime.datetime.now()
>   while (status is None and (datetime.datetime.now() - start) <
> timeout): #not timed out
>       print proc.stdout.readline() #TODO timestamp?
>       #print status
>       #print datetime.datetime.now() - start
>
>
>> I see that "status" always "!=0“  why  program  is NOT exited
>
>
> --
> Alan Gauld
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
>
>
> ___
> Tutor maillist  -  tu...@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


<    1   2   3   4   5   >