[NTFS]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 14 Dec 2014 21:18:47 +0000 (21:18 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 14 Dec 2014 21:18:47 +0000 (21:18 +0000)
commit5a3af281d7147a5e7bf47423fb11fb95547360b6
treed9c0b755cb8abe8443e91a539e1aeb7dd6614e59
parent6cea3c40186157ace1f8215eda721a3336ee02da
[NTFS]
- Implement NtfsGrabFCBFromTableById() and NtfsGetFCBForFileById(). These two are responsible for opening and retrieving a file open by ID.
- Modified NtfsMakeFCBFromDirEntry() so that it supports openings by ID which come with less information than normal openings.
- Modified NtfsGrabFCBFromTable() so that it doesn't return a FCB which would have been opened by ID.
- Modified NtfsOpenFile() so that it allows opening a file by ID using the two FCB helpers functions defined upper.
- Modified NtfsCreateFile() so that it can validate input in case of opening by ID.

To make it short, all this implements file opening by ID in NTFS driver. I made the choice to separate FCB which are coming from "normal" opening and these from ID opening.
The reason is that a file opening with ID has less information than a normal opening, and may fail on these information retreival. This is due to the fact that if opening by ID can virtual open all the files, because it ignores authorizations, traverses checks, in the end for retrieving the information, such checks can be done and fail.

I also left all this disabled so far, because it appears to regress NFI. I will investigate this.

CORE-8725

svn path=/trunk/; revision=65652
reactos/drivers/filesystems/ntfs/create.c
reactos/drivers/filesystems/ntfs/fcb.c
reactos/drivers/filesystems/ntfs/ntfs.h