From 5d65308e63edb01cebe7bb905228fd6a1d75f1c5 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Sun, 27 Jan 2013 18:31:35 +0100 Subject: [PATCH] File system: Let session quota depend on word size By basing the session quota on sizeof(long), we satisfy server-side quota demands on 64 bit. Fixes #619 --- os/include/file_system_session/connection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/include/file_system_session/connection.h b/os/include/file_system_session/connection.h index f9a27d09d..2f9f9d7a3 100644 --- a/os/include/file_system_session/connection.h +++ b/os/include/file_system_session/connection.h @@ -35,7 +35,7 @@ namespace File_system { : Genode::Connection( session("ram_quota=%zd, tx_buf_size=%zd, label=\"%s\"", - 4*4096 + tx_buf_size, tx_buf_size, label)), + 4*1024*sizeof(long) + tx_buf_size, tx_buf_size, label)), Session_client(cap(), tx_block_alloc) { } }; }