3dd81b0d32
This commit updates Early-Adopters (EA) version of Sculpt to the version for The Curious (TC). Most importantly, it contains the new interactive sculpt-manager component that automates many system management and configuration tasks.
61 lines
1.7 KiB
C++
61 lines
1.7 KiB
C++
/*
|
|
* \brief XML configuration for file-system server
|
|
* \author Norman Feske
|
|
* \date 2018-05-02
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2018 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU Affero General Public License version 3.
|
|
*/
|
|
|
|
#include <runtime.h>
|
|
|
|
void Sculpt::gen_fs_start_content(Xml_generator &xml,
|
|
Storage_target const &target,
|
|
File_system::Type fs_type)
|
|
{
|
|
gen_common_start_content(xml, target.fs(),
|
|
Cap_quota{400}, Ram_quota{64*1024*1024});
|
|
|
|
gen_named_node(xml, "binary", "vfs");
|
|
|
|
gen_provides<::File_system::Session>(xml);
|
|
|
|
xml.node("config", [&] () {
|
|
xml.node("vfs", [&] () {
|
|
xml.node("rump", [&] () {
|
|
switch (fs_type) {
|
|
case File_system::EXT2: xml.attribute("fs", "ext2fs"); break;
|
|
case File_system::FAT32: xml.attribute("fs", "msdos"); break;
|
|
case File_system::UNKNOWN: break;
|
|
};
|
|
xml.attribute("ram", "48M");
|
|
xml.attribute("writeable", "yes");
|
|
});
|
|
});
|
|
xml.node("default-policy", [&] () {
|
|
xml.attribute("root", "/");
|
|
xml.attribute("writeable", "yes");
|
|
});
|
|
});
|
|
|
|
xml.node("route", [&] () {
|
|
gen_parent_rom_route(xml, "vfs");
|
|
gen_parent_rom_route(xml, "ld.lib.so");
|
|
gen_parent_rom_route(xml, "vfs.lib.so");
|
|
gen_parent_rom_route(xml, "vfs_rump.lib.so");
|
|
gen_parent_rom_route(xml, "rump.lib.so");
|
|
gen_parent_rom_route(xml, "rump_fs.lib.so");
|
|
gen_parent_route<Cpu_session> (xml);
|
|
gen_parent_route<Pd_session> (xml);
|
|
gen_parent_route<Rm_session> (xml);
|
|
gen_parent_route<Log_session> (xml);
|
|
gen_parent_route<Timer::Session> (xml);
|
|
|
|
target.gen_block_session_route(xml);
|
|
});
|
|
}
|