1.1 --- a/libfsserver/lib/files/ext2_filesystem.cc Sun Jul 25 23:18:39 2021 +0200
1.2 +++ b/libfsserver/lib/files/ext2_filesystem.cc Fri Jul 30 00:20:35 2021 +0200
1.3 @@ -24,13 +24,24 @@
1.4 #include "ext2_filesystem.h"
1.5 #include "resource_server.h"
1.6
1.7 +Ext2Filesystem::Ext2Filesystem(Pages *pages, ext2_filsys fs)
1.8 +: FilesystemResource(pages)
1.9 +{
1.10 + _ops = new Ext2FileOperations(fs);
1.11 +}
1.12 +
1.13 +Ext2Filesystem::~Ext2Filesystem()
1.14 +{
1.15 + delete _ops;
1.16 +}
1.17 +
1.18 /* Return a file opener object for the given user. */
1.19
1.20 long Ext2Filesystem::open_for_user(sys_uid_t uid, sys_gid_t gid,
1.21 sys_mode_t umask, l4_cap_idx_t *ref)
1.22 {
1.23 user_t user = (user_t) {uid, gid, umask};
1.24 - Resource *resource = new Ext2FileOpener(this, _fs, user);
1.25 + Resource *resource = new Ext2FileOpener(this, _ops, user);
1.26
1.27 /* Complete the initialisation and start a server in a new thread.
1.28 If the thread does not start, the resource will be finalised. */