fixed btrfs_shell
Change-Id: I792661b62d896f105690500403650b174a649de6
This commit is contained in:
committed by
Adrien Destugues
parent
bc6dc61fb9
commit
7868a011b8
@@ -12,8 +12,8 @@
|
|||||||
|
|
||||||
#if !USER
|
#if !USER
|
||||||
# include <KernelExport.h>
|
# include <KernelExport.h>
|
||||||
|
# include <OS.h>
|
||||||
#endif
|
#endif
|
||||||
#include <OS.h>
|
|
||||||
#include <SupportDefs.h>
|
#include <SupportDefs.h>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,9 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#undef __THROW
|
||||||
|
#define __THROW
|
||||||
|
|
||||||
#include "fssh_dirent.h"
|
#include "fssh_dirent.h"
|
||||||
#include "fssh_errno.h"
|
#include "fssh_errno.h"
|
||||||
#include "fssh_fcntl.h"
|
#include "fssh_fcntl.h"
|
||||||
|
|||||||
@@ -50,16 +50,15 @@ struct fssh_tm {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/* special timezone support */
|
/* special timezone support */
|
||||||
extern char *fssh_tzname[2];
|
extern char *fssh_tzname[2];
|
||||||
extern int fssh_daylight;
|
extern int fssh_daylight;
|
||||||
extern long fssh_timezone;
|
extern long fssh_timezone;
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern fssh_clock_t fssh_clock(void);
|
extern fssh_clock_t fssh_clock(void);
|
||||||
extern double fssh_difftime(fssh_time_t time1, fssh_time_t time2);
|
extern double fssh_difftime(fssh_time_t time1, fssh_time_t time2);
|
||||||
extern fssh_time_t fssh_mktime(struct fssh_tm *tm);
|
extern fssh_time_t fssh_mktime(struct fssh_tm *tm);
|
||||||
|
|||||||
@@ -10,8 +10,9 @@
|
|||||||
|
|
||||||
// This needs to be included before the fs_shell wrapper
|
// This needs to be included before the fs_shell wrapper
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
#include <new>
|
|
||||||
#include <util/AVLTree.h>
|
#include <util/AVLTree.h>
|
||||||
|
#include <uuid.h>
|
||||||
|
|
||||||
#include "fssh_api_wrapper.h"
|
#include "fssh_api_wrapper.h"
|
||||||
#include "fssh_auto_deleter.h"
|
#include "fssh_auto_deleter.h"
|
||||||
|
|||||||
@@ -13,6 +13,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#ifdef __HAIKU__
|
||||||
|
|
||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
|
|
||||||
|
|
||||||
@@ -110,6 +112,30 @@ dbg_printf_unlock()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
status_t
|
||||||
|
init_debugging()
|
||||||
|
{
|
||||||
|
status_t error = B_OK;
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
status_t
|
||||||
|
exit_debugging()
|
||||||
|
{
|
||||||
|
status_t error = B_OK;
|
||||||
|
return error;
|
||||||
|
}
|
||||||
|
static inline bool
|
||||||
|
dbg_printf_lock()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
static inline void
|
||||||
|
dbg_printf_unlock(){}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
dbg_printf_begin()
|
dbg_printf_begin()
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ DEFINES += HAIKU_BUILD_COMPATIBILITY_H ;
|
|||||||
local defines =
|
local defines =
|
||||||
FS_SHELL
|
FS_SHELL
|
||||||
TRACE_BTRFS # ENABLE DEBUGGING
|
TRACE_BTRFS # ENABLE DEBUGGING
|
||||||
|
USER=1
|
||||||
;
|
;
|
||||||
|
|
||||||
defines = [ FDefines $(defines) ] ;
|
defines = [ FDefines $(defines) ] ;
|
||||||
@@ -25,14 +26,18 @@ if ! $(HOST_PLATFORM_HAIKU_COMPATIBLE) {
|
|||||||
fsShellCommandLibs = $(HOST_NETWORK_LIBS) ;
|
fsShellCommandLibs = $(HOST_NETWORK_LIBS) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
UseHeaders [ FDirName $(HAIKU_TOP) headers build ] : true ;
|
UseHeaders [ FDirName $(HAIKU_TOP) headers build ] : true ;
|
||||||
UseHeaders [ FDirName $(HAIKU_TOP) headers build os ] : true ;
|
UseHeaders [ FDirName $(HAIKU_TOP) headers build os ] : true ;
|
||||||
UseHeaders [ FDirName $(HAIKU_TOP) headers build os support ] : true ;
|
UseHeaders [ FDirName $(HAIKU_TOP) headers build os support ] : true ;
|
||||||
|
|
||||||
UsePrivateKernelHeaders ;
|
UsePrivateKernelHeaders ;
|
||||||
UsePrivateHeaders shared storage fs_shell ;
|
UsePrivateHeaders shared storage fs_shell ;
|
||||||
|
UsePrivateHeaders file_systems ;
|
||||||
UseHeaders [ FDirName $(HAIKU_TOP) headers private ] : true ;
|
UseHeaders [ FDirName $(HAIKU_TOP) headers private ] : true ;
|
||||||
UseHeaders [ FDirName $(HAIKU_TOP) src tools fs_shell ] ;
|
UseHeaders [ FDirName $(HAIKU_TOP) src tools fs_shell ] ;
|
||||||
|
UseHeaders [ FDirName $(HAIKU_TOP) src libs uuid ] : true ;
|
||||||
|
|
||||||
|
|
||||||
local btrfsSources =
|
local btrfsSources =
|
||||||
Attribute.cpp
|
Attribute.cpp
|
||||||
@@ -40,11 +45,13 @@ local btrfsSources =
|
|||||||
BTree.cpp
|
BTree.cpp
|
||||||
Chunk.cpp
|
Chunk.cpp
|
||||||
CRCTable.cpp
|
CRCTable.cpp
|
||||||
|
DebugSupport.cpp
|
||||||
DirectoryIterator.cpp
|
DirectoryIterator.cpp
|
||||||
ExtentAllocator.cpp
|
ExtentAllocator.cpp
|
||||||
Inode.cpp
|
Inode.cpp
|
||||||
Journal.cpp
|
Journal.cpp
|
||||||
Volume.cpp
|
Volume.cpp
|
||||||
|
btrfs_disk_system.cpp
|
||||||
kernel_interface.cpp
|
kernel_interface.cpp
|
||||||
;
|
;
|
||||||
|
|
||||||
@@ -60,8 +67,10 @@ BuildPlatformMain <build>btrfs_shell
|
|||||||
:
|
:
|
||||||
<build>btrfs.o
|
<build>btrfs.o
|
||||||
<build>fs_shell.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
|
<build>fs_shell.a $(HOST_LIBSUPC++) $(HOST_LIBSTDC++)
|
||||||
$(HOST_LIBROOT) $(fsShellCommandLibs)
|
$(HOST_LIBROOT) $(fsShellCommandLibs) uuid
|
||||||
;
|
;
|
||||||
|
|
||||||
SEARCH on [ FGristFiles $(utilitySources) ]
|
SEARCH on [ FGristFiles $(utilitySources) ]
|
||||||
+= [ FDirName $(HAIKU_TOP) src system kernel util ] ;
|
+= [ FDirName $(HAIKU_TOP) src system kernel util ] ;
|
||||||
|
SEARCH on [ FGristFiles DebugSupport.cpp ]
|
||||||
|
+= [ FDirName $(HAIKU_TOP) src add-ons kernel file_systems shared ] ;
|
||||||
|
|||||||
Reference in New Issue
Block a user