mirror of
https://github.com/reactos/reactos.git
synced 2025-08-10 20:05:30 +00:00
[BTRFS] Upgrade to 1.5
CORE-16494
This commit is contained in:
parent
c214c04964
commit
62e630de4c
27 changed files with 2216 additions and 566 deletions
|
@ -3265,6 +3265,7 @@ end:
|
|||
|
||||
NTSTATUS start_scrub(device_extension* Vcb, KPROCESSOR_MODE processor_mode) {
|
||||
NTSTATUS Status;
|
||||
OBJECT_ATTRIBUTES oa;
|
||||
|
||||
if (!SeSinglePrivilegeCheck(RtlConvertLongToLuid(SE_MANAGE_VOLUME_PRIVILEGE), processor_mode))
|
||||
return STATUS_PRIVILEGE_NOT_HELD;
|
||||
|
@ -3292,7 +3293,9 @@ NTSTATUS start_scrub(device_extension* Vcb, KPROCESSOR_MODE processor_mode) {
|
|||
Vcb->scrub.error = STATUS_SUCCESS;
|
||||
KeInitializeEvent(&Vcb->scrub.event, NotificationEvent, !Vcb->scrub.paused);
|
||||
|
||||
Status = PsCreateSystemThread(&Vcb->scrub.thread, 0, NULL, NULL, NULL, scrub_thread, Vcb);
|
||||
InitializeObjectAttributes(&oa, NULL, OBJ_KERNEL_HANDLE, NULL, NULL);
|
||||
|
||||
Status = PsCreateSystemThread(&Vcb->scrub.thread, 0, &oa, NULL, NULL, scrub_thread, Vcb);
|
||||
if (!NT_SUCCESS(Status)) {
|
||||
ERR("PsCreateSystemThread returned %08x\n", Status);
|
||||
return Status;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue