<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/util-linux.git/tests/ts/lsfd/mkfds-socketpair, branch master</title>
<subtitle>git.kernel.org: pub/scm/utils/util-linux/util-linux.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/'/>
<entry>
<title>tests: (lsfd) use ${PIPESTATUS[]} instead of $?</title>
<updated>2023-03-01T14:35:08+00:00</updated>
<author>
<name>Masatake YAMATO</name>
<email>yamato@redhat.com</email>
</author>
<published>2023-02-28T01:45:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=9be2c8b2774cf9c9ad521d6dc17005013d6484dd'/>
<id>9be2c8b2774cf9c9ad521d6dc17005013d6484dd</id>
<content type='text'>
Signed-off-by: Masatake YAMATO &lt;yamato@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Masatake YAMATO &lt;yamato@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: (lsfd) send a signal only if the target PID is know</title>
<updated>2023-02-26T08:26:47+00:00</updated>
<author>
<name>Masatake YAMATO</name>
<email>yamato@redhat.com</email>
</author>
<published>2022-10-26T15:23:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=ffc7662ee3a9032227fe07f0035e3ed9ec246077'/>
<id>ffc7662ee3a9032227fe07f0035e3ed9ec246077</id>
<content type='text'>
Signed-off-by: Masatake YAMATO &lt;yamato@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Masatake YAMATO &lt;yamato@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: wrap $TS_{TOPDIR,SELF} in "." cmdline with double quote chars</title>
<updated>2022-11-23T07:09:48+00:00</updated>
<author>
<name>Masatake YAMATO</name>
<email>yamato@redhat.com</email>
</author>
<published>2022-11-23T07:03:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=7155e836defb336536d39dd9aed57770c55b1aa9'/>
<id>7155e836defb336536d39dd9aed57770c55b1aa9</id>
<content type='text'>
The command lines used for this change:

  $ cd tests/ts
  $ sed  -i -e 's|. $TS_SELF/|. "$TS_SELF"/|'  $(grep --exclude='*~' -lr -e '^\. \$TS_SELF/')
  $ sed -i -e 's|. $TS_TOPDIR/functions.sh|. "$TS_TOPDIR"/functions.sh|'  $(grep --exclude='*~' -lr -e '^\. \$TS_TOPDIR/functions.sh')

Signed-off-by: Masatake YAMATO &lt;yamato@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The command lines used for this change:

  $ cd tests/ts
  $ sed  -i -e 's|. $TS_SELF/|. "$TS_SELF"/|'  $(grep --exclude='*~' -lr -e '^\. \$TS_SELF/')
  $ sed -i -e 's|. $TS_TOPDIR/functions.sh|. "$TS_TOPDIR"/functions.sh|'  $(grep --exclude='*~' -lr -e '^\. \$TS_TOPDIR/functions.sh')

Signed-off-by: Masatake YAMATO &lt;yamato@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lsfd: &lt;breaking comaptiblity&gt; move PROTONAME column to SOCK. column namespace</title>
<updated>2022-10-03T12:52:17+00:00</updated>
<author>
<name>Masatake YAMATO</name>
<email>yamato@redhat.com</email>
</author>
<published>2022-10-01T21:16:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=e193602afdbe2d8c39863aaa08d39495d12cbaef'/>
<id>e193602afdbe2d8c39863aaa08d39495d12cbaef</id>
<content type='text'>
Signed-off-by: Masatake YAMATO &lt;yamato@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Masatake YAMATO &lt;yamato@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lsfd: use TYPE column to show cooked file types</title>
<updated>2022-09-09T17:29:20+00:00</updated>
<author>
<name>Masatake YAMATO</name>
<email>yamato@redhat.com</email>
</author>
<published>2022-09-03T15:25:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=be019f664db6eef7f2df38d31f1627d74a82fe65'/>
<id>be019f664db6eef7f2df38d31f1627d74a82fe65</id>
<content type='text'>
lsfd has two exclusive requirements：

A. show quickly understandable information in limited display area, and
B. provide primitive raw information for post-process tools.

For the purpose A, summarizing information is nice. However, the
summarized information is not suitable for tools.

To satisfy the both requirements, I plan introducing new fields
with a new convention.

STTYPE represents the type information returned from stat(2).
TYPE is the same as STTYPE but two exceptions; TYPE is filled with
PROTONAME value if the target fd is a socket, or with AINODECLASS
value if the target fd is a anonymous inode.

Below an example output:

    $ ./lsfd -o COMMAND,TYPE,STTYPE,NAME -Q '(TYPE != STTYPE)'  | head
    COMMAND                TYPE STTYPE NAME
    systemd         UNIX-STREAM   SOCK UNIX-STREAM:[25493]
    systemd         UNIX-STREAM   SOCK UNIX-STREAM:[25493]
    systemd                UNIX   SOCK UNIX:[31445]
    systemd           eventpoll   UNKN anon_inode:[eventpoll]
    systemd            signalfd   UNKN anon_inode:[signalfd]
    systemd             inotify   UNKN anon_inode:inotify
    systemd             timerfd   UNKN anon_inode:[timerfd]
    systemd           eventpoll   UNKN anon_inode:[eventpoll]
    systemd             inotify   UNKN anon_inode:inotify

STTYPE, column for tools, is printed only when the column is specified
with -o option.

Signed-off-by: Masatake YAMATO &lt;yamato@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
lsfd has two exclusive requirements：

A. show quickly understandable information in limited display area, and
B. provide primitive raw information for post-process tools.

For the purpose A, summarizing information is nice. However, the
summarized information is not suitable for tools.

To satisfy the both requirements, I plan introducing new fields
with a new convention.

STTYPE represents the type information returned from stat(2).
TYPE is the same as STTYPE but two exceptions; TYPE is filled with
PROTONAME value if the target fd is a socket, or with AINODECLASS
value if the target fd is a anonymous inode.

Below an example output:

    $ ./lsfd -o COMMAND,TYPE,STTYPE,NAME -Q '(TYPE != STTYPE)'  | head
    COMMAND                TYPE STTYPE NAME
    systemd         UNIX-STREAM   SOCK UNIX-STREAM:[25493]
    systemd         UNIX-STREAM   SOCK UNIX-STREAM:[25493]
    systemd                UNIX   SOCK UNIX:[31445]
    systemd           eventpoll   UNKN anon_inode:[eventpoll]
    systemd            signalfd   UNKN anon_inode:[signalfd]
    systemd             inotify   UNKN anon_inode:inotify
    systemd             timerfd   UNKN anon_inode:[timerfd]
    systemd           eventpoll   UNKN anon_inode:[eventpoll]
    systemd             inotify   UNKN anon_inode:inotify

STTYPE, column for tools, is printed only when the column is specified
with -o option.

Signed-off-by: Masatake YAMATO &lt;yamato@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: (lsfd) normalize protoname before comparing</title>
<updated>2021-11-29T13:26:03+00:00</updated>
<author>
<name>Masatake YAMATO</name>
<email>yamato@redhat.com</email>
</author>
<published>2021-11-29T13:26:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=225154fedffe5b3898508cb13a2e5b5251c7816c'/>
<id>225154fedffe5b3898508cb13a2e5b5251c7816c</id>
<content type='text'>
This is a follow-up commit to a60ac11fe0087584f37329b4733edfade3452c64.

&gt;    In the commit, the protoname of (AF_UNIX, SOCK_DGRAM) sockets was also
&gt;    changed to "UNIX-DGRAM". However, it was renamed back to "UNIX" in
&gt;    https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0edf0824e0dc359ed76bf96af986e6570ca2c0b9

To make this test case more portable, this change makes the test case
accept "UINX-DGRAM" in addition to "UINX", too.

Signed-off-by: Masatake YAMATO &lt;yamato@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a follow-up commit to a60ac11fe0087584f37329b4733edfade3452c64.

&gt;    In the commit, the protoname of (AF_UNIX, SOCK_DGRAM) sockets was also
&gt;    changed to "UNIX-DGRAM". However, it was renamed back to "UNIX" in
&gt;    https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0edf0824e0dc359ed76bf96af986e6570ca2c0b9

To make this test case more portable, this change makes the test case
accept "UINX-DGRAM" in addition to "UINX", too.

Signed-off-by: Masatake YAMATO &lt;yamato@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: (lsfd) make DGRAM socketpair to mitigate the change of protoname</title>
<updated>2021-11-27T00:52:53+00:00</updated>
<author>
<name>Masatake YAMATO</name>
<email>yamato@redhat.com</email>
</author>
<published>2021-11-27T00:39:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=a60ac11fe0087584f37329b4733edfade3452c64'/>
<id>a60ac11fe0087584f37329b4733edfade3452c64</id>
<content type='text'>
The protoname for a socket can be get from its xattr slot of
/proc/$PID/fd/$FD.

The protoname for (AF_UNIX, SOCK_STREAM) sockets was changed
from "UNIX" to "UNIX-STREAM" in
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=94531cfcbe79c3598acf96806627b2137ca32eb9

As the result, the test case, mkfds-socketpair doesn't work well on a
newer kernel.

To mitigate the impact of the change in the kernel, use (AF_UNIX, SOCK_DGRAM)
for making a socket pair.

In the commit, the protoname of (AF_UNIX, SOCK_DGRAM) sockets was also
changed to "UNIX-DGRAM". However, it was renamed back to "UNIX" in
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0edf0824e0dc359ed76bf96af986e6570ca2c0b9

Partially close #1511.

Signed-off-by: Masatake YAMATO &lt;yamato@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The protoname for a socket can be get from its xattr slot of
/proc/$PID/fd/$FD.

The protoname for (AF_UNIX, SOCK_STREAM) sockets was changed
from "UNIX" to "UNIX-STREAM" in
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=94531cfcbe79c3598acf96806627b2137ca32eb9

As the result, the test case, mkfds-socketpair doesn't work well on a
newer kernel.

To mitigate the impact of the change in the kernel, use (AF_UNIX, SOCK_DGRAM)
for making a socket pair.

In the commit, the protoname of (AF_UNIX, SOCK_DGRAM) sockets was also
changed to "UNIX-DGRAM". However, it was renamed back to "UNIX" in
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0edf0824e0dc359ed76bf96af986e6570ca2c0b9

Partially close #1511.

Signed-off-by: Masatake YAMATO &lt;yamato@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lsfd: (test) add a case for displaying socket pairs</title>
<updated>2021-10-21T12:06:39+00:00</updated>
<author>
<name>Masatake YAMATO</name>
<email>yamato@redhat.com</email>
</author>
<published>2021-10-15T18:48:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/util-linux.git/commit/?id=d827da235fefbd353e3b981537c657aeb8be19f8'/>
<id>d827da235fefbd353e3b981537c657aeb8be19f8</id>
<content type='text'>
Signed-off-by: Masatake YAMATO &lt;yamato@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Masatake YAMATO &lt;yamato@redhat.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
