]> www.infradead.org Git - users/hch/blktests.git/commit
nbd/003:add mount and clear_sock test for nbd
authorSun Ke <sunke32@huawei.com>
Mon, 23 Dec 2019 03:18:29 +0000 (11:18 +0800)
committerOmar Sandoval <osandov@fb.com>
Tue, 11 Feb 2020 22:22:21 +0000 (14:22 -0800)
commitf7b47c58e87caf91e1648b3c0fa348c555595800
tree4f5af9897c2d73b1f7ed4d87b9b60d15027d9cf5
parent393160adf8f0faf0a8e0c95bb8ad40fb06a01cdb
nbd/003:add mount and clear_sock test for nbd

Add the test case to check nbd device. This test case catches regressions
fixed by commit 92b5c8f0063e4 "nbd: replace kill_bdev() with
__invalidate_device() again".

Establish the nbd connection. Run two processes. The first one do mount
and umount, and the other one do clear_sock ioctl.

Signed-off-by: Sun Ke <sunke32@huawei.com>
[Omar: simplify]
Signed-off-by: Omar Sandoval <osandov@fb.com>
src/.gitignore
src/Makefile
src/mount_clear_sock.c [new file with mode: 0644]
tests/nbd/003 [new file with mode: 0644]
tests/nbd/003.out [new file with mode: 0644]