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:
committed by
Christian Helmuth
parent
231a7e92fc
commit
1eb37fbe22
@@ -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_ */
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user