rump_fs mount file system failed

Christian Helmuth christian.helmuth at genode-labs.com
Wed Nov 14 11:53:55 CET 2018


Hello lzSun,

On Wed, Nov 14, 2018 at 05:07:56PM +0800, lzSun wrote:
> Thanks for your help. Now, the file system can be mounted. However, there's still errors in my test.That is File_system-session creation failed. Here's the output message:
> [init -> part_blk] Partition 1: LBA 10240 (7733248 blocks) type: 83
> [init] child "part_blk" announces service "Block"
> [init -> part_blk] session opened at partition 1 for 'rump_fs -> '
> [init -> rump_fs] Using ext2fs as file system
> [init -> rump_fs] asserting rump kernel 14253 KB of RAM
> [init -> rump_fs] rump: /genode: file system not clean; please fsck(8)
> [init] child "rump_fs" announces service "File_system"
> [init -> test-file] Error: File_system-session creation failed (ram_quota=163840, cap_quota=12, tx_buf_size=131072, label="", root="", writeable=1)
> [init -> test-file] Error: failed to create <fs> VFS node

I skip your test program as the issue is clearly the failing
file-system session creation. In your rump_fs config you state

  <policy label="" root="/" writeable="yes"/>

which means in natural language

  Allow *empty* labels to access root / writeable.

Please note, we changed the parsing of labels in policies in release
16.11 [1]. You may also refer to the Genode Foundations book [2].

Coming back to your current issue you should change the policy
definition to a wild-card match.

  <policy label_prefix="" root="/" writeable="yes"/>

or

  <default-policy root="/" writeable="yes"/>

[1] https://genode.org/documentation/release-notes/16.11#Unification_and_tightening_of_session_labels
[2] Genode Foundations Section 4.6.2. Server-side policy selection

Regards
-- 
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth



More information about the users mailing list