1.1 --- a/libfsserver/lib/files/opener_context_resource.cc Mon Aug 02 19:39:10 2021 +0200
1.2 +++ b/libfsserver/lib/files/opener_context_resource.cc Tue Aug 03 00:05:43 2021 +0200
1.3 @@ -22,7 +22,6 @@
1.4 #include "opener_context_resource.h"
1.5 #include "opener_context_object_server.h"
1.6 #include "opener_resource.h"
1.7 -#include "resource_server.h"
1.8
1.9 #include <string.h>
1.10
1.11 @@ -73,19 +72,7 @@
1.12 if (path == NULL)
1.13 return -L4_EINVAL;
1.14
1.15 - Pager *pager;
1.16 - long err = _opener->open(path, flags, &pager);
1.17 -
1.18 - if (err)
1.19 - return err;
1.20 -
1.21 - *size = pager->get_data_size();
1.22 -
1.23 - /* Complete the initialisation and start a server in a new thread.
1.24 - If the thread does not start, the resource (including pager) will be
1.25 - finalised. */
1.26 -
1.27 - return ResourceServer(pager).start_thread(file);
1.28 + return _opener->open(path, flags, size, file);
1.29 }
1.30
1.31 // vim: tabstop=4 expandtab shiftwidth=4