public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: Davidlohr Bueso <dbueso@aomail.uab.es>
Cc: util-linux <util-linux@vger.kernel.org>
Subject: Re: [PATCH] lslocks: add personality column
Date: Tue, 6 Mar 2012 17:16:13 +0100	[thread overview]
Message-ID: <20120306161613.GC8389@x2.net.home> (raw)
In-Reply-To: <1330693206.23371.0.camel@offworld>

On Fri, Mar 02, 2012 at 02:00:06PM +0100, Davidlohr Bueso wrote:
> From: Davidlohr Bueso <dave@gnu.org>
> 
> By knowing the lock's personality (flock or posix), the user can have more information
> about the lock and how it was created.
> 
> Signed-off-by: Davidlohr Bueso <dave@gnu.org>
> ---
>  misc-utils/lslocks.8 |    5 +++++
>  misc-utils/lslocks.c |   30 ++++++++++++++++++++----------
>  2 files changed, 25 insertions(+), 10 deletions(-)

 Applied with some changes:

    - rename ACCESS to MODE
    - rename PERSONALITY to TYPE (the column name was too long)
    - fix the typos and missing break
    - rename struct lock members to match with column names

 See below. Thanks!

    Karel

$ lslocks 
COMMAND           PID  TYPE SIZE MODE  M      START                 END PATH
libvirtd         1243 POSIX   0B WRITE 0          0                   0 /run
(unknown)        1283 FLOCK   0B WRITE 0          0                   0 /run
tracker-store    1974 POSIX 5.3M READ  0 1073741826          1073742335 /home/kz
tracker-store    1974 POSIX  32K READ  0        128                 128 /home/kz
tracker-miner-f  1975 POSIX 5.3M READ  0 1073741826          1073742335 /home/kz
tracker-miner-f  1975 POSIX  32K READ  0        128                 128 /home/kz
java            11500 POSIX   0B WRITE 0          0 9223372036854775806 /home/kz
firefox          8976 POSIX   0B WRITE 0          0                   0 /home/kz
firefox          8976 POSIX 384K WRITE 0 1073741824          1073742335 /home/kz
firefox          8976 POSIX 1.5M READ  0 1073741826          1073742335 /home/kz
firefox          8976 POSIX  32K READ  0        128                 128 /home/kz
firefox          8976 POSIX 416K WRITE 0 1073741824          1073742335 /home/kz
firefox          8976 POSIX  20M READ  0 1073741826          1073742335 /home/kz
firefox          8976 POSIX  32K READ  0        128                 128 /home/kz
crond           17793 POSIX   0B WRITE 0          0                   0 /run
atd             24371 POSIX   0B WRITE 0          0                   0 /run



-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

      parent reply	other threads:[~2012-03-06 16:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-02 13:00 [PATCH] lslocks: add personality column Davidlohr Bueso
2012-03-02 13:09 ` Peter Breitenlohner
2012-03-02 13:22 ` Voelker, Bernhard
2012-03-06 16:16 ` Karel Zak [this message]

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=20120306161613.GC8389@x2.net.home \
    --to=kzak@redhat.com \
    --cc=dbueso@aomail.uab.es \
    --cc=util-linux@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox