+src/libcaptive/fs/util.c
authorshort <>
Fri, 17 Jan 2003 01:17:03 +0000 (01:17 +0000)
committershort <>
Fri, 17 Jan 2003 01:17:03 +0000 (01:17 +0000)
 - +FsRtlBalanceReads()

src/libcaptive/fs/util.c [new file with mode: 0644]

diff --git a/src/libcaptive/fs/util.c b/src/libcaptive/fs/util.c
new file mode 100644 (file)
index 0000000..3fc58dd
--- /dev/null
@@ -0,0 +1,43 @@
+/* $Id$
+ * reactos filesystem oplock functions emulation of libcaptive
+ * Copyright (C) 2002 Jan Kratochvil <project-captive@jankratochvil.net>
+ * 
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; exactly version 2 of June 1991 is required
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+
+#include "config.h"
+
+#include "reactos/ddk/fsfuncs.h"       /* self */
+#include "reactos/ddk/status.h"        /* for STATUS_SUCCESS */
+#include <glib/gmessages.h>
+
+
+/**
+ * FsRtlBalanceReads:
+ * @TargetDevice: Existing device to start mirring operations on.
+ *
+ * Called by filesystem to indicate to mirroting subsystem it is now safe
+ * to start mirroring operations on its device.
+ *
+ * libcaptive does not support mirroring; this function is a NOP.
+ *
+ * Returns: %STATUS_SUCCESS.
+ */
+NTSTATUS FsRtlBalanceReads(IN PDEVICE_OBJECT TargetDevice)
+{
+       g_return_val_if_fail(TargetDevice!=NULL,STATUS_INVALID_PARAMETER);
+
+       return STATUS_SUCCESS;
+}