mirror of
https://github.com/reactos/reactos.git
synced 2024-11-02 12:53:33 +00:00
[NTFS]
So far, keep our NTFS read-only. Booh, that's sad! *sob*. I know. svn path=/trunk/; revision=64732
This commit is contained in:
parent
5f83d34467
commit
2598a46b01
|
@ -243,6 +243,28 @@ NtfsCreateFile(PDEVICE_OBJECT DeviceObject,
|
||||||
NtfsCloseFile(DeviceExt, FileObject);
|
NtfsCloseFile(DeviceExt, FileObject);
|
||||||
return STATUS_NOT_A_DIRECTORY;
|
return STATUS_NOT_A_DIRECTORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* HUGLY HACK: remain RO so far... */
|
||||||
|
if (RequestedDisposition == FILE_OVERWRITE ||
|
||||||
|
RequestedDisposition == FILE_OVERWRITE_IF ||
|
||||||
|
RequestedDisposition == FILE_SUPERSEDE)
|
||||||
|
{
|
||||||
|
DPRINT1("Denying write request on NTFS volume\n");
|
||||||
|
NtfsCloseFile(DeviceExt, FileObject);
|
||||||
|
return STATUS_ACCESS_DENIED;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* HUGLY HACK: remain RO so far... */
|
||||||
|
if (RequestedDisposition == FILE_CREATE ||
|
||||||
|
RequestedDisposition == FILE_OPEN_IF ||
|
||||||
|
RequestedDisposition == FILE_OVERWRITE_IF ||
|
||||||
|
RequestedDisposition == FILE_SUPERSEDE)
|
||||||
|
{
|
||||||
|
DPRINT1("Denying write request on NTFS volume\n");
|
||||||
|
return STATUS_ACCESS_DENIED;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue