Whamcloud - gitweb
Makefile.in (check): Use LD_LIBRARY_PATH to run test programs.
[tools/e2fsprogs.git] / lib / ext2fs / nt_io.c
index 4b3ce47..c39127c 100644 (file)
@@ -1,11 +1,10 @@
 /*
-/*
  * nt_io.c --- This is the Nt I/O interface to the I/O manager.
  *
  * Implements a one-block write-through cache.
  *
  * Copyright (C) 1993, 1994, 1995 Theodore Ts'o.
- * Copyright (C) 1998 Andrey Shedel
+ * Copyright (C) 1998 Andrey Shedel (andreys@ns.cr.cyco.com)
  *
  * %Begin-Header%
  * This file may be redistributed under the terms of the GNU Public
@@ -179,7 +178,7 @@ NtDelayExecution(
 #include <malloc.h>
 
 #include <linux/types.h>
-#include <linux/ext2_fs.h>
+#include "ext2_fs.h"
 #include <errno.h>
 
 #include "et/com_err.h"
@@ -442,7 +441,7 @@ _OpenNtName(
                                                &ObjectAttributes,
                                                &IoStatusBlock,
                                                FILE_SHARE_WRITE | FILE_SHARE_READ,
-                                               FILE_SYNCHRONOUS_IO_ALERT);
+                                               FILE_SYNCHRONOUS_IO_NONALERT);
 
        if(!NT_SUCCESS(Status))
        {
@@ -460,7 +459,7 @@ _OpenNtName(
                                                        &ObjectAttributes,
                                                        &IoStatusBlock,
                                                        FILE_SHARE_WRITE | FILE_SHARE_READ,
-                                                       FILE_SYNCHRONOUS_IO_ALERT);
+                                                       FILE_SYNCHRONOUS_IO_NONALERT);
 
                //
                // Try to satisfy mode
@@ -478,7 +477,7 @@ _OpenNtName(
                                                        &ObjectAttributes,
                                                        &IoStatusBlock,
                                                        FILE_SHARE_WRITE | FILE_SHARE_READ,
-                                                       FILE_SYNCHRONOUS_IO_ALERT);
+                                                       FILE_SYNCHRONOUS_IO_NONALERT);
                }
        }
 
@@ -1169,7 +1168,7 @@ nt_open(const char *name, int flags, io_channel *channel)
                // Lock/dismount
                //
 
-               if(!NT_SUCCESS(_LockDrive(NtData->Handle)) || !NT_SUCCESS(_DismountDrive(NtData->Handle)))
+               if(!NT_SUCCESS(_LockDrive(NtData->Handle)) /*|| !NT_SUCCESS(_DismountDrive(NtData->Handle))*/)
                {
                        NtData->OpenedReadonly = TRUE;
                }