All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
To: "Serge E. Hallyn" <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Cc: Containers
	<containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>,
	dlezcano-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org,
	lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [lxc-devel] [PATCH 1/1] lxc-ps: Nit - Avoid blank CONTAINER column
Date: Thu, 11 Feb 2010 10:19:02 -0800	[thread overview]
Message-ID: <20100211181902.GA3742@us.ibm.com> (raw)
In-Reply-To: <20100211155446.GC6884-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

Serge E. Hallyn [serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org] wrote:
| Quoting Michel Normand (normand-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org):
| > Le jeudi 11 février 2010 à 11:08 +0100, Michel Normand a écrit :
| > > Le mercredi 10 février 2010 à 20:25 -0800, Sukadev Bhattiprolu a écrit :
| > > > From: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
| > > > Date: Wed, 10 Feb 2010 20:09:17 -0800
| > > > Subject: [PATCH 1/1] lxc-ps: Nit - Avoid blank CONTAINER column
| > > > 
| > > > The contianer name is not printed in the lxc-ps output unless the --lxc
| > > > option is specified.  But the CONTAINER column is printed (and left
| > > > blank) even if the --lxc option is not specified.
| > > > 
| > > > 	$ /usr/local/bin/lxc-ps -n foo
| > > > 	CONTAINER    PID TTY          TIME CMD
| > > > 		   19525 pts/2    00:00:01 bash
| > > > 		   20311 pts/2    00:00:00 lxc-ps
| > > > 		   20312 pts/2    00:00:00 ps
| > > 
| > > For me the error in the script is 
| > > to report default pid of ps command,
| > > rather than to report the pids of specified 'foo' 
| > > container in this case.
| > > 
| > > So a patch should address this point,
| > > rather to remove the container column.
| > 
| > In fact there is no error in the script :)
| > The -n option for lxc-ps is a ps option ! 

Ah, good point. Like Serge pointed, I got the -n mixed up with other
lxc- commands.

Even so, I still think the blank CONTAINER column is misleading.
Does it mean that the listed processes are not part of any container ?
Like /bin/ps which prints, say the PGID column, only when selected,
wouldn't it make sense to print the CONTAINER column only when necessary ?

Thanks,

Sukadev

  parent reply	other threads:[~2010-02-11 18:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-11  4:25 [PATCH 1/1] lxc-ps: Nit - Avoid blank CONTAINER column Sukadev Bhattiprolu
     [not found] ` <20100211042531.GA8835-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-02-11 10:08   ` Michel Normand
2010-02-11 10:21     ` [lxc-devel] " Michel Normand
     [not found]     ` <1265883662.2591.68.camel@pagloppaglop>
2010-02-11 15:54       ` Serge E. Hallyn
     [not found]       ` <20100211155446.GC6884@us.ibm.com>
     [not found]         ` <20100211155446.GC6884-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-02-11 18:19           ` Sukadev Bhattiprolu [this message]
     [not found]             ` <20100211181902.GA3742-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2010-02-12  7:48               ` Michel Normand
2010-02-12 16:54           ` Cedric Le Goater
2010-02-12 17:01   ` Cedric Le Goater

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100211181902.GA3742@us.ibm.com \
    --to=sukadev-23vcf4htsmix0ybbhkvfkdbpr1lh4cv8@public.gmane.org \
    --cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=dlezcano-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org \
    --cc=lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.