mirror of https://github.com/vitalif/e2fsprogs
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
parent
e6597048d9
commit
fe70fd33d1
|
@ -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.
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue