tests: virtio-9p: add walk operation test
commit04b88c84a14b55d31b9e8aec1fe86ab43e111662
authorGreg Kurz <groug@kaod.org>
Tue, 3 Jan 2017 16:28:44 +0000 (3 17:28 +0100)
committerGreg Kurz <groug@kaod.org>
Tue, 3 Jan 2017 16:28:44 +0000 (3 17:28 +0100)
treed584136250814b5ddf72512898b58a44601a7b69
parent5c3df1f0967e2166fff9c026ff1f616a89cab391
tests: virtio-9p: add walk operation test

The walk operation is used to traverse the directory tree and to associate
paths to fids. A single walk can be used to traverse up to P9_MAXWELEM path
elements at the same time.

The test creates a path with P9_MAXWELEM elements on the backend (à la
'mkdir -p') and issues a walk operation. The walk is expected to succeed
without error.

Reference:

http://man.cat-v.org/plan_9/5/walk

Signed-off-by: Greg Kurz <groug@kaod.org>
tests/virtio-9p-test.c