diff --git "a/R:\\Temp\\TortoiseGit\\write-5e024bf.002.c" "b/C:\\reactos\\drivers\\filesystems\\btrfs\\write.c" index 6292d7efb0..0981d94b6b 100644 --- "a/drivers/filesystems/btrfs/write.c" +++ "b/drivers/filesystems/btrfs/write.c" @@ -511,6 +511,8 @@ NTSTATUS alloc_chunk(device_extension* Vcb, UINT64 flags, chunk** pc, BOOL full_ goto end; } + c->devices = NULL; + cisize = sizeof(CHUNK_ITEM) + (num_stripes * sizeof(CHUNK_ITEM_STRIPE)); c->chunk_item = ExAllocatePoolWithTag(NonPagedPool, cisize, ALLOC_TAG); if (!c->chunk_item) { @@ -549,7 +551,8 @@ NTSTATUS alloc_chunk(device_extension* Vcb, UINT64 flags, chunk** pc, BOOL full_ stripe_size -= stripe_size % stripe_length; if (stripe_size == 0) { - Status = STATUS_INTERNAL_ERROR; + ERR("not enough free space found (stripe_size == 0)\n"); + Status = STATUS_DISK_FULL; goto end; }