1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 12:55:08 +00:00

Make VFS test environment build again.

This commit is contained in:
Andreas Kling 2018-11-07 12:05:51 +01:00
parent 83172e6a4b
commit 981a3ae4b3
12 changed files with 40 additions and 34 deletions

View file

@ -26,16 +26,16 @@ int main(int c, char** v)
VirtualFileSystem vfs;
auto zero = make<ZeroDevice>();
vfs.registerCharacterDevice(1, 5, *zero);
vfs.registerCharacterDevice(*zero);
auto null = make<NullDevice>();
vfs.registerCharacterDevice(1, 3, *null);
vfs.registerCharacterDevice(*null);
auto full = make<FullDevice>();
vfs.registerCharacterDevice(1, 7, *full);
vfs.registerCharacterDevice(*full);
auto random = make<RandomDevice>();
vfs.registerCharacterDevice(1, 8, *random);
vfs.registerCharacterDevice(*random);
if (!vfs.mountRoot(makeFileSystem(filename))) {
printf("Failed to mount root :(\n");