L4Re/departure

Annotated conf/dstest_file.cfg

391:bc65615a8fed
2022-06-30 Paul Boddie Added missing structure members. mmap-region-flags
paul@141 1
-- vim:set ft=lua:
paul@141 2
paul@141 3
local L4 = require("L4");
paul@141 4
paul@141 5
local l = L4.default_loader;
paul@141 6
paul@147 7
local blocksvr = l:new_channel();
paul@147 8
paul@147 9
l:startv({
paul@147 10
    caps = {
paul@147 11
      server = blocksvr:svr(),
paul@147 12
    },
paul@147 13
    log = { "blocksvr", "r" },
paul@147 14
  },
paul@147 15
  "rom/dstest_block_server", "10");
paul@147 16
paul@147 17
local ext2svr = l:new_channel();
paul@141 18
paul@141 19
l:startv({
paul@141 20
    caps = {
paul@147 21
      blocksvr = blocksvr,
paul@147 22
      ext2svr = ext2svr:svr(),
paul@141 23
    },
paul@147 24
    log = { "ext2svr", "y" },
paul@141 25
  },
paul@147 26
  "rom/dstest_ext2_server", "blocksvr", "rom/e2test.fs", "10", "ext2svr");
paul@141 27
paul@151 28
-- Obtain user filesystems with umask 0022 (18).
paul@151 29
paul@152 30
local open_for_user = 6;
paul@152 31
local ext2svr_paulb = L4.cast(L4.Proto.Factory, ext2svr):create(open_for_user, 1000, 1000, 18);
paul@151 32
paul@141 33
l:startv({
paul@141 34
    caps = {
paul@151 35
      server = ext2svr_paulb,
paul@141 36
    },
paul@141 37
    log = { "client", "g" },
paul@141 38
  },
paul@151 39
  -- program, file to create
paul@151 40
  "rom/dstest_file_client", "home/paulb/new file");