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.
bitmap-optimize
Theodore Ts'o 1999-10-26 02:34:47 +00:00
parent e6597048d9
commit fe70fd33d1
2 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,11 @@
1999-10-25 <tytso@valinux.com>
* 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.
* initialize.c (CREATOR_OS): Use __GNU__ instead of __gnu__ to
detect the Hurd OS.

View File

@ -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;
}