VFS: move 'sync' from 'File_system' to 'Directory_service'

The the parent 'Directory_service' interface is reachable from
'Vfs_handle', whereas the 'File_system' interface is not.

Fix #2437
Ref #2422
This commit is contained in:
Emery Hemingway
2017-06-05 11:06:20 -05:00
committed by Christian Helmuth
parent 231a7e92fc
commit 1eb37fbe22
2 changed files with 7 additions and 7 deletions

View File

@@ -188,6 +188,13 @@ struct Vfs::Directory_service
virtual bool directory(char const *path) = 0;
virtual char const *leaf_path(char const *path) = 0;
/**
* Synchronize file system
*
* This method flushes any delayed operations from the file system.
*/
virtual void sync(char const *path) { }
};
#endif /* _INCLUDE__VFS__DIRECTORY_SERVICE_H_ */

View File

@@ -29,13 +29,6 @@ struct Vfs::File_system : Directory_service, File_io_service
File_system() : next(0) { }
/**
* Synchronize file system
*
* This method flushes any delayed operations from the file system.
*/
virtual void sync(char const *path) { }
/**
* Adjust to configuration changes
*/