mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 19:35:06 +00:00
Add a simple /dev/full.
This commit is contained in:
parent
fc1facf5c0
commit
9f9b4a2382
6 changed files with 85 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "SyntheticFileSystem.h"
|
||||
#include "ZeroDevice.h"
|
||||
#include "NullDevice.h"
|
||||
#include "FullDevice.h"
|
||||
#include <cstring>
|
||||
#include <AK/SimpleMalloc.h>
|
||||
#include <AK/kmalloc.h>
|
||||
|
@ -25,6 +26,9 @@ int main(int c, char** v)
|
|||
auto null = make<NullDevice>();
|
||||
vfs.registerCharacterDevice(1, 3, *null);
|
||||
|
||||
auto full = make<FullDevice>();
|
||||
vfs.registerCharacterDevice(1, 7, *full);
|
||||
|
||||
if (!vfs.mountRoot(makeFileSystem(filename))) {
|
||||
printf("Failed to mount root :(\n");
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue