[FFSLIB]
authorPierre Schweitzer <pierre@reactos.org>
Fri, 27 May 2016 12:04:45 +0000 (12:04 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Fri, 27 May 2016 12:04:45 +0000 (12:04 +0000)
Stub the FFS lib

CORE-11040

svn path=/trunk/; revision=71423

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

index 3ac3645..a2b261f 100644 (file)
@@ -1,6 +1,7 @@
 
 add_subdirectory(btrfslib)
 add_subdirectory(ext2lib)
+add_subdirectory(ffslib)
 add_subdirectory(ntfslib)
 add_subdirectory(reiserfslib)
 add_subdirectory(vfatlib)
diff --git a/reactos/sdk/lib/fslib/ffslib/CMakeLists.txt b/reactos/sdk/lib/fslib/ffslib/CMakeLists.txt
new file mode 100644 (file)
index 0000000..5376e6f
--- /dev/null
@@ -0,0 +1,3 @@
+
+add_library(ffslib ffslib.c)
+add_dependencies(ffslib psdk)
diff --git a/reactos/sdk/lib/fslib/ffslib/ffslib.c b/reactos/sdk/lib/fslib/ffslib/ffslib.c
new file mode 100644 (file)
index 0000000..ae7c29e
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * COPYRIGHT:   See COPYING in the top level directory
+ * PROJECT:     ReactOS FFS library
+ * FILE:        lib/fslib/ffslib/ffslib.c
+ * PURPOSE:     FFS lib
+ * PROGRAMMERS: Pierre Schweitzer
+ */
+#include "ffslib.h"
+
+#define NDEBUG
+#include <debug.h>
+
+NTSTATUS NTAPI
+FfsFormat(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
+FfsChkdsk(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/sdk/lib/fslib/ffslib/ffslib.h b/reactos/sdk/lib/fslib/ffslib/ffslib.h
new file mode 100644 (file)
index 0000000..1ee1a87
--- /dev/null
@@ -0,0 +1,8 @@
+/*
+ * COPYRIGHT:   See COPYING in the top level directory
+ * PROJECT:     ReactOS FFS library
+ * FILE:        lib/fslib/ffslib/ffslib.h
+ */
+#define NTOS_MODE_USER
+#include <ndk/umtypes.h>
+#include <fmifs/fmifs.h>