[ros-dev] [ros-diffs] [pschweitzer] 65501: [FASTFAT] Set clean shutdown bit on dismount

Jérôme Gardou jerome.gardou at reactos.org
Thu Nov 27 15:14:21 UTC 2014


Hey Pierre!

This flag
> +    if (DeviceExt->VolumeFcb->Flags & VCB_CLEAR_DIRTY)
> +    {
> +        /* Set clean shutdown bit */
> +        Status = GetNextCluster(DeviceExt, 1, &eocMark);
> +        if (NT_SUCCESS(Status))
> +        {
> +            eocMark |= DeviceExt->CleanShutBitMask;
> +            if (NT_SUCCESS(WriteCluster(DeviceExt, 1, eocMark)))
and that one
> +                DeviceExt->VolumeFcb->Flags &= ~VCB_IS_DIRTY;
> +        }
> +    }
> +
>      /* Flush volume & files */
>      VfatFlushVolume(DeviceExt, (PVFATFCB)FileObject->FsContext);
>  
> 
> 
don't really seem to match. Or is the former a part of a OR combination
defining the latter ?

Cheers.
Jérôme.



More information about the Ros-dev mailing list