[BTRFSLIB]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 5 Mar 2016 10:20:32 +0000 (10:20 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 5 Mar 2016 10:20:32 +0000 (10:20 +0000)
Stub the Btrfs lib

CORE-10892

svn path=/trunk/; revision=70932

reactos/lib/fslib/CMakeLists.txt
reactos/lib/fslib/btrfslib/CMakeLists.txt [new file with mode: 0644]
reactos/lib/fslib/btrfslib/btrfslib.c [new file with mode: 0644]
reactos/lib/fslib/btrfslib/btrfslib.h [new file with mode: 0644]

index 0d523f6..ca1389b 100644 (file)
@@ -1,4 +1,5 @@
 
 
+add_subdirectory(btrfslib)
 add_subdirectory(ext2lib)
 add_subdirectory(ntfslib)
 add_subdirectory(vfatlib)
 add_subdirectory(ext2lib)
 add_subdirectory(ntfslib)
 add_subdirectory(vfatlib)
diff --git a/reactos/lib/fslib/btrfslib/CMakeLists.txt b/reactos/lib/fslib/btrfslib/CMakeLists.txt
new file mode 100644 (file)
index 0000000..a05c8df
--- /dev/null
@@ -0,0 +1,3 @@
+
+add_library(btrfslib btrfslib.c)
+add_dependencies(btrfslib psdk)
diff --git a/reactos/lib/fslib/btrfslib/btrfslib.c b/reactos/lib/fslib/btrfslib/btrfslib.c
new file mode 100644 (file)
index 0000000..e64ea95
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * COPYRIGHT:   See COPYING in the top level directory
+ * PROJECT:     ReactOS NTFS FS library
+ * FILE:        lib/fslib/btrfslib/btrfslib.c
+ * PURPOSE:     BTRFS lib
+ * PROGRAMMERS: Pierre Schweitzer
+ */
+#include "btrfslib.h"
+
+#define NDEBUG
+#include <debug.h>
+
+NTSTATUS NTAPI
+BtrfsFormat(IN PUNICODE_STRING DriveRoot,
+            IN FMIFS_MEDIA_FLAG MediaFlag,
+            IN PUNICODE_STRING Label,
+            IN BOOLEAN QuickFormat,
+            IN ULONG ClusterSize,
+            IN PFMIFSCALLBACK Callback)
+{
+    UNIMPLEMENTED;
+    return STATUS_SUCCESS;
+}
+
+
+NTSTATUS WINAPI
+BtrfsChkdsk(IN PUNICODE_STRING DriveRoot,
+            IN BOOLEAN FixErrors,
+            IN BOOLEAN Verbose,
+            IN BOOLEAN CheckOnlyIfDirty,
+            IN BOOLEAN ScanDrive,
+            IN PFMIFSCALLBACK Callback)
+{
+    UNIMPLEMENTED;
+    return STATUS_SUCCESS;
+}
diff --git a/reactos/lib/fslib/btrfslib/btrfslib.h b/reactos/lib/fslib/btrfslib/btrfslib.h
new file mode 100644 (file)
index 0000000..6b4d55d
--- /dev/null
@@ -0,0 +1,8 @@
+/*
+ * COPYRIGHT:   See COPYING in the top level directory
+ * PROJECT:     ReactOS BTRFS FS library
+ * FILE:        lib/fslib/btrfslib/btrfslib.h
+ */
+#define NTOS_MODE_USER
+#include <ndk/umtypes.h>
+#include <fmifs/fmifs.h>