bfs: add stub for ResizeVisitor.
This allows to have all the tools (resizefs, fs_shell, etc) merged, and split out the remaining BFS resize changes in a way that makes some sense. We can easily merge all the basic infrastructure (ioctls, etc) without any of the actual resizing code (I'll leave that to professionals).
This commit is contained in:
@@ -40,6 +40,7 @@ local bfsSources =
|
||||
Journal.cpp
|
||||
Query.cpp
|
||||
QueryParserUtils.cpp
|
||||
ResizeVisitor.cpp
|
||||
Volume.cpp
|
||||
|
||||
kernel_interface.cpp
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Adrien Destugues <[email protected]>
|
||||
*
|
||||
* Distributed under terms of the MIT license.
|
||||
*/
|
||||
|
||||
#include "ResizeVisitor.h"
|
||||
|
||||
|
||||
ResizeVisitor::ResizeVisitor(Volume* volume)
|
||||
:
|
||||
FileSystemVisitor(volume)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
ResizeVisitor::Resize(off_t size, disk_job_id job)
|
||||
{
|
||||
return B_NOT_SUPPORTED;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* ResizeVisitor.h
|
||||
* Copyright (C) 2020 Adrien Destugues <[email protected]>
|
||||
*
|
||||
* Distributed under terms of the MIT license.
|
||||
*/
|
||||
|
||||
#ifndef RESIZE_VISITOR_H
|
||||
#define RESIZE_VISITOR_H
|
||||
|
||||
|
||||
#include "FileSystemVisitor.h"
|
||||
|
||||
|
||||
class ResizeVisitor: public FileSystemVisitor {
|
||||
public:
|
||||
ResizeVisitor(Volume* volume);
|
||||
|
||||
status_t Resize(off_t size, disk_job_id job);
|
||||
};
|
||||
|
||||
|
||||
#endif /* !RESIZE_VISITOR_H */
|
||||
@@ -7,6 +7,7 @@
|
||||
//! file system interface to Haiku's vnode layer
|
||||
|
||||
|
||||
#include "Attribute.h"
|
||||
#include "CheckVisitor.h"
|
||||
#include "Debug.h"
|
||||
#include "Volume.h"
|
||||
@@ -14,7 +15,7 @@
|
||||
#include "Index.h"
|
||||
#include "BPlusTree.h"
|
||||
#include "Query.h"
|
||||
#include "Attribute.h"
|
||||
#include "ResizeVisitor.h"
|
||||
#include "bfs_control.h"
|
||||
#include "bfs_disk_system.h"
|
||||
|
||||
|
||||
@@ -60,6 +60,7 @@ local bfsSource =
|
||||
Journal.cpp
|
||||
Query.cpp
|
||||
QueryParserUtils.cpp
|
||||
ResizeVisitor.cpp
|
||||
Volume.cpp
|
||||
|
||||
kernel_interface.cpp
|
||||
|
||||
Reference in New Issue
Block a user