Commit c1aad883 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

zdtm: make zdtm to not fail if time changed in fd-list

In case if time is modified in ls -l output we should
not treat it as error, interrupting zdtm work

-lrwx------ 1 root root 64 Feb 17 14:52 0 -> /dev/null
-lrwx------ 1 root root 64 Feb 17 14:52 1 -> /dev/null
-lrwx------ 1 root root 64 Feb 17 14:52 2 -> /dev/null
+lrwx------ 1 root root 64 Feb 17 14:53 0 -> /dev/null
+lrwx------ 1 root root 64 Feb 17 14:53 1 -> /dev/null
+lrwx------ 1 root root 64 Feb 17 14:53 2 -> /dev/null
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Acked-by: 's avatarAndrew Vagin <avagin@parallels.com>
Acked-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e40d09d7
...@@ -51,7 +51,7 @@ ARGS="" ...@@ -51,7 +51,7 @@ ARGS=""
save_fds() save_fds()
{ {
ls -l /proc/$1/fd | sed 's/\(-> \(pipe\|socket\)\):.*/\1/' > $2 ls -l /proc/$1/fd | sed 's/\(-> \(pipe\|socket\)\):.*/\1/' | awk '{ print $9,$10,$11; }' > $2
} }
diff_fds() diff_fds()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment