mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:55:42 +00:00
[BTRFS][UBTRFS][SHELLBTRFS] Upgrade to 1.7.5 (#4417)
v1.7.5 (2020-10-31): - Fixed text display issue in shell extension - Added support for mingw 8 - Fixed LXSS permissions not working in new versions of Windows - Fixed issue where truncating an inline file wouldn't change its size - Fixed crash with Quibble where driver would try to use AVX2 before Windows had enabled it
This commit is contained in:
parent
0604273535
commit
b826992ab2
15 changed files with 166 additions and 195 deletions
|
@ -3298,6 +3298,14 @@ NTSTATUS truncate_file(fcb* fcb, uint64_t end, PIRP Irp, LIST_ENTRY* rollback) {
|
|||
}
|
||||
|
||||
fcb->inode_item.st_blocks += end;
|
||||
|
||||
fcb->inode_item.st_size = end;
|
||||
fcb->inode_item_changed = true;
|
||||
TRACE("setting st_size to %I64x\n", end);
|
||||
|
||||
fcb->Header.AllocationSize.QuadPart = sector_align(fcb->inode_item.st_size, fcb->Vcb->superblock.sector_size);
|
||||
fcb->Header.FileSize.QuadPart = fcb->inode_item.st_size;
|
||||
fcb->Header.ValidDataLength.QuadPart = fcb->inode_item.st_size;
|
||||
}
|
||||
|
||||
ExFreePool(buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue