Made sources UserlandFS friendly. Can't be used with the fs_shell ATM,
anyway. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20462 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include <KernelExport.h>
|
#include <KernelExport.h>
|
||||||
#ifdef USER
|
#ifdef USER
|
||||||
# include "myfs.h"
|
//# include "myfs.h"
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include <KernelExport.h>
|
#include <KernelExport.h>
|
||||||
#ifdef USER
|
#ifdef USER
|
||||||
# include "myfs.h"
|
//# include "myfs.h"
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include <util/DoublyLinkedList.h>
|
#include <util/DoublyLinkedList.h>
|
||||||
|
|
||||||
#ifdef USER
|
#ifdef USER
|
||||||
# include "myfs.h"
|
//# include "myfs.h"
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -574,7 +574,7 @@ Volume::Identify(int fd, disk_super_block *superBlock)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USER
|
#ifdef USER
|
||||||
extern "C" void kill_device_vnodes(dev_t id);
|
//extern "C" void kill_device_vnodes(dev_t id);
|
||||||
// This call is only available in the userland fs_shell
|
// This call is only available in the userland fs_shell
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
@@ -672,7 +672,7 @@ Volume::Initialize(const char *device, const char *name, uint32 blockSize, uint3
|
|||||||
if (fIndicesNode != NULL)
|
if (fIndicesNode != NULL)
|
||||||
put_vnode(ID(), fIndicesNode->ID());
|
put_vnode(ID(), fIndicesNode->ID());
|
||||||
|
|
||||||
kill_device_vnodes(ID());
|
// kill_device_vnodes(ID());
|
||||||
// This call is only available in the userland fs_shell
|
// This call is only available in the userland fs_shell
|
||||||
|
|
||||||
Sync();
|
Sync();
|
||||||
|
|||||||
Reference in New Issue
Block a user