From c71d198fd8c27b487494b85bba9589e6f2b129b0 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 26 May 2018 10:12:00 +0200 Subject: [PATCH] [0.4.9] cherry-pick [FASTFAT] Initialize cache if neded for changing volume label. CORE-14654 (cherry picked from commit 47b9db9d029c5f53d49343677998c70ed85d791d) --- drivers/filesystems/fastfat/volume.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/filesystems/fastfat/volume.c b/drivers/filesystems/fastfat/volume.c index 7222b9bcebd..f4f8f738ebf 100644 --- a/drivers/filesystems/fastfat/volume.c +++ b/drivers/filesystems/fastfat/volume.c @@ -313,6 +313,11 @@ FsdSetFsLabelInformation( } pRootFcb = vfatOpenRootFCB(DeviceExt); + Status = vfatFCBInitializeCacheFromVolume(DeviceExt, pRootFcb); + if (!NT_SUCCESS(Status)) + { + return Status; + } /* Search existing volume entry on disk */ FileOffset.QuadPart = 0;