vfs_import: log each copy and the completion of import
parent
6bd3b29f5d
commit
0b160f488b
|
@ -65,6 +65,7 @@ with ports; {
|
|||
|
||||
vfs.outputs = [ "out" "lib" ];
|
||||
|
||||
vfs_import.patches = [ ./vfs_import.patch ];
|
||||
vfs_jitterentropy.portInputs = [ jitterentropy libc ];
|
||||
vfs_lwip.portInputs = [ lwip ];
|
||||
vfs_ttf.portInputs = [ libc stb ];
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
commit 45eefd57af801b23bee5e7a587f91f888acfca84
|
||||
Author: Emery Hemingway <ehmry@posteo.net>
|
||||
Date: Mon Jun 8 13:02:24 2020 +0530
|
||||
|
||||
vfs_import: log each copy and the completion of import
|
||||
|
||||
diff --git a/repos/gems/src/lib/vfs/import/plugin.cc b/repos/gems/src/lib/vfs/import/plugin.cc
|
||||
index 0309346c21..0708563667 100644
|
||||
--- a/repos/gems/src/lib/vfs/import/plugin.cc
|
||||
+++ b/repos/gems/src/lib/vfs/import/plugin.cc
|
||||
@@ -213,12 +213,14 @@ class Vfs_import::File_system : public Vfs::File_system
|
||||
switch (e.type()) {
|
||||
case Dirent_type::TRANSACTIONAL_FILE:
|
||||
case Dirent_type::CONTINUOUS_FILE:
|
||||
+ Genode::log("VFS: importing \"", entry_path, "\"…");
|
||||
copy_file(env, src, entry_path, alloc, overwrite);
|
||||
return;
|
||||
case Dirent_type::DIRECTORY:
|
||||
copy_dir(env, src, entry_path, alloc, overwrite);
|
||||
return;
|
||||
case Dirent_type::SYMLINK:
|
||||
+ Genode::log("VFS: importing \"", entry_path, "\"…");
|
||||
copy_symlink(env, src, entry_path, alloc, overwrite);
|
||||
return;
|
||||
case Dirent_type::END:
|
||||
@@ -238,6 +240,7 @@ class Vfs_import::File_system : public Vfs::File_system
|
||||
|
||||
Root_directory content(env.env(), _heap, config);
|
||||
copy_dir(env, content, Directory::Path(""), _heap, overwrite);
|
||||
+ Genode::log("VFS: import complete");
|
||||
}
|
||||
|
||||
const char* type() override { return "import"; }
|
Loading…
Reference in New Issue