summaryrefslogtreecommitdiff
path: root/lib/ext2fs/nt_io.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>1999-10-26 02:34:47 +0000
committerTheodore Ts'o <tytso@mit.edu>1999-10-26 02:34:47 +0000
commitfe70fd33d1781449f6e29a9f6ae6c9f5dcb5ea58 (patch)
treedc7523b81fbb315ff6c6b8d2559323fc1a25b792 /lib/ext2fs/nt_io.c
parente6597048d9d1637c9f997363a7f45c74b98fd0e2 (diff)
downloade2fsprogs-fe70fd33d1781449f6e29a9f6ae6c9f5dcb5ea58.tar.gz
ChangeLog, nt_io.c:
nt_io.c (_OpenNtName): Open the device using FILE_SYNCHRONOUS_IO_NONALERT instead of FILE_SYNCHRONOUS_IO_ALERT (nt_open): At the end of the device open routine, unlock the drive but do not dismount it.
Diffstat (limited to 'lib/ext2fs/nt_io.c')
-rw-r--r--lib/ext2fs/nt_io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ext2fs/nt_io.c b/lib/ext2fs/nt_io.c
index 4b3ce474..4ef95411 100644
--- a/lib/ext2fs/nt_io.c
+++ b/lib/ext2fs/nt_io.c
@@ -442,7 +442,7 @@ _OpenNtName(
&ObjectAttributes,
&IoStatusBlock,
FILE_SHARE_WRITE | FILE_SHARE_READ,
- FILE_SYNCHRONOUS_IO_ALERT);
+ FILE_SYNCHRONOUS_IO_NONALERT);
if(!NT_SUCCESS(Status))
{
@@ -460,7 +460,7 @@ _OpenNtName(
&ObjectAttributes,
&IoStatusBlock,
FILE_SHARE_WRITE | FILE_SHARE_READ,
- FILE_SYNCHRONOUS_IO_ALERT);
+ FILE_SYNCHRONOUS_IO_NONALERT);
//
// Try to satisfy mode
@@ -478,7 +478,7 @@ _OpenNtName(
&ObjectAttributes,
&IoStatusBlock,
FILE_SHARE_WRITE | FILE_SHARE_READ,
- FILE_SYNCHRONOUS_IO_ALERT);
+ FILE_SYNCHRONOUS_IO_NONALERT);
}
}
@@ -1169,7 +1169,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;
}