From: Masatake YAMATO Date: Sun, 12 Nov 2023 16:43:36 +0000 (+0900) Subject: lslocks: (test) add a case for OFDLCK type locks X-Git-Tag: v2.40-rc1~163^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a3873235fc5eedd60c42522834ab9405b12e1e2;p=thirdparty%2Futil-linux.git lslocks: (test) add a case for OFDLCK type locks Signed-off-by: Masatake YAMATO --- diff --git a/tests/expected/lslocks/lslocks-ofd--w b/tests/expected/lslocks/lslocks-ofd--w new file mode 100644 index 0000000000..20b8bc9c01 --- /dev/null +++ b/tests/expected/lslocks/lslocks-ofd--w @@ -0,0 +1,4 @@ +test_mkfds OFDLCK 1B WRITE 0 0 +# ofd--w + COMMAND,TYPE,SIZE,MODE,START,END + --raw --noheadings: 0 +util-linux-lslocks-target-file +# ofd--w + PATH + --raw --noheadings: 0 diff --git a/tests/expected/lslocks/lslocks-ofd-r- b/tests/expected/lslocks/lslocks-ofd-r- new file mode 100644 index 0000000000..bf9e809943 --- /dev/null +++ b/tests/expected/lslocks/lslocks-ofd-r- @@ -0,0 +1,4 @@ +test_mkfds OFDLCK 1B READ 0 0 +# ofd-r- + COMMAND,TYPE,SIZE,MODE,START,END + --raw --noheadings: 0 +util-linux-lslocks-target-file +# ofd-r- + PATH + --raw --noheadings: 0 diff --git a/tests/expected/lslocks/lslocks-ofd-rw b/tests/expected/lslocks/lslocks-ofd-rw new file mode 100644 index 0000000000..dd3d71c959 --- /dev/null +++ b/tests/expected/lslocks/lslocks-ofd-rw @@ -0,0 +1,6 @@ +test_mkfds OFDLCK 3B READ 0 0 +test_mkfds OFDLCK 3B WRITE 2 2 +# ofd-rw + COMMAND,TYPE,SIZE,MODE,START,END + --raw --noheadings: 0 +util-linux-lslocks-target-file +util-linux-lslocks-target-file +# ofd-rw + PATH + --raw --noheadings: 0 diff --git a/tests/ts/lslocks/lslocks b/tests/ts/lslocks/lslocks index fc64c8546c..1f56bafd3c 100755 --- a/tests/ts/lslocks/lslocks +++ b/tests/ts/lslocks/lslocks @@ -37,9 +37,9 @@ METHODS=( posix-r- posix--w posix-rw -# ofd-r- -# ofd--w -# ofd-rw + ofd-r- + ofd--w + ofd-rw lease-w )