Re: [PATCH] lslocks: add personality column

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 02, 2012 at 02:00:06PM +0100, Davidlohr Bueso wrote:
> From: Davidlohr Bueso <dave@xxxxxxx>
> 
> 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@xxxxxxx>
> ---
>  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@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux