So far, keep our NTFS read-only. Booh, that's sad! *sob*. I know.

svn path=/trunk/; revision=64732
This commit is contained in:
Pierre Schweitzer 2014-10-13 17:57:25 +00:00
parent 5f83d34467
commit 2598a46b01

View file

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