L4Re/departure

Annotated conf/dstest_file_readdir.cfg

391:bc65615a8fed
2022-06-30 Paul Boddie Added missing structure members. mmap-region-flags
paul@168 1
-- vim:set ft=lua:
paul@168 2
paul@168 3
local L4 = require("L4");
paul@168 4
paul@168 5
local l = L4.default_loader;
paul@168 6
paul@168 7
local pipe_server = l:new_channel();
paul@168 8
paul@168 9
l:startv({
paul@168 10
    caps = {
paul@168 11
      server = pipe_server:svr(),
paul@168 12
    },
paul@168 13
    log = { "pipes", "r" },
paul@168 14
  },
paul@168 15
  "rom/dstest_pipe_server", "10");
paul@168 16
paul@168 17
local block_server = l:new_channel();
paul@168 18
paul@168 19
l:startv({
paul@168 20
    caps = {
paul@168 21
      server = block_server:svr(),
paul@168 22
    },
paul@168 23
    log = { "blocksvr", "r" },
paul@168 24
  },
paul@168 25
  "rom/dstest_block_server", "10");
paul@168 26
paul@168 27
local ext2svr = l:new_channel();
paul@168 28
paul@168 29
l:startv({
paul@168 30
    caps = {
paul@168 31
      blocksvr = block_server,
paul@168 32
      pipes = pipe_server,
paul@168 33
      ext2svr = ext2svr:svr(),
paul@168 34
    },
paul@168 35
    log = { "ext2svr", "y" },
paul@168 36
  },
paul@168 37
  "rom/dstest_ext2_server", "blocksvr", "rom/e2test.fs", "10", "ext2svr");
paul@168 38
paul@168 39
-- Obtain user filesystems with umask 0022 (18).
paul@168 40
paul@168 41
local open_for_user = 6;
paul@168 42
local ext2svr_paulb = L4.cast(L4.Proto.Factory, ext2svr):create(open_for_user, 1000, 1000, 18);
paul@168 43
paul@168 44
l:startv({
paul@168 45
    caps = {
paul@168 46
      server = ext2svr_paulb,
paul@168 47
    },
paul@168 48
    log = { "client", "g" },
paul@168 49
  },
paul@213 50
  -- program, directory to read
paul@168 51
  "rom/dstest_file_readdir", "home/paulb/many");