Remove debug code from FileStore
This commit is contained in:
parent
f430d6d398
commit
3edc8be1aa
6
deps/ox/src/ox/fs/filestore.hpp
vendored
6
deps/ox/src/ox/fs/filestore.hpp
vendored
@ -10,10 +10,6 @@
|
|||||||
|
|
||||||
#include <ox/std/std.hpp>
|
#include <ox/std/std.hpp>
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
using std::cout;
|
|
||||||
using std::endl;
|
|
||||||
|
|
||||||
namespace ox {
|
namespace ox {
|
||||||
|
|
||||||
template<typename FsT, typename InodeId>
|
template<typename FsT, typename InodeId>
|
||||||
@ -805,7 +801,6 @@ void *FileStore<Header>::alloc(typename Header::FsSize_t size) {
|
|||||||
compact();
|
compact();
|
||||||
next = nextInodeAddr();
|
next = nextInodeAddr();
|
||||||
if ((next + size) > ptr(end())) {
|
if ((next + size) > ptr(end())) {
|
||||||
cout << "alloc returning nullptr\n";
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -823,7 +818,6 @@ void *FileStore<Header>::alloc(typename Header::FsSize_t size) {
|
|||||||
|
|
||||||
template<typename Header>
|
template<typename Header>
|
||||||
void FileStore<Header>::compact() {
|
void FileStore<Header>::compact() {
|
||||||
cout << "FileStore::compact\n";
|
|
||||||
auto dest = ptr<Inode*>(firstInode());
|
auto dest = ptr<Inode*>(firstInode());
|
||||||
auto current = ptr<Inode*>(firstInode());
|
auto current = ptr<Inode*>(firstInode());
|
||||||
while (current->getNext() > firstInode() && current->getNext() < ptr(end())) {
|
while (current->getNext() > firstInode() && current->getNext() < ptr(end())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user