2014-04-07 14:15:40 +00:00
|
|
|
/*
|
|
|
|
* \brief VFS file-system back-end interface
|
|
|
|
* \author Norman Feske
|
|
|
|
* \date 2011-02-17
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2017-02-20 12:23:52 +00:00
|
|
|
* Copyright (C) 2011-2017 Genode Labs GmbH
|
2014-04-07 14:15:40 +00:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
2017-02-20 12:23:52 +00:00
|
|
|
* under the terms of the GNU Affero General Public License version 3.
|
2014-04-07 14:15:40 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INCLUDE__VFS__FILE_SYSTEM_H_
|
|
|
|
#define _INCLUDE__VFS__FILE_SYSTEM_H_
|
|
|
|
|
|
|
|
#include <vfs/directory_service.h>
|
|
|
|
#include <vfs/file_io_service.h>
|
|
|
|
|
|
|
|
namespace Vfs { struct File_system; }
|
|
|
|
|
|
|
|
|
|
|
|
struct Vfs::File_system : Directory_service, File_io_service
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Our next sibling within the same 'Dir_file_system'
|
|
|
|
*/
|
|
|
|
struct File_system *next;
|
|
|
|
|
|
|
|
File_system() : next(0) { }
|
|
|
|
|
2017-02-07 18:03:23 +00:00
|
|
|
/**
|
|
|
|
* Adjust to configuration changes
|
|
|
|
*/
|
|
|
|
virtual void apply_config(Genode::Xml_node const &node) { }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the file-system type
|
|
|
|
*/
|
|
|
|
virtual char const *type() = 0;
|
2014-04-07 14:15:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _INCLUDE__VFS__FILE_SYSTEM_H_ */
|