mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:23:07 +00:00
[UBTRFS] Update to 1.0.1
CORE-13896
This commit is contained in:
parent
fb2a56e02a
commit
ed263291d1
2 changed files with 16 additions and 11 deletions
|
@ -1454,6 +1454,7 @@ NTSTATUS NTAPI BtrfsFormatEx(PUNICODE_STRING DriveRoot, FMIFS_MEDIA_FLAG MediaFl
|
|||
LUID luid;
|
||||
#endif
|
||||
UINT64 incompat_flags;
|
||||
UNICODE_STRING empty_label;
|
||||
|
||||
static WCHAR btrfs[] = L"\\Btrfs";
|
||||
|
||||
|
@ -1543,6 +1544,12 @@ NTSTATUS NTAPI BtrfsFormatEx(PUNICODE_STRING DriveRoot, FMIFS_MEDIA_FLAG MediaFl
|
|||
incompat_flags = def_incompat_flags;
|
||||
incompat_flags |= BTRFS_INCOMPAT_FLAGS_MIXED_BACKREF | BTRFS_INCOMPAT_FLAGS_BIG_METADATA;
|
||||
|
||||
if (!Label) {
|
||||
empty_label.Buffer = NULL;
|
||||
empty_label.Length = empty_label.MaximumLength = 0;
|
||||
Label = &empty_label;
|
||||
}
|
||||
|
||||
Status = write_btrfs(h, gli.Length.QuadPart, Label, sector_size, node_size, incompat_flags);
|
||||
|
||||
NtFsControlFile(h, NULL, NULL, NULL, &iosb, FSCTL_DISMOUNT_VOLUME, NULL, 0, NULL, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue