]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lslocks: (test) add a case for OFDLCK type locks
authorMasatake YAMATO <yamato@redhat.com>
Sun, 12 Nov 2023 16:43:36 +0000 (01:43 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Sun, 12 Nov 2023 18:30:30 +0000 (03:30 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/expected/lslocks/lslocks-ofd--w [new file with mode: 0644]
tests/expected/lslocks/lslocks-ofd-r- [new file with mode: 0644]
tests/expected/lslocks/lslocks-ofd-rw [new file with mode: 0644]
tests/ts/lslocks/lslocks

diff --git a/tests/expected/lslocks/lslocks-ofd--w b/tests/expected/lslocks/lslocks-ofd--w
new file mode 100644 (file)
index 0000000..20b8bc9
--- /dev/null
@@ -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 (file)
index 0000000..bf9e809
--- /dev/null
@@ -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 (file)
index 0000000..dd3d71c
--- /dev/null
@@ -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
index fc64c8546c8e41824b476aecaa017ffcc7412d6c..1f56bafd3ca7c26c8bf1413730f02561f48ffe9c 100755 (executable)
@@ -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
 )