ReactOS 0.4.16-dev-340-g0540c21
fastio.c
Go to the documentation of this file.
1/* Copyright (c) Mark Harmstone 2016-17
2 *
3 * This file is part of WinBtrfs.
4 *
5 * WinBtrfs is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public Licence as published by
7 * the Free Software Foundation, either version 3 of the Licence, or
8 * (at your option) any later version.
9 *
10 * WinBtrfs is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public Licence for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public Licence
16 * along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
17
18#include "btrfs_drv.h"
19
21
22_Function_class_(FAST_IO_QUERY_BASIC_INFO)
23static BOOLEAN __stdcall fast_query_basic_info(PFILE_OBJECT FileObject, BOOLEAN wait, PFILE_BASIC_INFORMATION fbi,
25 fcb* fcb;
26 ccb* ccb;
27
29
31
32 TRACE("(%p, %u, %p, %p, %p)\n", FileObject, wait, fbi, IoStatus, DeviceObject);
33
34 if (!FileObject) {
36 return false;
37 }
38
39 fcb = FileObject->FsContext;
40
41 if (!fcb) {
43 return false;
44 }
45
46 ccb = FileObject->FsContext2;
47
48 if (!ccb) {
50 return false;
51 }
52
55 return false;
56 }
57
58 if (fcb->ads) {
59 if (!ccb->fileref || !ccb->fileref->parent || !ccb->fileref->parent->fcb) {
61 return false;
62 }
63
64 fcb = ccb->fileref->parent->fcb;
65 }
66
67 if (!ExAcquireResourceSharedLite(fcb->Header.Resource, wait)) {
69 return false;
70 }
71
72 if (fcb == fcb->Vcb->dummy_fcb) {
74
76 fbi->CreationTime = fbi->LastAccessTime = fbi->LastWriteTime = fbi->ChangeTime = time;
77 } else {
82 }
83
85
86 IoStatus->Status = STATUS_SUCCESS;
87 IoStatus->Information = sizeof(FILE_BASIC_INFORMATION);
88
90
92
93 return true;
94}
95
96_Function_class_(FAST_IO_QUERY_STANDARD_INFO)
97static BOOLEAN __stdcall fast_query_standard_info(PFILE_OBJECT FileObject, BOOLEAN wait, PFILE_STANDARD_INFORMATION fsi,
99 fcb* fcb;
100 ccb* ccb;
101 bool ads;
102 ULONG adssize;
103
105
107
108 TRACE("(%p, %u, %p, %p, %p)\n", FileObject, wait, fsi, IoStatus, DeviceObject);
109
110 if (!FileObject) {
112 return false;
113 }
114
115 fcb = FileObject->FsContext;
116 ccb = FileObject->FsContext2;
117
118 if (!fcb) {
120 return false;
121 }
122
123 if (!ExAcquireResourceSharedLite(fcb->Header.Resource, wait)) {
125 return false;
126 }
127
128 ads = fcb->ads;
129
130 if (ads) {
131 struct _fcb* fcb2;
132
133 if (!ccb || !ccb->fileref || !ccb->fileref->parent || !ccb->fileref->parent->fcb) {
136 return false;
137 }
138
139 adssize = fcb->adsdata.Length;
140
141 fcb2 = ccb->fileref->parent->fcb;
142
144
145 fcb = fcb2;
146
147 if (!ExAcquireResourceSharedLite(fcb->Header.Resource, wait)) {
149 return false;
150 }
151
152 fsi->AllocationSize.QuadPart = fsi->EndOfFile.QuadPart = adssize;
154 fsi->Directory = false;
155 } else {
160 }
161
163
164 IoStatus->Status = STATUS_SUCCESS;
165 IoStatus->Information = sizeof(FILE_STANDARD_INFORMATION);
166
168
170
171 return true;
172}
173
174_Function_class_(FAST_IO_CHECK_IF_POSSIBLE)
178 fcb* fcb = FileObject->FsContext;
179 LARGE_INTEGER len2;
180
181 UNUSED(Wait);
184
185 len2.QuadPart = Length;
186
189 return true;
190 } else {
192 return true;
193 }
194
195 return false;
196}
197
198_Function_class_(FAST_IO_QUERY_NETWORK_OPEN_INFO)
199static BOOLEAN __stdcall fast_io_query_network_open_info(PFILE_OBJECT FileObject, BOOLEAN Wait, FILE_NETWORK_OPEN_INFORMATION* fnoi,
201 fcb* fcb;
202 ccb* ccb;
204
205 UNUSED(Wait);
206 UNUSED(IoStatus); // FIXME - really? What about IoStatus->Information?
208
210
211 TRACE("(%p, %u, %p, %p, %p)\n", FileObject, Wait, fnoi, IoStatus, DeviceObject);
212
214
215 fcb = FileObject->FsContext;
216
217 if (!fcb || fcb == fcb->Vcb->volume_fcb) {
219 return false;
220 }
221
222 ccb = FileObject->FsContext2;
223
224 if (!ccb) {
226 return false;
227 }
228
230
231 if (fcb == fcb->Vcb->dummy_fcb) {
233
235 fnoi->CreationTime = fnoi->LastAccessTime = fnoi->LastWriteTime = fnoi->ChangeTime = time;
236 } else {
237 INODE_ITEM* ii;
238
239 if (fcb->ads) {
240 if (!fileref || !fileref->parent) {
241 ERR("no fileref for stream\n");
243 return false;
244 }
245
246 ii = &fileref->parent->fcb->inode_item;
247 } else
248 ii = &fcb->inode_item;
249
254 }
255
256 if (fcb->ads) {
258 fnoi->FileAttributes = fileref->parent->fcb->atts == 0 ? FILE_ATTRIBUTE_NORMAL : fileref->parent->fcb->atts;
259 } else {
263 }
264
266
267 return true;
268}
269
270_Function_class_(FAST_IO_ACQUIRE_FOR_MOD_WRITE)
271static NTSTATUS __stdcall fast_io_acquire_for_mod_write(PFILE_OBJECT FileObject, PLARGE_INTEGER EndingOffset,
273 fcb* fcb;
274
276
279
280 fcb = FileObject->FsContext;
281
282 if (!fcb)
284
285 // Make sure we don't get interrupted by the flush thread, which can cause a deadlock
286
287 if (!ExAcquireResourceSharedLite(&fcb->Vcb->tree_lock, false))
288 return STATUS_CANT_WAIT;
289
290 if (!ExAcquireResourceExclusiveLite(fcb->Header.Resource, false)) {
291 ExReleaseResourceLite(&fcb->Vcb->tree_lock);
292 TRACE("returning STATUS_CANT_WAIT\n");
293 return STATUS_CANT_WAIT;
294 }
295
296 // Ideally this would be PagingIoResource, but that doesn't play well with copy-on-write,
297 // as we can't guarantee that we won't need to do any reallocations.
298
299 *ResourceToRelease = fcb->Header.Resource;
300
301 TRACE("returning STATUS_SUCCESS\n");
302
303 return STATUS_SUCCESS;
304}
305
306_Function_class_(FAST_IO_RELEASE_FOR_MOD_WRITE)
307static NTSTATUS __stdcall fast_io_release_for_mod_write(PFILE_OBJECT FileObject, struct _ERESOURCE *ResourceToRelease,
309 fcb* fcb;
310
311 TRACE("(%p, %p, %p)\n", FileObject, ResourceToRelease, DeviceObject);
312
314
315 fcb = FileObject->FsContext;
316
318
319 ExReleaseResourceLite(&fcb->Vcb->tree_lock);
320
321 return STATUS_SUCCESS;
322}
323
324_Function_class_(FAST_IO_ACQUIRE_FOR_CCFLUSH)
325static NTSTATUS __stdcall fast_io_acquire_for_ccflush(PFILE_OBJECT FileObject, PDEVICE_OBJECT DeviceObject) {
328
330
331 return STATUS_SUCCESS;
332}
333
334_Function_class_(FAST_IO_RELEASE_FOR_CCFLUSH)
335static NTSTATUS __stdcall fast_io_release_for_ccflush(PFILE_OBJECT FileObject, PDEVICE_OBJECT DeviceObject) {
338
341
342 return STATUS_SUCCESS;
343}
344
345_Function_class_(FAST_IO_WRITE)
347 fcb* fcb = FileObject->FsContext;
348 bool ret;
349
351
352 if (!ExAcquireResourceSharedLite(&fcb->Vcb->tree_lock, Wait)) {
354 return false;
355 }
356
358
359 if (ret)
360 fcb->inode_item.st_size = fcb->Header.FileSize.QuadPart;
361
362 ExReleaseResourceLite(&fcb->Vcb->tree_lock);
363
365
366 return ret;
367}
368
369_Function_class_(FAST_IO_LOCK)
373 BOOLEAN ret;
374 fcb* fcb = FileObject->FsContext;
375
377
378 TRACE("(%p, %I64x, %I64x, %p, %lx, %u, %u, %p, %p)\n", FileObject, FileOffset ? FileOffset->QuadPart : 0, Length ? Length->QuadPart : 0,
380
381 if (fcb->type != BTRFS_TYPE_FILE) {
382 WARN("can only lock files\n");
384 IoStatus->Information = 0;
385 return true;
386 }
387
389 ExAcquireResourceSharedLite(fcb->Header.Resource, true);
390
392 ExclusiveLock, IoStatus, NULL, false);
393
394 if (ret)
395 fcb->Header.IsFastIoPossible = fast_io_possible(fcb);
396
399
400 return ret;
401}
402
403_Function_class_(FAST_IO_UNLOCK_SINGLE)
406 fcb* fcb = FileObject->FsContext;
407
409
410 TRACE("(%p, %I64x, %I64x, %p, %lx, %p, %p)\n", FileObject, FileOffset ? FileOffset->QuadPart : 0, Length ? Length->QuadPart : 0,
412
413 IoStatus->Information = 0;
414
415 if (fcb->type != BTRFS_TYPE_FILE) {
416 WARN("can only lock files\n");
418 return true;
419 }
420
422
424
425 fcb->Header.IsFastIoPossible = fast_io_possible(fcb);
426
428
429 return true;
430}
431
432_Function_class_(FAST_IO_UNLOCK_ALL)
434 fcb* fcb = FileObject->FsContext;
435
437
438 TRACE("(%p, %p, %p, %p)\n", FileObject, ProcessId, IoStatus, DeviceObject);
439
440 IoStatus->Information = 0;
441
442 if (fcb->type != BTRFS_TYPE_FILE) {
443 WARN("can only lock files\n");
445 return true;
446 }
447
449
450 ExAcquireResourceSharedLite(fcb->Header.Resource, true);
451
453
454 fcb->Header.IsFastIoPossible = fast_io_possible(fcb);
455
457
459
460 return true;
461}
462
463_Function_class_(FAST_IO_UNLOCK_ALL_BY_KEY)
464static BOOLEAN __stdcall fast_io_unlock_all_by_key(PFILE_OBJECT FileObject, PVOID ProcessId, ULONG Key,
466 fcb* fcb = FileObject->FsContext;
467
469
470 TRACE("(%p, %p, %lx, %p, %p)\n", FileObject, ProcessId, Key, IoStatus, DeviceObject);
471
472 IoStatus->Information = 0;
473
474 if (fcb->type != BTRFS_TYPE_FILE) {
475 WARN("can only lock files\n");
477 return true;
478 }
479
481
482 ExAcquireResourceSharedLite(fcb->Header.Resource, true);
483
485
486 fcb->Header.IsFastIoPossible = fast_io_possible(fcb);
487
489
491
492 return true;
493}
494
495#ifdef __REACTOS__
496_Function_class_(FAST_IO_ACQUIRE_FILE)
497#endif /* __REACTOS__ */
499 fcb* fcb;
500
501 TRACE("(%p)\n", FileObject);
502
503 if (!FileObject)
504 return;
505
506 fcb = FileObject->FsContext;
507
508 if (!fcb)
509 return;
510
511 ExAcquireResourceSharedLite(&fcb->Vcb->tree_lock, true);
513}
514
515#ifdef __REACTOS__
516_Function_class_(FAST_IO_RELEASE_FILE)
517#endif /* __REACTOS__ */
519 fcb* fcb;
520
521 TRACE("(%p)\n", FileObject);
522
523 if (!FileObject)
524 return;
525
526 fcb = FileObject->FsContext;
527
528 if (!fcb)
529 return;
530
532 ExReleaseResourceLite(&fcb->Vcb->tree_lock);
533}
534
537
539
540 FastIoDispatch.FastIoCheckIfPossible = fast_io_check_if_possible;
542 FastIoDispatch.FastIoWrite = fast_io_write;
543 FastIoDispatch.FastIoQueryBasicInfo = fast_query_basic_info;
544 FastIoDispatch.FastIoQueryStandardInfo = fast_query_standard_info;
545 FastIoDispatch.FastIoLock = fast_io_lock;
546 FastIoDispatch.FastIoUnlockSingle = fast_io_unlock_single;
547 FastIoDispatch.FastIoUnlockAll = fast_io_unlock_all;
548 FastIoDispatch.FastIoUnlockAllByKey = fast_io_unlock_all_by_key;
551 FastIoDispatch.FastIoQueryNetworkOpenInfo = fast_io_query_network_open_info;
552 FastIoDispatch.AcquireForModWrite = fast_io_acquire_for_mod_write;
557 FastIoDispatch.ReleaseForModWrite = fast_io_release_for_mod_write;
558 FastIoDispatch.AcquireForCcFlush = fast_io_acquire_for_ccflush;
559 FastIoDispatch.ReleaseForCcFlush = fast_io_release_for_ccflush;
560
561 *fiod = &FastIoDispatch;
562}
unsigned char BOOLEAN
adns_state ads
Definition: adh-query.c:35
LONG NTSTATUS
Definition: precomp.h:26
#define S_ISDIR(mode)
Definition: various.h:18
#define WARN(fmt,...)
Definition: precomp.h:61
#define ERR(fmt,...)
Definition: precomp.h:57
static __inline FAST_IO_POSSIBLE fast_io_possible(fcb *fcb)
Definition: btrfs_drv.h:1684
struct _fcb fcb
Definition: btrfs_drv.h:1364
#define UNUSED(x)
Definition: btrfs_drv.h:82
struct _ccb ccb
static __inline uint64_t fcb_alloc_size(fcb *fcb)
Definition: btrfs_drv.h:1824
static __inline bool is_subvol_readonly(root *r, PIRP Irp)
Definition: btrfs_drv.h:1033
_In_ PFCB _In_ LONGLONG FileOffset
Definition: cdprocs.h:160
Definition: bufpool.h:45
#define NULL
Definition: types.h:112
#define FILE_ATTRIBUTE_NORMAL
Definition: compat.h:137
static void __stdcall fast_io_release_for_create_section(_In_ PFILE_OBJECT FileObject)
Definition: fastio.c:518
FAST_IO_DISPATCH FastIoDispatch
Definition: fastio.c:20
void init_fast_io_dispatch(FAST_IO_DISPATCH **fiod)
Definition: fastio.c:535
static void __stdcall fast_io_acquire_for_create_section(_In_ PFILE_OBJECT FileObject)
Definition: fastio.c:498
#define KeQuerySystemTime(t)
Definition: env_spec_w32.h:570
#define ExAcquireResourceExclusiveLite(res, wait)
Definition: env_spec_w32.h:615
#define ExAcquireResourceSharedLite(res, wait)
Definition: env_spec_w32.h:621
IN PLARGE_INTEGER IN ULONG IN BOOLEAN IN ULONG LockKey
Definition: fatprocs.h:2666
IN PLARGE_INTEGER IN PLARGE_INTEGER PEPROCESS ULONG BOOLEAN BOOLEAN ExclusiveLock
Definition: fatprocs.h:2715
IN PLARGE_INTEGER IN ULONG IN BOOLEAN IN ULONG IN BOOLEAN CheckForReadOperation
Definition: fatprocs.h:2667
IN PLARGE_INTEGER IN PLARGE_INTEGER PEPROCESS ULONG BOOLEAN FailImmediately
Definition: fatprocs.h:2714
IN PLARGE_INTEGER IN PLARGE_INTEGER PEPROCESS ProcessId
Definition: fatprocs.h:2712
BOOLEAN NTAPI FsRtlFastCheckLockForWrite(IN PFILE_LOCK FileLock, IN PLARGE_INTEGER FileOffset, IN PLARGE_INTEGER Length, IN ULONG Key, IN PFILE_OBJECT FileObject, IN PVOID Process)
Definition: filelock.c:782
NTSTATUS NTAPI FsRtlFastUnlockSingle(IN PFILE_LOCK FileLock, IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN PLARGE_INTEGER Length, IN PEPROCESS Process, IN ULONG Key, IN PVOID Context OPTIONAL, IN BOOLEAN AlreadySynchronized)
Definition: filelock.c:825
NTSTATUS NTAPI FsRtlFastUnlockAll(IN PFILE_LOCK FileLock, IN PFILE_OBJECT FileObject, IN PEPROCESS Process, IN PVOID Context OPTIONAL)
Definition: filelock.c:1025
BOOLEAN NTAPI FsRtlFastCheckLockForRead(IN PFILE_LOCK FileLock, IN PLARGE_INTEGER FileOffset, IN PLARGE_INTEGER Length, IN ULONG Key, IN PFILE_OBJECT FileObject, IN PVOID Process)
Definition: filelock.c:748
NTSTATUS NTAPI FsRtlFastUnlockAllByKey(IN PFILE_LOCK FileLock, IN PFILE_OBJECT FileObject, IN PEPROCESS Process, IN ULONG Key, IN PVOID Context OPTIONAL)
Definition: filelock.c:1086
#define FsRtlEnterFileSystem
#define FsRtlExitFileSystem
#define FsRtlFastLock(A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)
Definition: fsrtlfuncs.h:1581
#define FSRTL_CACHE_TOP_LEVEL_IRP
Definition: fsrtltypes.h:60
__u16 time
Definition: mkdosfs.c:8
#define FILE_STANDARD_INFORMATION
Definition: disk.h:54
#define FILE_BASIC_INFORMATION
Definition: disk.h:53
__in UCHAR __in POWER_STATE __in_opt PVOID __in PIO_STATUS_BLOCK IoStatus
Definition: mxum.h:159
#define _In_
Definition: no_sal2.h:158
#define _Function_class_(n)
Definition: no_sal2.h:398
#define FILE_READ_ATTRIBUTES
Definition: nt_native.h:647
#define FILE_WRITE_ATTRIBUTES
Definition: nt_native.h:649
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
VOID FASTCALL ExReleaseResourceLite(IN PERESOURCE Resource)
Definition: resource.c:1822
BOOLEAN NTAPI FsRtlMdlWriteCompleteDev(IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN PMDL MdlChain, IN PDEVICE_OBJECT DeviceObject)
Definition: fastio.c:1198
BOOLEAN NTAPI FsRtlMdlReadCompleteDev(IN PFILE_OBJECT FileObject, IN PMDL MemoryDescriptorList, IN PDEVICE_OBJECT DeviceObject)
Definition: fastio.c:1011
BOOLEAN NTAPI FsRtlCopyRead(IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN BOOLEAN Wait, IN ULONG LockKey, OUT PVOID Buffer, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject)
Definition: fastio.c:64
BOOLEAN NTAPI FsRtlCopyWrite(IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN BOOLEAN Wait, IN ULONG LockKey, OUT PVOID Buffer, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject)
Definition: fastio.c:264
BOOLEAN NTAPI FsRtlPrepareMdlWriteDev(IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN ULONG LockKey, OUT PMDL *MdlChain, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject)
Definition: fastio.c:1272
BOOLEAN NTAPI FsRtlMdlReadDev(IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN ULONG LockKey, OUT PMDL *MdlChain, OUT PIO_STATUS_BLOCK IoStatus, IN PDEVICE_OBJECT DeviceObject)
Definition: fastio.c:1025
PIRP NTAPI IoGetTopLevelIrp(VOID)
Definition: irp.c:1843
VOID NTAPI IoSetTopLevelIrp(IN PIRP Irp)
Definition: irp.c:2000
#define STATUS_CANT_WAIT
Definition: ntstatus.h:452
static __inline uint64_t unix_time_to_win(BTRFS_TIME *t)
Definition: recv.cpp:1070
#define BTRFS_TYPE_FILE
Definition: shellext.h:85
#define STATUS_SUCCESS
Definition: shellext.h:65
#define TRACE(s)
Definition: solgame.cpp:4
uint32_t st_mode
Definition: btrfs.h:295
uint32_t st_nlink
Definition: btrfs.h:292
BTRFS_TIME otime
Definition: btrfs.h:304
BTRFS_TIME st_mtime
Definition: btrfs.h:303
uint64_t st_size
Definition: btrfs.h:289
BTRFS_TIME st_atime
Definition: btrfs.h:301
BTRFS_TIME st_ctime
Definition: btrfs.h:302
PFAST_IO_ACQUIRE_FOR_MOD_WRITE AcquireForModWrite
Definition: iotypes.h:1748
PFAST_IO_QUERY_STANDARD_INFO FastIoQueryStandardInfo
Definition: iotypes.h:1738
PFAST_IO_UNLOCK_ALL_BY_KEY FastIoUnlockAllByKey
Definition: iotypes.h:1742
PFAST_IO_RELEASE_FOR_CCFLUSH ReleaseForCcFlush
Definition: iotypes.h:1760
PFAST_IO_MDL_READ_COMPLETE MdlReadComplete
Definition: iotypes.h:1750
PFAST_IO_MDL_READ MdlRead
Definition: iotypes.h:1749
PFAST_IO_WRITE FastIoWrite
Definition: iotypes.h:1736
PFAST_IO_UNLOCK_ALL FastIoUnlockAll
Definition: iotypes.h:1741
PFAST_IO_QUERY_NETWORK_OPEN_INFO FastIoQueryNetworkOpenInfo
Definition: iotypes.h:1747
PFAST_IO_ACQUIRE_FOR_CCFLUSH AcquireForCcFlush
Definition: iotypes.h:1759
PFAST_IO_MDL_WRITE_COMPLETE MdlWriteComplete
Definition: iotypes.h:1752
ULONG SizeOfFastIoDispatch
Definition: iotypes.h:1733
PFAST_IO_ACQUIRE_FILE AcquireFileForNtCreateSection
Definition: iotypes.h:1744
PFAST_IO_READ FastIoRead
Definition: iotypes.h:1735
PFAST_IO_QUERY_BASIC_INFO FastIoQueryBasicInfo
Definition: iotypes.h:1737
PFAST_IO_LOCK FastIoLock
Definition: iotypes.h:1739
PFAST_IO_UNLOCK_SINGLE FastIoUnlockSingle
Definition: iotypes.h:1740
PFAST_IO_RELEASE_FILE ReleaseFileForNtCreateSection
Definition: iotypes.h:1745
PFAST_IO_PREPARE_MDL_WRITE PrepareMdlWrite
Definition: iotypes.h:1751
PFAST_IO_RELEASE_FOR_MOD_WRITE ReleaseForModWrite
Definition: iotypes.h:1758
PFAST_IO_CHECK_IF_POSSIBLE FastIoCheckIfPossible
Definition: iotypes.h:1734
LARGE_INTEGER LastWriteTime
Definition: nt_native.h:941
LARGE_INTEGER CreationTime
Definition: nt_native.h:939
LARGE_INTEGER ChangeTime
Definition: nt_native.h:942
LARGE_INTEGER LastAccessTime
Definition: nt_native.h:940
LARGE_INTEGER AllocationSize
Definition: propsheet.cpp:54
ACCESS_MASK access
Definition: btrfs_drv.h:382
file_ref * fileref
Definition: btrfs_drv.h:383
bool ads
Definition: btrfs_drv.h:330
FILE_LOCK lock
Definition: btrfs_drv.h:294
ULONG atts
Definition: btrfs_drv.h:297
struct _file_ref * fileref
Definition: btrfs_drv.h:305
ANSI_STRING adsdata
Definition: btrfs_drv.h:334
INODE_ITEM inode_item
Definition: btrfs_drv.h:292
uint8_t type
Definition: btrfs_drv.h:291
struct _device_extension * Vcb
Definition: btrfs_drv.h:287
struct _root * subvol
Definition: btrfs_drv.h:288
FSRTL_ADVANCED_FCB_HEADER Header
Definition: btrfs_drv.h:283
struct _file_ref * parent
Definition: btrfs_drv.h:352
bool delete_on_close
Definition: btrfs_drv.h:345
#define __stdcall
Definition: typedefs.h:25
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
uint32_t ULONG
Definition: typedefs.h:59
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
LONGLONG QuadPart
Definition: typedefs.h:114
int ret
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
_In_ WDFREQUEST _In_ WDFFILEOBJECT FileObject
Definition: wdfdevice.h:550
_In_ WDFDPC _In_ BOOLEAN Wait
Definition: wdfdpc.h:170
_In_ PLARGE_INTEGER _Out_ struct _ERESOURCE ** ResourceToRelease
Definition: iotypes.h:1598
* PFILE_OBJECT
Definition: iotypes.h:1998
struct _FAST_IO_DISPATCH FAST_IO_DISPATCH
_In_ PLARGE_INTEGER EndingOffset
Definition: iotypes.h:1597
#define PsGetCurrentProcess
Definition: psfuncs.h:17