diff --git a/src/kernel/boot/loader/RootFileSystem.cpp b/src/kernel/boot/loader/RootFileSystem.cpp index de6e23782e..0df8a91ebd 100644 --- a/src/kernel/boot/loader/RootFileSystem.cpp +++ b/src/kernel/boot/loader/RootFileSystem.cpp @@ -121,6 +121,13 @@ RootFileSystem::Rewind(void *_cookie) } +bool +RootFileSystem::IsEmpty() +{ + return list_is_empty(&fList); +} + + status_t RootFileSystem::AddNode(Node *node) { diff --git a/src/kernel/boot/loader/RootFileSystem.h b/src/kernel/boot/loader/RootFileSystem.h index 0c920f3fea..bd15fd3507 100644 --- a/src/kernel/boot/loader/RootFileSystem.h +++ b/src/kernel/boot/loader/RootFileSystem.h @@ -22,6 +22,7 @@ class RootFileSystem : public Directory { virtual status_t GetNextEntry(void *cookie, char *nameBuffer, size_t bufferSize); virtual status_t GetNextNode(void *cookie, Node **_node); virtual status_t Rewind(void *cookie); + virtual bool IsEmpty(); virtual status_t AddNode(Node *node);