L4Re/departure

Annotated conf/dstest_file_monitor.cfg

360:92c5f6aa8c36
2022-06-12 Paul Boddie Reintroduced PagerObject code generation required to initiate servers. mmap-region-flags
paul@211 1
-- vim:set ft=lua:
paul@211 2
paul@211 3
local L4 = require("L4");
paul@211 4
paul@211 5
local l = L4.default_loader;
paul@211 6
paul@211 7
local blocksvr = l:new_channel();
paul@211 8
paul@211 9
l:startv({
paul@211 10
    caps = {
paul@211 11
      server = blocksvr:svr(),
paul@211 12
    },
paul@211 13
    log = { "blocksvr", "r" },
paul@211 14
  },
paul@211 15
  "rom/dstest_block_server", "10");
paul@211 16
paul@211 17
local ext2svr = l:new_channel();
paul@211 18
paul@211 19
l:startv({
paul@211 20
    caps = {
paul@211 21
      blocksvr = blocksvr,
paul@211 22
      ext2svr = ext2svr:svr(),
paul@211 23
    },
paul@211 24
    log = { "ext2svr", "y" },
paul@211 25
  },
paul@211 26
  "rom/dstest_ext2_server", "blocksvr", "rom/e2test.fs", "10", "ext2svr");
paul@211 27
paul@211 28
-- Obtain user filesystems with umask 0022 (18).
paul@211 29
paul@211 30
local open_for_user = 6;
paul@211 31
local ext2svr_paulb = L4.cast(L4.Proto.Factory, ext2svr):create(open_for_user, 1000, 1000, 18);
paul@211 32
paul@211 33
l:startv({
paul@211 34
    caps = {
paul@211 35
      server = ext2svr_paulb,
paul@211 36
    },
paul@211 37
    log = { "client", "g" },
paul@211 38
  },
paul@211 39
  -- program, directory to monitor
paul@211 40
  "rom/dstest_file_monitor", "home/paulb");